Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df95562

Browse files
committed
remove TTUndefined from TypeOfSanitizer in js/shell-command-constructed-from-input
1 parent 6eb88b9 commit df95562

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

javascript/ql/src/semmle/javascript/security/dataflow/UnsafeShellCommandConstructionCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ module UnsafeShellCommandConstruction {
201201

202202
TypeOfSanitizer() {
203203
TaintTracking::isTypeofGuard(astNode, x,
204-
any(InferredType t | t = TTUndefined() or t = TTNumber() or t = TTBoolean()))
204+
any(InferredType t | t = TTNumber() or t = TTBoolean()))
205205
}
206206

207207
override predicate sanitizes(boolean outcome, Expr e) {

0 commit comments

Comments
 (0)