Submit #1085346: code-projects POS Pharmacy System 1.0 SQL Injectioninfo

Titlecode-projects POS Pharmacy System 1.0 SQL Injection
DescriptionA vulnerability has been found in code-projects POS Pharmacy System 1.0. The login flow in login.php concatenates the POST parameters username and password into the credential query without escaping or parameterization. The clean() helper (login.php lines 51-52) only strips slashes and does not neutralize single quotes, so the query assembled at line 56, SELECT * FROM user WHERE username='$login' AND password='$password', can be manipulated by an unauthenticated attacker to authenticate as the administrator. Failed logins additionally echo the raw query via print $qry (line 78), confirming the injection context. Proof: POST to /login.php with username set to admin' - and any password authenticates as administrator; username set to admin' alone returns a MySQL syntax error rendered in the page. CWE-89. CVSS 3.1 base vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8). Affected file and parameters: login.php, username and password (POST). The vendor was contacted on 2026-11-11; a public write-up with file and line details is linked below. Deduplication: NVD keyword search and VulDB API search on 2026-11-09 found no prior SQL injection entry for this product; the only existing record is CVE-2025-9921 (stored XSS in /main/products.php), which does not cover login.php.
Source⚠️ https://github.com/jasperjjhe/php-mini-project-advisories/blob/main/A1-pos-pharmacy-login-sqli.md
User
 jasperjjhe (UID 102844)
Submission11/10/2026 19:14 (20 days ago)
Moderation11/30/2026 23:05 (20 days later)
StatusAccepted
VulDB entry446850 [code-projects POS Pharmacy System 1.0 login.php username/password sql injection]
Points20

Might our Artificial Intelligence support you?

Check our Alexa App!