Skip to content

Commit 94b4ebe

Browse files
geoffw0MathiasVP
andauthored
Update swift/ql/src/queries/Security/CWE-312/CleartextLogging.ql
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
1 parent 2a4d7cb commit 94b4ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import CleartextLoggingFlow::PathGraph
2020

2121
from CleartextLoggingFlow::PathNode source, CleartextLoggingFlow::PathNode sink
2222
where CleartextLoggingFlow::flowPath(source, sink)
23-
select sink, source, sink,
23+
select sink.getNode(), source, sink,
2424
"This operation writes '" + sink.toString() +
2525
"' to a log file. It may contain unencrypted sensitive data from $@.", source,
2626
source.getNode().toString()

0 commit comments

Comments
 (0)