Vulnerability · Published Jun 8, 2020 · Assigned by GitHub_M
CVE-2020-4041The filename of uploaded files vulnerable to stored XSS in Bolt CMS
High 7.4
In plain English
A high-severity cross-site scripting in bolt from bolt. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In Bolt CMS before version 3.7.1, 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. This is fixed in Bolt 3.7.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | bolt/bolt | 3.7.1 | GHSA-68q3-7wjp-7q3j |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N
References
- https://github.com/bolt/bolt/pull/7853 x_refsource_MISC
- https://github.com/bolt/bolt/commit/b42cbfcf3e3108c46a80581216ba03ef449e419f x_refsource_MISC
- https://github.com/bolt/bolt/security/advisories/GHSA-68q3-7wjp-7q3j x_refsource_CONFIRM
- http://packetstormsecurity.com/files/158299/Bolt-CMS-3.7.0-XSS-CSRF-Shell-Upload.html x_refsource_MISC
- 20200703 Bolt CMS <= 3.7.0 Multiple Vulnerabilities - CSRF to RCE mailing-list, x_refsource_FULLDISC