
Cloud Vulnerability DB
A community-led vulnerabilities database
Stored XSS vulnerability in the TinyMCE core parser. Attackers can inject malicious scripts through an iframe src URL that contains an embedded base64 data: URI. This impacts all users. The current workaround is to set the sandbox_iframes_exclusions option to an empty array ([]).
When the editor loads content, it converts base64 data: URIs in src attributes into blob: URIs. This conversion had two flaws:
data:<mime>;base64, anywhere in its path, such as https://www.youtube.com/data:text/html;base64,..., was treated as a data URI and its payload decoded.src of every element, not only img. An iframe src could therefore be rewritten.
The rewrite happened after the URL safety and sandbox_iframes checks had run. The original URL passed those checks because it was an https URL, and its host was in the default sandbox_iframes_exclusions list. The URL was then replaced with a blob: URI whose content was attacker-controlled HTML. A blob: URI inherits the origin of the page that created it, so the iframe ran script in the origin of the page hosting the editor.
A variant affects editors configured with allow_svg_data_urls: true: an iframe with an SVG data: URI src was converted the same way.
TinyMCE 8.11.1 fixes the vulnerability.tinymce.init({ selector: 'textarea' });<iframe src="https://www.youtube.com/data:text/html;base64,PHNjcmlwdD5hbGVydChkb2N1bWVudC5kb21haW4pPC9zY3JpcHQ+"></iframe>src is rewritten to blob:<page origin>/... with no sandbox attribute. The script runs and the alert shows the domain of the host page.
The base64 payload decodes to <script>alert(document.domain)</script>.Stored XSS vulnerability in the TinyMCE core parser. Attackers can inject malicious scripts through an iframe src URL that contains an embedded base64 data: URI. TinyMCE converts this URL to a same-origin blob: URI after the URL and iframe sandbox checks have run, so the script runs in the origin of the page hosting the editor. Impacts all users of TinyMCE, including the default configuration. Editors configured with allow_svg_data_urls: true are also affected through iframes with an SVG data: URI src.
Set the sandbox_iframes_exclusions option to an empty array ([]).
tinymce.init({
selector: 'textarea',
sandbox_iframes_exclusions: []
});To avoid this vulnerability: Upgrade to TinyMCE 8.11.1 or higher.
Tiny thanks David Vieira Kurz and Mike Lesniak for their help identifying this vulnerability. References TinyMCE 8.11.1
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."