Skip to content

Commit 7a338c4

Browse files
committed
fix typo, the variable in the example is called items
1 parent 9dede31 commit 7a338c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/Security/CWE-915/PrototypePollutingAssignment.inc.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
<p>
3636
In the example below, the untrusted value <code>req.params.id</code> is used as the property name
3737
<code>req.session.todos[id]</code>. If a malicious user passes in the ID value <code>__proto__</code>,
38-
the variable <code>todo</code> will then refer to <code>Object.prototype</code>.
39-
Finally, the modification of <code>todo</code> then allows the attacker to inject arbitrary properties
38+
the variable <code>items</code> will then refer to <code>Object.prototype</code>.
39+
Finally, the modification of <code>items</code> then allows the attacker to inject arbitrary properties
4040
onto <code>Object.prototype</code>.
4141
</p>
4242

0 commit comments

Comments
 (0)