JS: rename DefaultParsedCommandLineArgumentsAsSource

This commit is contained in:
Esben Sparre Andreasen
2019-11-15 10:40:15 +01:00
parent 8e6a19b3d3
commit c3fdfdecab

View File

@@ -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: ... }`