Update swift/ql/src/queries/Security/CWE-312/CleartextLogging.ql

Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
This commit is contained in:
Geoffrey White
2023-05-16 14:16:30 +01:00
committed by GitHub
parent 2a4d7cb642
commit 94b4ebe38b

View File

@@ -20,7 +20,7 @@ import CleartextLoggingFlow::PathGraph
from CleartextLoggingFlow::PathNode source, CleartextLoggingFlow::PathNode sink
where CleartextLoggingFlow::flowPath(source, sink)
select sink, source, sink,
select sink.getNode(), source, sink,
"This operation writes '" + sink.toString() +
"' to a log file. It may contain unencrypted sensitive data from $@.", source,
source.getNode().toString()