Submit #1085347: code-projects POS Pharmacy System 1.0 Missing Authorizationinfo

Titlecode-projects POS Pharmacy System 1.0 Missing Authorization
DescriptionA missing authorization vulnerability has been found in code-projects POS Pharmacy System 1.0. Approximately 36 PHP files under /main/ never include the auth.php session guard that the product's privileged pages are expected to use, so every state-changing endpoint in that directory can be invoked by an unauthenticated remote user. Examples verified in the 1.0 source: main/deletecustomer.php executes DELETE FROM customer WHERE customer_id=$id with the id GET parameter unescaped and no session check; main/deletesupplier.php and main/editcustomer.php share the pattern; main/savesales.php (lines 26-27) inserts the POST parameters cash and due unescaped. A helper defined in connect.php (lines 14-17), pq(), wraps scalar values in single quotes without escaping, providing no injection protection. Consequence: unauthenticated users can delete customer and supplier records, modify relational data and fabricate sales. Proof: GET /main/deletecustomer.php?id=1 with no session cookie deletes the record; SQL injection in the same endpoint is confirmed by differential responses to id=1 and (select 1)=1 versus id=1 and (select 1)=2. CWE-862, with CWE-89 on several endpoints. CVSS 3.1 base vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8), anchored on the unauthenticated destructive delete. Affected files: main/deletecustomer.php, main/deletesupplier.php, main/editcustomer.php, main/savesales.php and siblings in the same directory sharing the same root cause. Note: CVE-2025-9921, the only existing record for this product (stored XSS in /main/products.php), was scored with PR:H on the assumption that /main/ pages require admin access; this report shows those endpoints lack the session guard entirely. The vendor was contacted on 2026-11-11; public write-up linked below.
Source⚠️ https://github.com/jasperjjhe/php-mini-project-advisories/blob/main/A2-pos-pharmacy-missing-auth.md
User
 jasperjjhe (UID 102844)
Submission11/10/2026 19:17 (20 days ago)
Moderation11/30/2026 23:05 (20 days later)
StatusAccepted
VulDB entry446851 [Pharmacy POS Pharmacy System 1.0 main/deletecustomer.php pq id authorization]
Points20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!