mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Exclude loopback address from reverse DNS source
This commit is contained in:
@@ -126,7 +126,7 @@ private class ReverseDnsSource extends RemoteFlowSource {
|
||||
m.getMethod() instanceof ReverseDnsMethod and
|
||||
not exists(MethodCall l |
|
||||
(variableStep(l, m.getQualifier()) or l = m.getQualifier()) and
|
||||
l.getMethod().getName() = "getLocalHost"
|
||||
(l.getMethod().getName() = "getLocalHost" or l.getMethod().getName() = "getLoopbackAddress")
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user