Refactor InsecureBasicAuth

This commit is contained in:
Ed Minnix
2023-03-21 17:15:08 -04:00
parent dcd46c2236
commit fa2f0dbc3b
3 changed files with 26 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ class HasInsecureBasicAuthTest extends InlineExpectationsTest {
override predicate hasActualResult(Location location, string element, string tag, string value) {
tag = "hasInsecureBasicAuth" and
exists(DataFlow::Node sink, BasicAuthFlowConfig conf | conf.hasFlowTo(sink) |
exists(DataFlow::Node sink | InsecureBasicAuthFlow::flowTo(sink) |
sink.getLocation() = location and
element = sink.toString() and
value = ""