mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
JS: rename DefaultParsedCommandLineArgumentsAsSource
This commit is contained in:
@@ -40,10 +40,10 @@ module IndirectCommandInjection {
|
||||
}
|
||||
|
||||
/**
|
||||
* An object containing command-line arguments that were parsed with a default configuration, considered as a flow source for command injection.
|
||||
* An object containing parsed command-line arguments, considered as a flow source for command injection.
|
||||
*/
|
||||
class DefaultParsedCommandLineArgumentsAsSource extends Source {
|
||||
DefaultParsedCommandLineArgumentsAsSource() {
|
||||
class ParsedCommandLineArgumentsAsSource extends Source {
|
||||
ParsedCommandLineArgumentsAsSource() {
|
||||
// `require('get-them-args')(...)` => `{ unknown: [], a: ... b: ... }`
|
||||
this = DataFlow::moduleImport("get-them-args").getACall() or
|
||||
// `require('minimist')(...)` => `{ _: [], a: ... b: ... }`
|
||||
|
||||
Reference in New Issue
Block a user