mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
JS: Block prototype pollution flow into this
This commit is contained in:
@@ -33,6 +33,8 @@ class Configuration extends TaintTracking::Configuration {
|
||||
// Concatenating with a string will in practice prevent the string `__proto__` from arising.
|
||||
node instanceof StringOps::ConcatenationRoot
|
||||
or
|
||||
node instanceof DataFlow::ThisNode
|
||||
or
|
||||
// Stop at .replace() calls that likely prevent __proto__ from arising
|
||||
exists(StringReplaceCall replace |
|
||||
node = replace and
|
||||
|
||||
Reference in New Issue
Block a user