Skip to content

Commit 874af76

Browse files
committed
Java: Fix taint-step handling for untrusted-data-external-api
The previous implementation would not handle any `AdditionalTaintStep` subclasses.
1 parent 0c78fb2 commit 874af76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/semmle/code/java/security/ExternalAPIs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class ExternalAPIDataNode extends DataFlow::Node {
7676
m.fromSource()
7777
) and
7878
// Not already modeled as a taint step
79-
not exists(DataFlow::Node next | TaintTracking::localTaintStep(this, next)) and
79+
not exists(DataFlow::Node next | TaintTracking::defaultAdditionalTaintStep(this, next)) and
8080
// Not a call to a known safe external API
8181
not call.getCallee() instanceof SafeExternalAPIMethod
8282
}

0 commit comments

Comments
 (0)