
Cloud Vulnerability DB
A community-led vulnerabilities database
Phlex 2 escaped only " in attribute values. That keeps a value inside its attribute, but some elements end at their closing tag even when it appears inside an attribute value. With scripting enabled, <noscript> is one of them, because its content isn't parsed as markup. A comment ends the same way at -->, and so do <textarea>, <title> and <iframe>.
So a user-controlled attribute value on an element inside one of these could end the enclosing element early and inject markup, including script that runs as the page loads, with no interaction. This affects every kind of attribute value: Strings, Symbols, token lists, nested data: hashes, styles and safe values.
Passing user input as an attribute value is meant to be safe in Phlex, so any application that renders user-controlled attribute values on elements inside noscript, a comment, textarea, title or iframe was vulnerable. A common case is a noscript fallback, such as an image or link with user-provided text in its attributes.
Phlex 1.x is not affected, because it HTML-escapes attribute values in full.
Phlex now escapes < and > in attribute values, as < and >, as well as ". The value the browser reads is unchanged. The patch covers the Ruby serialiser, the compiler and phlex-native.
The patched version is:
main branch on GitHub.
Phlex 2.0 to 2.3 are no longer maintained and won't get a patch. Please upgrade to 2.4.2.If you can't upgrade straight away:
noscript, comment, textarea, title or iframe.quickdraw/browser/xss.test.rb, "attribute values in raw text elements and comments"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."