mirror of
https://github.com/github/codeql.git
synced 2026-01-30 06:42:57 +01:00
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.
This commit is contained in:
@@ -50,6 +50,8 @@ class FlowToPrint extends DataFlow::Configuration {
|
||||
|
||||
predicate isSink(DataFlow::Node sink, DataFlow::CallNode call) {
|
||||
exists(Fmt::Printer printer | call = printer.getACall() | sink = call.getArgument(_))
|
||||
or
|
||||
exists(LoggerCall logCall | call = logCall | sink = logCall.getAMessageComponent())
|
||||
}
|
||||
|
||||
override predicate isSource(DataFlow::Node source) { isSource(source, _) }
|
||||
|
||||
Reference in New Issue
Block a user