| Title | SourceCodester Inventory Management System 1.0 Cross Site Scripting |
|---|
| Description | A stored Cross-Site Scripting (XSS) vulnerability exists in Product Inventory Management System by SourceCodester. The Product Management module located at /api/products_handler.php does not sanitize or encode the Product_Name parameter before storing it in the database. When the product catalog is rendered at /products.php, the stored payload executes in the victim's browser. An authenticated attacker can inject a malicious payload such as <img src=x onerror=alert(document.cookie)> via an intercepted POST request, causing session cookie theft and account takeover for any user who visits the Product Management page. |
|---|
| Source | ⚠️ https://gist.github.com/fhewm98/95f2ce47c88e1f08151397c0320d2752 |
|---|
| User | Mohammed Faheem (UID 100387) |
|---|
| Submission | 08/05/2026 13:19 (1 month ago) |
|---|
| Moderation | 09/13/2026 07:14 (1 month later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 403229 [SourceCodester Inventory Management System 1.0 Product Management products_handler.php Product_Name cross site scripting] |
|---|
| Points | 20 |
|---|