Exclude loopback address from reverse DNS source

This commit is contained in:
Owen Mansel-Chan
2024-06-14 12:21:23 +01:00
parent 5973f3fadc
commit 7a13c31021
2 changed files with 3 additions and 3 deletions

View File

@@ -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")
)
)
}