File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed
lib/semmle/code/java/dataflow/internal
src/experimental/Security/CWE/CWE-352 Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -618,7 +618,7 @@ private MethodAccess callReturningSameType(Expr ref) {
618
618
}
619
619
620
620
private SrcRefType entrypointType ( ) {
621
- exists ( RemoteFlowSource s , RefType t |
621
+ exists ( ThreatModelFlowSource s , RefType t |
622
622
s instanceof DataFlow:: ExplicitParameterNode and
623
623
t = pragma [ only_bind_out ] ( s ) .getType ( ) and
624
624
not t instanceof TypeObject and
@@ -629,6 +629,10 @@ private SrcRefType entrypointType() {
629
629
}
630
630
631
631
private predicate entrypointFieldStep ( DataFlow:: Node src , DataFlow:: Node sink ) {
632
- src = DataFlow:: getFieldQualifier ( sink .asExpr ( ) .( FieldRead ) ) and
632
+ exists ( FieldRead fa |
633
+ fa = sink .asExpr ( ) and
634
+ src = DataFlow:: getFieldQualifier ( fa ) and
635
+ not fa .getField ( ) .isStatic ( )
636
+ ) and
633
637
src .getType ( ) .( RefType ) .getSourceDeclaration ( ) = entrypointType ( )
634
638
}
Original file line number Diff line number Diff line change @@ -86,18 +86,8 @@ module ThreatModelFlowConfig implements DataFlow::ConfigSig {
86
86
}
87
87
}
88
88
89
- /**
90
- * DEPRECATED: Use `ThreatModelFlowConfig` instead.
91
- */
92
- deprecated module RemoteFlowConfig = ThreatModelFlowConfig;
93
-
94
89
module ThreatModelFlow = DataFlow:: Global< ThreatModelFlowConfig > ;
95
90
96
- /**
97
- * DEPRECATED: Use `ThreatModelFlow` instead.
98
- */
99
- deprecated module RemoteFlow = ThreatModelFlow;
100
-
101
91
/** A data flow configuration tracing flow from json data into the argument `json` of JSONP-like string `someFunctionName + "(" + json + ")"`. */
102
92
module JsonDataFlowConfig implements DataFlow:: ConfigSig {
103
93
predicate isSource ( DataFlow:: Node src ) { src instanceof JsonStringSource }
You can’t perform that action at this time.
0 commit comments