mirror of
https://github.com/minimaxir/big-list-of-naughty-strings.git
synced 2025-09-03 02:42:36 +02:00
Adds constructor
`constructor` is the only lowercase identifier that is `in` all JavaScript objects, and can be involved in obscure XSS so can be used to abuse code that uses JavaScript objects as lookup tables. ```js var empty = {}; if ('constuctor' in empty && empty['constructor']) { // runs } empty['constructor']['constructor']('alert(1)')(); // Parses and runs ```
This commit is contained in: