sql injection: source is argument to read

This commit is contained in:
Michael Hohn
2020-07-20 14:07:49 -07:00
committed by =Michael Hohn
parent a69c511dc1
commit 42e2c5de8b

View File

@@ -28,6 +28,7 @@ class SqliFlowConfig extends TaintTracking::Configuration {
// Source identification // Source identification
// count = read(STDIN_FILENO, buf, BUFSIZE); // count = read(STDIN_FILENO, buf, BUFSIZE);
from FunctionCall read from FunctionCall read, DataFlow::Node source
where read.getTarget().getName() = "read" where read.getTarget().getName() = "read"
select read and read.getArgument(1) = source.asExpr()
select read, source