99
1010import javascript
1111import IncompleteHtmlAttributeSanitizationCustomizations:: IncompleteHtmlAttributeSanitization
12+ private import IncompleteHtmlAttributeSanitizationCustomizations:: IncompleteHtmlAttributeSanitization as IncompleteHtmlAttributeSanitization
1213
13- private module Label {
14+ deprecated private module Label {
1415 class Quote extends DataFlow:: FlowLabel {
1516 Quote ( ) { this = [ "\"" , "'" ] }
1617 }
@@ -26,18 +27,18 @@ private module Label {
2627 * A taint-tracking configuration for reasoning about incomplete HTML sanitization vulnerabilities.
2728 */
2829module IncompleteHtmlAttributeSanitizationConfig implements DataFlow:: StateConfigSig {
29- class FlowState = DataFlow :: FlowLabel ;
30+ class FlowState = IncompleteHtmlAttributeSanitization :: FlowState ;
3031
31- predicate isSource ( DataFlow:: Node source , DataFlow :: FlowLabel label ) {
32- label = Label :: characterToLabel ( source .( Source ) .getAnUnsanitizedCharacter ( ) )
32+ predicate isSource ( DataFlow:: Node source , FlowState label ) {
33+ label = FlowState :: character ( source .( Source ) .getAnUnsanitizedCharacter ( ) )
3334 }
3435
35- predicate isSink ( DataFlow:: Node sink , DataFlow :: FlowLabel label ) {
36- label = Label :: characterToLabel ( sink .( Sink ) .getADangerousCharacter ( ) )
36+ predicate isSink ( DataFlow:: Node sink , FlowState label ) {
37+ label = FlowState :: character ( sink .( Sink ) .getADangerousCharacter ( ) )
3738 }
3839
39- predicate isBarrier ( DataFlow:: Node node , DataFlow :: FlowLabel lbl ) {
40- lbl = Label :: characterToLabel ( node .( StringReplaceCall ) .getAReplacedString ( ) )
40+ predicate isBarrier ( DataFlow:: Node node , FlowState lbl ) {
41+ lbl = FlowState :: character ( node .( StringReplaceCall ) .getAReplacedString ( ) )
4142 }
4243
4344 predicate isBarrier ( DataFlow:: Node n ) { n instanceof Sanitizer }
0 commit comments