Skip to content

Commit

Permalink
Added other variants of the __proto__ string
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-canva committed Mar 21, 2022
1 parent c571d80 commit 5e86ee5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ U=</data>
assert.throws(function () {
parseFixture('<dict><key>__proto__</key><dict><key>length</key><string>polluted</string></dict></dict>');
});

// adding backslash should still be protected.
assert.throws(function () {
parseFixture('<dict><key>_\_proto_\_</key><dict><key>length</key><string>polluted</string></dict></dict>');
});
});
});

Expand Down

0 comments on commit 5e86ee5

Please sign in to comment.