제출 #1085346: code-projects POS Pharmacy System 1.0 SQL Injection정보

제목code-projects POS Pharmacy System 1.0 SQL Injection
설명A 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.
원천⚠️ https://github.com/jasperjjhe/php-mini-project-advisories/blob/main/A1-pos-pharmacy-login-sqli.md
사용자
 jasperjjhe (UID 102844)
제출2026. 11. 10. PM 07:14 (21 날 ago)
모더레이션2026. 11. 30. PM 11:05 (20 days later)
상태수락
VulDB 항목446850 [code-projects POS Pharmacy System 1.0 login.php username/password SQL 주입]
포인트들20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!