mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
fix typo, the variable in the example is called items
This commit is contained in:
@@ -35,8 +35,8 @@
|
||||
<p>
|
||||
In the example below, the untrusted value <code>req.params.id</code> is used as the property name
|
||||
<code>req.session.todos[id]</code>. If a malicious user passes in the ID value <code>__proto__</code>,
|
||||
the variable <code>todo</code> will then refer to <code>Object.prototype</code>.
|
||||
Finally, the modification of <code>todo</code> then allows the attacker to inject arbitrary properties
|
||||
the variable <code>items</code> will then refer to <code>Object.prototype</code>.
|
||||
Finally, the modification of <code>items</code> then allows the attacker to inject arbitrary properties
|
||||
onto <code>Object.prototype</code>.
|
||||
</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user