The filename of uploaded files vulnerable to stored XSS
Impact
The filename of uploaded files was vulnerable to stored XSS. It is not possible to inject javascript code in the file name when creating/uploading the file. But, once created/uploaded, it can be renamed to inject the payload in it.
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 |
|---|---|
| Earlier releases before 3.7.1Ecosystem versions | 3.7.1 |
Version evidence: OSV · GHSA-68q3-7wjp-7q3j
View original version evidence (154 explicit versions)
Original source description
Impact
The filename of uploaded files was vulnerable to stored XSS. It is not possible to inject javascript code in the file name when creating/uploading the file. But, once created/uploaded, it can be renamed to inject the payload in it.
Additionally, the measures to prevent renaming the file to disallowed filename extensions could be circumvented.
Patches
This is fixed in Bolt 3.7.1.
References
Related issue: https://github.com/bolt/bolt/pull/7853
References
- Security advisory github.com/bolt/bolt/security/advisories/GHSA-68q3-7wjp-7q3j
- Security advisory nvd.nist.gov/vuln/detail/CVE-2020-4041
- Patch github.com/bolt/bolt/pull/7853
- Patch github.com/bolt/bolt/commit/b42cbfcf3e3108c46a80581216ba03ef449e419f
- Source reference github.com/bolt/bolt
- Public exploit reference packetstormsecurity.com/files/158299/Bolt-CMS-3.7.0-XSS-CSRF-Shell-Upload.html
- Source reference seclists.org/fulldisclosure/2020/Jul/4