python: rewrite to separate configurations

source nodes get duplicated, so perhaps flow states
are actually better for performance?
This commit is contained in:
Rasmus Lerchedahl Petersen
2022-02-01 14:36:11 +01:00
parent 7df5c70c6f
commit c2cd58edc4
4 changed files with 137 additions and 73 deletions

View File

@@ -16,7 +16,7 @@ import python
import semmle.python.security.dataflow.LdapInjection
import DataFlow::PathGraph
from LDAPInjectionFlowConfig config, DataFlow::PathNode source, DataFlow::PathNode sink
where config.hasFlowPath(source, sink)
from DataFlow::PathNode source, DataFlow::PathNode sink
where LdapInjection::ldapInjection(source, sink)
select sink.getNode(), source, sink, "$@ LDAP query parameter comes from $@.", sink.getNode(),
"This", source.getNode(), "a user-provided value"