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

@@ -16,9 +16,9 @@
import java
import semmle.code.java.security.InsecureBasicAuthQuery
import DataFlow::PathGraph
import InsecureBasicAuthFlow::PathGraph
from DataFlow::PathNode source, DataFlow::PathNode sink, BasicAuthFlowConfig config
where config.hasFlowPath(source, sink)
from InsecureBasicAuthFlow::PathNode source, InsecureBasicAuthFlow::PathNode sink
where InsecureBasicAuthFlow::flowPath(source, sink)
select sink.getNode(), source, sink, "Insecure basic authentication from a $@.", source.getNode(),
"HTTP URL"