Skip to content

Commit 23f3736

Browse files
committed
Python: Simplify CgiFieldStorageFieldKind.getTaintOfAttribute
1 parent 22096c3 commit 23f3736

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python/ql/src/semmle/python/web/stdlib/Request.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,8 @@ class CgiFieldStorageFieldKind extends TaintKind {
117117
CgiFieldStorageFieldKind() { this = "CgiFieldStorageFieldKind" }
118118

119119
override TaintKind getTaintOfAttribute(string name) {
120-
name = "filename" and result instanceof ExternalStringKind
120+
name in ["filename", "value"] and result instanceof ExternalStringKind
121121
or
122122
name = "file" and result instanceof ExternalFileObject
123-
or
124-
name = "value" and result instanceof ExternalStringKind
125123
}
126124
}

0 commit comments

Comments
 (0)