mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Update java/ql/src/experimental/Security/CWE/CWE-348/UseOfLessTrustedSourceLib.qll
Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
@@ -102,8 +102,7 @@ private class PrintSink extends UseOfLessTrustedSink {
|
||||
exists(MethodAccess ma |
|
||||
ma.getMethod().getName() in ["print", "println"] and
|
||||
(
|
||||
ma.getMethod().getDeclaringType().hasQualifiedName("java.io", "PrintWriter") or
|
||||
ma.getMethod().getDeclaringType().hasQualifiedName("java.io", "PrintStream")
|
||||
ma.getMethod().getDeclaringType().hasQualifiedName("java.io", ["PrintWriter", "PrintStream"])
|
||||
) and
|
||||
ma.getAnArgument() = this.asExpr()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user