XSS via uploaded gpx file
Impact
A malicious content author could upload a GPX file with a Javascript payload. The payload could then be executed by luring a legitimate user to view the file in a browser with support for GPX files. GPX is an XML-based format used to store GPS data.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 1.0.0 before 1.11.1Ecosystem versions | 1.11.1 |
Version evidence: OSV · GHSA-vv3r-fxqp-vr3f
View original version evidence (70 explicit versions)
Original source description
A malicious content author could upload a GPX file with a Javascript payload. The payload could then be executed by luring a legitimate user to view the file in a browser with support for GPX files. GPX is an XML-based format used to store GPS data.
By default, Silverstripe CMS will no longer allow GPX files to be uploaded to the assets area.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2022-38147
- Source reference forum.silverstripe.org/c/releases
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/assets/CVE-2022-38147.yaml
- Source reference www.silverstripe.org/blog/tag/release
- Security advisory www.silverstripe.org/download/security-releases
- Security advisory www.silverstripe.org/download/security-releases/cve-2022-38147