We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73b0aa4 commit 9fc29eeCopy full SHA for 9fc29ee
1 file changed
javascript/ql/src/Security/CWE-079/XssThroughDom.qhelp
@@ -8,9 +8,9 @@
8
Extracting text from a DOM node and interpreting it as HTML can lead to a cross-site scripting vulnerability.
9
</p>
10
<p>
11
-A webpage with this vulnerability unescapes an otherwise sanitized text,
12
-and thereby allows an attacker to use sanitized text in the DOM to perform a
13
-cross-site scripting attack.
+A webpage with this vulnerability reads text from the DOM, and afterwards adds the text as HTML to the DOM.
+Using text from the DOM as HTML effectively unescapes the text, and thereby invalidates any escaping done on the text.
+If an attacker is able to control the safe sanitized text, then this vulnerability can be exploited to perform a cross-site scripting attack.
14
15
</overview>
16
0 commit comments