[DIFF-INFORMED] Go: BadRedirectCheck

This commit is contained in:
Nora Dimitrijević
2025-07-16 11:45:25 +02:00
parent b4010ac2b4
commit 8824677e87

View File

@@ -123,6 +123,17 @@ module Config implements DataFlow::ConfigSig {
}
predicate isSink(DataFlow::Node sink) { sink instanceof OpenUrlRedirect::Sink }
predicate observeDiffInformedIncrementalMode() { any() }
Location getASelectedSourceLocation(DataFlow::Node source) {
result = source.getLocation()
or
exists(DataFlow::Node check |
isCheckedSource(source, check) and
result = check.getLocation()
)
}
}
module Flow = TaintTracking::Global<Config>;