| Titre | Amir Sanni Mini-Inventory-and-Sales-Management-System 81bf0b55f5933f3b0dbb1583204a612e06605b95 (master, 2026-06-05; no release tags) Missing Authorization / Information Disclosure |
|---|
| Description | The Search controller of Mini-Inventory-and-Sales-Management-System (vendor: Amir Sanni / amirsanni) performs no authentication. In application/controllers/Search.php the login check is commented out (around line 19: //$this->gen->checklogin();) and the only remaining guard is Genlib::ajaxOnly(), which merely checks the X-Requested-With request header — trivially spoofable, not an authentication control. With enable_hooks=FALSE there is no global auth hook either. As a result, an unauthenticated attacker (sending only the header "X-Requested-With: XMLHttpRequest") can call GET /index.php/search/transSearch?v=<x> to read all sales transactions, including customer PII (name, phone, email), amounts, payment mode and staff names; and GET /index.php/search/itemSearch?v=<x> to read the full inventory. No account is required. Both search models use parameterized queries, so this is not SQL injection but a pure broken-access-control / information-disclosure flaw (CWE-862, Missing Authorization). CVSS 3.1: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N = 7.5 (High). Suggested fix: restore the authentication check in the Search controller constructor (e.g. $this->genlib->checkLogin();); do not treat ajaxOnly() as authentication. Unauthenticated PoC: curl -H 'X-Requested-With: XMLHttpRequest' 'http://TARGET/index.php/search/transSearch?v=a' . This is a free, open-source project hosted on GitHub; the source code is public and the finding can be verified directly against it. Source repository: https://github.com/amirsanni/Mini-Inventory-and-Sales-Management-System . Vulnerable file at the exact reported commit (line 19 is the commented-out login check //$this->gen->checklogin(); and line 21 is the only remaining guard genlib->ajaxOnly()): https://github.com/amirsanni/Mini-Inventory-and-Sales-Management-System/blob/81bf0b55f5933f3b0dbb1583204a612e06605b95/application/controllers/Search.php#L19 |
|---|
| La source | ⚠️ https://github.com/amirsanni/Mini-Inventory-and-Sales-Management-System/blob/81bf0b55f5933f3b0dbb1583204a612e06605b95/application/controllers/Search.php#L19 |
|---|
| Utilisateur | huanchong-99 (UID 102801) |
|---|
| Soumission | 06/11/2026 18:29 (il y a 27 jours) |
|---|
| Modérer | 03/12/2026 07:41 (27 days later) |
|---|
| Statut | Accepté |
|---|
| Entrée VulDB | 448523 [amirsanni Mini-Inventory-and-Sales-Management-System Search.php transSearch élévation de privilèges] |
|---|
| Points | 20 |
|---|