mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Python: Improve API and representation of taint tracking nodes. Update queries and tests accordingly.
This commit is contained in:
@@ -28,8 +28,7 @@ class UntrustedPrefixStringKind extends UntrustedStringKind {
|
||||
|
||||
}
|
||||
|
||||
from TaintedNode srcnode, TaintedNode sinknode, TaintSource src, TaintSink sink
|
||||
where src.flowsToSink(sink) and srcnode.getNode() = src and sinknode.getNode() = sink
|
||||
|
||||
select sink, srcnode, sinknode, "Untrusted URL redirection due to $@.", src, "a user-provided value"
|
||||
from TaintedPathSource src, TaintedPathSink sink
|
||||
where src.flowsTo(sink)
|
||||
select sink.getSink(), src, sink, "Untrusted URL redirection due to $@.", src.getSource(), "a user-provided value"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user