mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
Python: Simplify CgiFieldStorageFieldKind.getTaintOfAttribute
This commit is contained in:
@@ -117,10 +117,8 @@ class CgiFieldStorageFieldKind extends TaintKind {
|
||||
CgiFieldStorageFieldKind() { this = "CgiFieldStorageFieldKind" }
|
||||
|
||||
override TaintKind getTaintOfAttribute(string name) {
|
||||
name = "filename" and result instanceof ExternalStringKind
|
||||
name in ["filename", "value"] and result instanceof ExternalStringKind
|
||||
or
|
||||
name = "file" and result instanceof ExternalFileObject
|
||||
or
|
||||
name = "value" and result instanceof ExternalStringKind
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user