GHSA-3c22-5j5m-4jq7
Gokapi has Stored XSS in SVG Hotlinks
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Go | github.com/forceu/gokapi | < 2.2.3 | 2.2.3 |
Details
As written in the advisory (Markdown source, shown as plain text).
### Summary
If a malicious authenticated user uploads SVG and creates a hotlink for it, they achieve stored XSS.
### Details
The hotlinking functionality fails to properly handle scripts included in the SVGs, allowing authenticated attackers with the ability to upload and hotlink file to execute arbitrary JS.
*Issue found by [aisafe.io](https://aisafe.io/)*
### Impact
Authenticated attackers with the ability to upload and hotlink files can execute arbitrary JavaScript.
References
External links from the advisory. They lead to third-party sites.