SourceCodester Stock Management System 1.0 - SQL Injection Authentication Bypass
SourceCodester Stock Management System 1.0 contains a SQL injection vulnerability in the login function at /sms/classes/Login.php. The username parameter is directly interpolated into an SQL query without sanitization, allowing an unauthenticated attacker to bypass authentication and gain admin access via a crafted OR-based payload. References: https://nvd.nist.gov/vuln/detail/CVE-2025-4283 https://github.com/th3w0lf-1337/Vulnerabilities/blob/main/SMS-PHP/SQLi/Auth-Bypass/info.md https://www.sourcecodester.com/php/17aborb/stock-management-system-php.html Remediation: Use prepared statements with parameterized queries for all database interactions. Replace direct string interpolation in SQL queries with PDO or MySQLi prepared statements.
9 assets checked · domain, subdomain, ipv4