silverstripe/silverstripe-framework · Security
Silverstripe Framework has a XSS via insert media remote file oembed
- GHSA ID
- GHSA-7cmp-cgg8-4c82
- CVE ID
- CVE-2024-47605
- Severity
- medium
- Published
- Updated
- CVSS
- 5.4 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- CVSS v3
- 5.4 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Description
Impact
When using the "insert media" functionality, the linked oEmbed JSON includes an HTML attribute which will replace the embed shortcode. The HTML is not sanitized before replacing the shortcode, allowing a script payload to be executed on both the CMS and the front-end of the website.
References
Reported by
James Nicoll from Fujitsu Cyber Security Services
CWEs
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://github.com/silverstripe/silverstripe-asset-admin/security/advisories/GHSA-7cmp-cgg8-4c82 ↗
- https://github.com/silverstripe/silverstripe-framework/commit/09b5052c86932f273e0d733428c9aade70ff2a4a ↗
- https://www.silverstripe.org/download/security-releases/cve-2024-47605 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2024-47605 ↗
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2024-47605.yaml ↗
- https://github.com/advisories/GHSA-7cmp-cgg8-4c82 ↗