Skip to content

Commit dba76a0

Browse files
committed
JS: Rerun patch query after bugfix
1 parent 28f3073 commit dba76a0

19 files changed

+105
-19
lines changed

javascript/ql/lib/semmle/javascript/security/dataflow/BrokenCryptoAlgorithmQuery.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ module BrokenCryptoAlgorithmConfig implements DataFlow::ConfigSig {
2626

2727
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
2828

29-
predicate observeDiffInformedIncrementalMode() { any() }
29+
predicate observeDiffInformedIncrementalMode() {
30+
// TODO(diff-informed): Manually verify if config can be diff-informed.
31+
// ql/src/Security/CWE-327/BrokenCryptoAlgorithm.ql:27: Column 5 selects sink.getInitialization
32+
none()
33+
}
3034
}
3135

3236
/**

javascript/ql/lib/semmle/javascript/security/dataflow/ClientSideRequestForgeryQuery.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ module ClientSideRequestForgeryConfig implements DataFlow::ConfigSig {
3232
isAdditionalRequestForgeryStep(node1, node2)
3333
}
3434

35-
predicate observeDiffInformedIncrementalMode() { any() }
35+
predicate observeDiffInformedIncrementalMode() {
36+
// TODO(diff-informed): Manually verify if config can be diff-informed.
37+
// ql/src/Security/CWE-918/ClientSideRequestForgery.ql:24: Column 1 selects sink.getARequest
38+
none()
39+
}
3640
}
3741

3842
/**

javascript/ql/lib/semmle/javascript/security/dataflow/CommandInjectionQuery.qll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ module CommandInjectionConfig implements DataFlow::ConfigSig {
3131

3232
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
3333

34-
predicate observeDiffInformedIncrementalMode() { any() }
34+
predicate observeDiffInformedIncrementalMode() {
35+
// TODO(diff-informed): Manually verify if config can be diff-informed.
36+
// ql/src/Security/CWE-078/CommandInjection.ql:31: Column 1 does not select a source or sink originating from the flow call on line 24
37+
// ql/src/experimental/heuristics/ql/src/Security/CWE-078/CommandInjection.ql:34: Column 1 does not select a source or sink originating from the flow call on line 26
38+
none()
39+
}
3540
}
3641

3742
/**

javascript/ql/lib/semmle/javascript/security/dataflow/CorsMisconfigurationForCredentialsQuery.qll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ module CorsMisconfigurationConfig implements DataFlow::ConfigSig {
2424
node = TaintTracking::AdHocWhitelistCheckSanitizer::getABarrierNode()
2525
}
2626

27-
predicate observeDiffInformedIncrementalMode() { any() }
27+
predicate observeDiffInformedIncrementalMode() {
28+
// TODO(diff-informed): Manually verify if config can be diff-informed.
29+
// ql/src/Security/CWE-346/CorsMisconfigurationForCredentials.ql:22: Column 5 selects sink.getCredentialsHeader
30+
// ql/src/experimental/heuristics/ql/src/Security/CWE-346/CorsMisconfigurationForCredentials.ql:25: Column 5 selects sink.getCredentialsHeader
31+
none()
32+
}
2833
}
2934

3035
/**

javascript/ql/lib/semmle/javascript/security/dataflow/DeepObjectResourceExhaustionQuery.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ module DeepObjectResourceExhaustionConfig implements DataFlow::StateConfigSig {
3434
TaintedObject::isAdditionalFlowStep(node1, state1, node2, state2)
3535
}
3636

37-
predicate observeDiffInformedIncrementalMode() { any() }
37+
predicate observeDiffInformedIncrementalMode() {
38+
// TODO(diff-informed): Manually verify if config can be diff-informed.
39+
// ql/src/Security/CWE-400/DeepObjectResourceExhaustion.ql:23: Column 7 does not select a source or sink originating from the flow call on line 19
40+
none()
41+
}
3842
}
3943

4044
/**

javascript/ql/lib/semmle/javascript/security/dataflow/IndirectCommandInjectionQuery.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ module IndirectCommandInjectionConfig implements DataFlow::ConfigSig {
2727

2828
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
2929

30-
predicate observeDiffInformedIncrementalMode() { any() }
30+
predicate observeDiffInformedIncrementalMode() {
31+
// TODO(diff-informed): Manually verify if config can be diff-informed.
32+
// ql/src/Security/CWE-078/IndirectCommandInjection.ql:29: Column 1 does not select a source or sink originating from the flow call on line 25
33+
none()
34+
}
3135
}
3236

3337
/**

javascript/ql/lib/semmle/javascript/security/dataflow/InsecureDownloadQuery.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ module InsecureDownloadConfig implements DataFlow::StateConfigSig {
2424

2525
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
2626

27-
predicate observeDiffInformedIncrementalMode() { any() }
27+
predicate observeDiffInformedIncrementalMode() {
28+
// TODO(diff-informed): Manually verify if config can be diff-informed.
29+
// ql/src/Security/CWE-829/InsecureDownload.ql:21: Column 5 selects sink.getDownloadCall
30+
none()
31+
}
2832
}
2933

3034
/**

javascript/ql/lib/semmle/javascript/security/dataflow/NosqlInjectionQuery.qll

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,14 @@ module NosqlInjectionConfig implements DataFlow::StateConfigSig {
5252
state2 = state1
5353
}
5454

55-
predicate observeDiffInformedIncrementalMode() { any() }
55+
predicate observeDiffInformedIncrementalMode() {
56+
// TODO(diff-informed): Manually verify if config can be diff-informed.
57+
// ql/src/Security/CWE-089/SqlInjection.ql:35: Column 1 does not select a source or sink originating from the flow call on line 32
58+
// ql/src/Security/CWE-089/SqlInjection.ql:35: Column 5 does not select a source or sink originating from the flow call on line 32
59+
// ql/src/experimental/heuristics/ql/src/Security/CWE-089/SqlInjection.ql:37: Column 1 does not select a source or sink originating from the flow call on line 34
60+
// ql/src/experimental/heuristics/ql/src/Security/CWE-089/SqlInjection.ql:37: Column 5 does not select a source or sink originating from the flow call on line 34
61+
none()
62+
}
5663
}
5764

5865
/**

javascript/ql/lib/semmle/javascript/security/dataflow/PrototypePollutionQuery.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ module PrototypePollutionConfig implements DataFlow::StateConfigSig {
4848
node = TaintedObject::SanitizerGuard::getABarrierNode(state)
4949
}
5050

51-
predicate observeDiffInformedIncrementalMode() { any() }
51+
predicate observeDiffInformedIncrementalMode() {
52+
// TODO(diff-informed): Manually verify if config can be diff-informed.
53+
// ql/src/Security/CWE-915/PrototypePollutingMergeCall.ql:30: Column 7 does not select a source or sink originating from the flow call on line 26
54+
none()
55+
}
5256
}
5357

5458
/**

javascript/ql/lib/semmle/javascript/security/dataflow/RequestForgeryQuery.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ module RequestForgeryConfig implements DataFlow::ConfigSig {
2727
isAdditionalRequestForgeryStep(node1, node2)
2828
}
2929

30-
predicate observeDiffInformedIncrementalMode() { any() }
30+
predicate observeDiffInformedIncrementalMode() {
31+
// TODO(diff-informed): Manually verify if config can be diff-informed.
32+
// ql/src/Security/CWE-918/RequestForgery.ql:21: Column 1 selects sink.getARequest
33+
none()
34+
}
3135
}
3236

3337
/**

0 commit comments

Comments
 (0)