Skip to content

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cpp/ql/src/Security/CWE/CWE-020/ExternalAPIsSpecific.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ private module UntrustedDataToExternalApiConfig implements DataFlow::ConfigSig {
5151
}
5252

5353
predicate isSink(DataFlow::Node sink) { sink instanceof ExternalApiDataNode }
54+
55+
predicate observeDiffInformedIncrementalMode() {
56+
none() // risky since used in library: normal use in UntrustedDataToExternalApi.ql; used via ExternalApiUsedWithUntrustedData (no location) in CountUntrustedDataToExternalAPI.ql
57+
}
5458
}
5559

5660
module UntrustedDataToExternalApiFlow = TaintTracking::Global<UntrustedDataToExternalApiConfig>;

cpp/ql/src/Security/CWE/CWE-020/ir/ExternalAPIsSpecific.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ private module UntrustedDataToExternalApiConfig implements DataFlow::ConfigSig {
4646
predicate isSource(DataFlow::Node source) { source instanceof RemoteFlowSource }
4747

4848
predicate isSink(DataFlow::Node sink) { sink instanceof ExternalApiDataNode }
49+
50+
predicate observeDiffInformedIncrementalMode() {
51+
none() // risky since used in library: normal use in IRUntrustedDataToExternalApi.ql; used via ExternalApiUsedWithUntrustedData (no location) in IRCountUntrustedDataToExternalAPI.ql
52+
}
4953
}
5054

5155
module UntrustedDataToExternalApiFlow = TaintTracking::Global<UntrustedDataToExternalApiConfig>;

0 commit comments

Comments
 (0)