File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
java/ql/src/Security/CWE/CWE-209 Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -120,22 +120,20 @@ class GetMessageFlowSource extends MethodAccess {
120
120
}
121
121
}
122
122
123
- class GetMessageFlowSourceToHttpResponseSinkFlowConfig extends TaintTracking:: Configuration {
124
- GetMessageFlowSourceToHttpResponseSinkFlowConfig ( ) {
125
- this = "StackTraceExposure::GetMessageFlowSourceToHttpResponseSinkFlowConfig"
126
- }
127
-
128
- override predicate isSource ( DataFlow:: Node src ) { src .asExpr ( ) instanceof GetMessageFlowSource }
123
+ private module GetMessageFlowSourceToHttpResponseSinkFlowConfig implements DataFlow:: ConfigSig {
124
+ predicate isSource ( DataFlow:: Node src ) { src .asExpr ( ) instanceof GetMessageFlowSource }
129
125
130
- override predicate isSink ( DataFlow:: Node sink ) { sink instanceof InformationLeakSink }
126
+ predicate isSink ( DataFlow:: Node sink ) { sink instanceof InformationLeakSink }
131
127
}
132
128
129
+ module GetMessageFlowSourceToHttpResponseSinkFlow =
130
+ TaintTracking:: Make< GetMessageFlowSourceToHttpResponseSinkFlowConfig > ;
131
+
133
132
/**
134
133
* A call to `getMessage()` that then flows to a servlet response.
135
134
*/
136
135
predicate getMessageFlowsExternally ( DataFlow:: Node externalExpr , GetMessageFlowSource getMessage ) {
137
- any ( GetMessageFlowSourceToHttpResponseSinkFlowConfig conf )
138
- .hasFlow ( DataFlow:: exprNode ( getMessage ) , externalExpr )
136
+ GetMessageFlowSourceToHttpResponseSinkFlow:: hasFlow ( DataFlow:: exprNode ( getMessage ) , externalExpr )
139
137
}
140
138
141
139
from Expr externalExpr , Expr errorInformation
You can’t perform that action at this time.
0 commit comments