mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Update javascript/ql/src/semmle/javascript/security/dataflow/UnsafeShellCommandConstructionCustomizations.qll
Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
This commit is contained in:
committed by
GitHub
parent
876ba7ef2d
commit
18d26cabe5
@@ -191,8 +191,8 @@ module UnsafeShellCommandConstruction {
|
||||
}
|
||||
|
||||
/**
|
||||
* A check of the form `type x === "X"`, where x is "number", or "boolean",
|
||||
* which sanitized `x` in its "then" branch.
|
||||
* A guard of the form `typeof x === "<T>"`, where <T> is "number", or "boolean",
|
||||
* which sanitizes `x` in its "then" branch.
|
||||
*/
|
||||
class TypeOfSanitizer extends TaintTracking::SanitizerGuardNode, DataFlow::ValueNode {
|
||||
Expr x;
|
||||
|
||||
Reference in New Issue
Block a user