Description
Bagisto before 2.4.5 contains a stored cross-site scripting vulnerability that allows authenticated customers to upload HTML files via the RMA send-message endpoint without type or extension validation. Attackers can upload a .html attachment containing JavaScript served under /storage/rma-conversation/, executing script in the shop's origin when an administrator opens it.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Webkul | Bagisto | < 2.4.5 | 2.4.5 |
References
- Patch Commit patch
- https://github.com/bagisto/bagisto product
- https://github.com/bagisto/bagisto/commit/e28db3e8c53a94a99cf153ac338466720acd9004 patch
- https://github.com/bagisto/bagisto/blob/v2.4.4/packages/Webkul/Shop/src/Http/Controllers/Customer/Account/RMAController.php#L408 technical-description
- Bagisto v2.4.5 Release Notes release-notes
- VulnCheck Advisory: Bagisto before 2.4.5 Stored XSS via RMA Conversation Attachment Upload third-party-advisory