Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit bcb6515

Browse files
committed
Oauth2-state query: treat log calls the same as stdout printers
These presumably get to the user somehow, and in conjunction with stdin use are enough to identify use of oauth at the terminal.
1 parent 3d877fc commit bcb6515

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ql/src/experimental/CWE-352/ConstantOauth2State.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ class FlowToPrint extends DataFlow::Configuration {
5050

5151
predicate isSink(DataFlow::Node sink, DataFlow::CallNode call) {
5252
exists(Fmt::Printer printer | call = printer.getACall() | sink = call.getArgument(_))
53+
or
54+
exists(LoggerCall logCall | call = logCall | sink = logCall.getAMessageComponent())
5355
}
5456

5557
override predicate isSource(DataFlow::Node source) { isSource(source, _) }

0 commit comments

Comments
 (0)