| 제목 | Bagisto 2.4.12 Unrestricted Upload of File with Dangerous Type |
|---|
| 설명 | 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. |
|---|
| 원천 | ⚠️ https://gist.github.com/k4z01/322c12b116eb348ad7631a8284290926 |
|---|
| 사용자 | k4z0 (UID 101097) |
|---|
| 제출 | 2026. 11. 05. PM 08:21 (27 날 ago) |
|---|
| 모더레이션 | 2026. 12. 02. PM 06:12 (27 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 447939 [Webkul Bagisto 까지 2.4.10 Shop Cart Simple.php prepareForCart 권한 상승] |
|---|
| 포인트들 | 20 |
|---|