You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: javascript/ql/lib/semmle/javascript/security/dataflow/Xss.qll
+33-9Lines changed: 33 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -72,38 +72,62 @@ module Shared {
72
72
privateimport semmle.javascript.security.dataflow.IncompleteHtmlAttributeSanitizationCustomizations::IncompleteHtmlAttributeSanitization as IncompleteHtml
73
73
74
74
/**
75
-
* A guard that checks if a string can contain quotes, which is a guard for strings that are inside an HTML attribute.
75
+
* A barrier guard that applies to multiple XSS queries.
76
+
*/
77
+
abstractclassBarrierGuardextends DataFlow::Node{
78
+
/**
79
+
* Holds if this node acts as a barrier for data flow, blocking further flow from `e` if `this` evaluates to `outcome`.
80
+
*/
81
+
predicateblocksExpr(booleanoutcome,Expre){none()}
82
+
}
83
+
84
+
/**
85
+
* A barrier guard that applies to multiple XSS queries.
0 commit comments