mirror of
https://github.com/hohn/codeql-dataflow-sql-injection.git
synced 2025-12-16 18:23:05 +01:00
sql injection: source is argument to read
This commit is contained in:
committed by
=Michael Hohn
parent
a69c511dc1
commit
42e2c5de8b
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user