File tree Expand file tree Collapse file tree 10 files changed +58
-11
lines changed
experimental/decompression-api Expand file tree Collapse file tree 10 files changed +58
-11
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ private module Config implements DataFlow::ConfigSig {
18
18
19
19
predicate isBarrier ( DataFlow:: Node node ) { node instanceof Sanitizer }
20
20
21
- predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
21
+ predicate observeDiffInformedIncrementalMode ( ) {
22
+ // TODO(diff-informed): Manually verify if config can be diff-informed.
23
+ // ql/src/experimental/cwe-807/ConditionalBypass.ql:78: Flow call outside 'select' clause
24
+ none ( )
25
+ }
22
26
}
23
27
24
28
/**
Original file line number Diff line number Diff line change @@ -21,7 +21,11 @@ private module InsecureDownloadConfig implements DataFlow::StateConfigSig {
21
21
22
22
predicate isBarrier ( DataFlow:: Node node ) { node instanceof Sanitizer }
23
23
24
- predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
24
+ predicate observeDiffInformedIncrementalMode ( ) {
25
+ // TODO(diff-informed): Manually verify if config can be diff-informed.
26
+ // ql/src/queries/security/cwe-829/InsecureDownload.ql:20: Column 5 selects sink.getDownloadCall
27
+ none ( )
28
+ }
25
29
}
26
30
27
31
/**
Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ private module UnsafeCodeConstructionConfig implements DataFlow::ConfigSig {
25
25
// override to require the path doesn't have unmatched return steps
26
26
DataFlow:: FlowFeature getAFeature ( ) { result instanceof DataFlow:: FeatureHasSourceCallContext }
27
27
28
- predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
28
+ predicate observeDiffInformedIncrementalMode ( ) {
29
+ // TODO(diff-informed): Manually verify if config can be diff-informed.
30
+ // ql/src/queries/security/cwe-094/UnsafeCodeConstruction.ql:25: Column 7 selects sink.getCodeSink
31
+ none ( )
32
+ }
29
33
}
30
34
31
35
/**
Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ private module UnsafeHtmlConstructionConfig implements DataFlow::ConfigSig {
22
22
// override to require the path doesn't have unmatched return steps
23
23
DataFlow:: FlowFeature getAFeature ( ) { result instanceof DataFlow:: FeatureHasSourceCallContext }
24
24
25
- predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
25
+ predicate observeDiffInformedIncrementalMode ( ) {
26
+ // TODO(diff-informed): Manually verify if config can be diff-informed.
27
+ // ql/src/queries/security/cwe-079/UnsafeHtmlConstruction.ql:24: Column 7 selects sink.getXssSink
28
+ none ( )
29
+ }
26
30
}
27
31
28
32
/**
Original file line number Diff line number Diff line change @@ -27,7 +27,12 @@ private module UnsafeShellCommandConstructionConfig implements DataFlow::ConfigS
27
27
// override to require the path doesn't have unmatched return steps
28
28
DataFlow:: FlowFeature getAFeature ( ) { result instanceof DataFlow:: FeatureHasSourceCallContext }
29
29
30
- predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
30
+ predicate observeDiffInformedIncrementalMode ( ) {
31
+ // TODO(diff-informed): Manually verify if config can be diff-informed.
32
+ // ql/src/queries/security/cwe-078/UnsafeShellCommandConstruction.ql:26: Column 1 selects sink.getStringConstruction
33
+ // ql/src/queries/security/cwe-078/UnsafeShellCommandConstruction.ql:28: Column 7 selects sink.getCommandExecution
34
+ none ( )
35
+ }
31
36
}
32
37
33
38
/**
Original file line number Diff line number Diff line change @@ -29,7 +29,11 @@ module NormalHashFunction {
29
29
30
30
predicate isBarrier ( DataFlow:: Node node ) { node instanceof Sanitizer }
31
31
32
- predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
32
+ predicate observeDiffInformedIncrementalMode ( ) {
33
+ // TODO(diff-informed): Manually verify if config can be diff-informed.
34
+ // ql/lib/codeql/ruby/security/WeakSensitiveDataHashingQuery.qll:83: Flow call outside 'select' clause
35
+ none ( )
36
+ }
33
37
}
34
38
35
39
/** Global taint-tracking for detecting "use of a broken or weak cryptographic hashing algorithm on sensitive data" vulnerabilities. */
@@ -57,7 +61,11 @@ module ComputationallyExpensiveHashFunction {
57
61
58
62
predicate isBarrier ( DataFlow:: Node node ) { node instanceof Sanitizer }
59
63
60
- predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
64
+ predicate observeDiffInformedIncrementalMode ( ) {
65
+ // TODO(diff-informed): Manually verify if config can be diff-informed.
66
+ // ql/lib/codeql/ruby/security/WeakSensitiveDataHashingQuery.qll:90: Flow call outside 'select' clause
67
+ none ( )
68
+ }
61
69
}
62
70
63
71
/** Global taint-tracking for detecting "use of a broken or weak cryptographic hashing algorithm on passwords" vulnerabilities. */
Original file line number Diff line number Diff line change @@ -18,7 +18,12 @@ private module MissingFullAnchorConfig implements DataFlow::ConfigSig {
18
18
19
19
predicate isBarrier ( DataFlow:: Node node ) { node instanceof Sanitizer }
20
20
21
- predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
21
+ predicate observeDiffInformedIncrementalMode ( ) {
22
+ // TODO(diff-informed): Manually verify if config can be diff-informed.
23
+ // ql/src/queries/security/cwe-020/MissingFullAnchor.ql:20: Column 7 selects sink.getCallNode
24
+ // ql/src/queries/security/cwe-020/MissingFullAnchor.ql:20: Column 9 selects sink.getRegex
25
+ none ( )
26
+ }
22
27
}
23
28
24
29
/**
Original file line number Diff line number Diff line change @@ -19,7 +19,12 @@ private module PolynomialReDoSConfig implements DataFlow::ConfigSig {
19
19
20
20
predicate isBarrier ( DataFlow:: Node node ) { node instanceof Sanitizer }
21
21
22
- predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
22
+ predicate observeDiffInformedIncrementalMode ( ) {
23
+ // TODO(diff-informed): Manually verify if config can be diff-informed.
24
+ // ql/src/queries/security/cwe-1333/PolynomialReDoS.ql:27: Column 1 selects sink.getHighlight
25
+ // ql/src/queries/security/cwe-1333/PolynomialReDoS.ql:29: Column 5 selects sink.getRegExp
26
+ none ( )
27
+ }
23
28
}
24
29
25
30
/**
Original file line number Diff line number Diff line change @@ -40,7 +40,11 @@ private module DecompressionApiConfig implements DataFlow::ConfigSig {
40
40
// our Decompression APIs defined above will be the sinks we use for this query
41
41
predicate isSink ( DataFlow:: Node sink ) { sink instanceof DecompressionApiUse }
42
42
43
- predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
43
+ predicate observeDiffInformedIncrementalMode ( ) {
44
+ // TODO(diff-informed): Manually verify if config can be diff-informed.
45
+ // ql/src/experimental/decompression-api/DecompressionApi.ql:54: Column 5 selects sink.getCall
46
+ none ( )
47
+ }
44
48
}
45
49
46
50
private module DecompressionApiFlow = TaintTracking:: Global< DecompressionApiConfig > ;
Original file line number Diff line number Diff line change @@ -55,7 +55,11 @@ private module PermissivePermissionsConfig implements DataFlow::ConfigSig {
55
55
exists ( FileSystemPermissionModification mod | mod .getAPermissionNode ( ) = sink )
56
56
}
57
57
58
- predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
58
+ predicate observeDiffInformedIncrementalMode ( ) {
59
+ // TODO(diff-informed): Manually verify if config can be diff-informed.
60
+ // ql/src/queries/security/cwe-732/WeakFilePermissions.ql:71: Column 5 does not select a source or sink originating from the flow call on line 69
61
+ none ( )
62
+ }
59
63
}
60
64
61
65
private module PermissivePermissionsFlow = DataFlow:: Global< PermissivePermissionsConfig > ;
You can’t perform that action at this time.
0 commit comments