| Titolo | Bagisto 2.4.12 Unrestricted Upload of File with Dangerous Type |
|---|
| Descrizione | Bagisto is affected by an unrestricted file upload vulnerability that leads to stored cross-site scripting. The storefront add-to-cart endpoint POST /api/checkout/cart is registered outside the customer authentication middleware, so it is reachable by unauthenticated visitors. When a product exposes a "file" customizable option, the uploaded file is stored through Laravel's default public disk into the web-accessible /storage path, and the only file-type check (in Webkul\Product\Type\Simple) is optional and validates the client-supplied filename extension rather than the file content. An unauthenticated attacker can therefore bypass the client-side extension allowlist and write an HTML file to the public web root. When a victim opens the resulting file URL, the attacker's JavaScript executes in the store's origin, enabling theft of customer or administrator sessions. |
|---|
| Fonte | ⚠️ https://gist.github.com/k4z01/322c12b116eb348ad7631a8284290926 |
|---|
| Utente | k4z0 (UID 101097) |
|---|
| Sottomissione | 05/11/2026 20:21 (27 giorni fa) |
|---|
| Moderazione | 02/12/2026 18:12 (27 days later) |
|---|
| Stato | Accettato |
|---|
| Voce VulDB | 447939 [Webkul Bagisto fino a 2.4.10 Shop Cart Simple.php prepareForCart escalationi di privilegi] |
|---|
| Punti | 20 |
|---|