Test Prototype Pollution In Deep Property Stores
When testing a target's deep property store, such as POST /api/preferences, try sending a payload with a path like ["__proto__", "role"] and includeInheritedProps set to true. This can bypass strict string comparison blocklists and pollute Object.prototype if the code uses the in operator instead of hasOwnProperty. Look for responses that indicate successful prototype pollution, such as increased privileges or access to previously restricted areas like GET /api/admin/*. The key is to find a non-string key that stringifies to the forbidden value, like an array or an object with a custom toString method.
Follow #express-js, #jwt or #prototype-pollution for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.
Comments
No comments yet.