Description
bbs-go through 4.4.6 contains a stored cross-site scripting vulnerability that allows authenticated users to upload HTML or SVG files by spoofing the multipart Content-Type in POST /api/upload. Attackers can upload script-bearing documents served inline from /res and send their URLs to administrators, executing script on the forum's origin.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mlogclub | bbs-go | ≤ 4.4.6 | — |
References
- https://github.com/mlogclub/bbs-go/issues/305 issue-tracking technical-description
- https://github.com/mlogclub/bbs-go/blob/v4.4.6/internal/pkg/uploader/uploader.go#L90-L121 technical-description
- https://github.com/mlogclub/bbs-go/blob/v4.4.6/internal/handlers/api/upload_handlers.go#L36-L54 technical-description
- https://github.com/mlogclub/bbs-go/pull/306 patch issue-tracking
- https://github.com/mlogclub/bbs-go/commit/5bebf98bb9e0ac5162d4f8faf7a65fc0d496a362 patch
- VulnCheck Advisory: bbs-go through 4.4.6 Stored XSS via Image Upload Content-Type third-party-advisory