Skip to content

Commit 4a985bf

Browse files
committed
1 parent 52c0d62 commit 4a985bf

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

java/ql/lib/semmle/code/java/security/InsecureLdapAuthQuery.qll

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,20 @@ private module BasicAuthConfig implements DataFlow::ConfigSig {
4040
}
4141

4242
predicate isSink(DataFlow::Node sink) { sink instanceof InsecureLdapUrlSink }
43+
44+
predicate observeDiffInformedIncrementalMode() { any() }
45+
46+
Location getASelectedSourceLocation(DataFlow::Node source) { none() }
47+
48+
Location getASelectedSinkLocation(DataFlow::Node sink) {
49+
result = sink.getLocation()
50+
or
51+
exists(InsecureLdapUrlFlow::PathNode pathSource, InsecureLdapUrlFlow::PathNode pathSink |
52+
result = pathSource.getNode().getLocation() and
53+
pathSink.getNode() = sink and
54+
InsecureLdapUrlFlow::flowPath(pathSource, pathSink)
55+
)
56+
}
4357
}
4458

4559
module BasicAuthFlow = DataFlow::Global<BasicAuthConfig>;
@@ -56,6 +70,10 @@ private module RequiresSslConfig implements DataFlow::ConfigSig {
5670
}
5771

5872
predicate isSink(DataFlow::Node sink) { sink instanceof InsecureLdapUrlSink }
73+
74+
predicate observeDiffInformedIncrementalMode() {
75+
none() // only used negatively in InsecureLdapAuth.ql
76+
}
5977
}
6078

6179
module RequiresSslFlow = DataFlow::Global<RequiresSslConfig>;

0 commit comments

Comments
 (0)