mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
11 lines
429 B
Plaintext
11 lines
429 B
Plaintext
import semmle.code.java.security.ControlledString
|
|
|
|
from Expr controlled, Method method, int line
|
|
where
|
|
controlledString(controlled) and
|
|
method = controlled.getEnclosingCallable() and
|
|
line = controlled.getLocation().getStartLine() - method.getLocation().getStartLine() and
|
|
controlled.getCompilationUnit().fromSource() and
|
|
controlled.getFile().getStem() = ["Test", "Validation"]
|
|
select method.getName(), line, controlled
|