Tag

Tips tagged #jwt

Published tips with this tag, newest first. Payloads and commands are shown as plain text.

JSON Web Tokens (JWT) tips, and how to hunt it

Feed of #jwt

Tag #jwtRemove tag filter

  • 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

    Prototype pollutionExploitation

  • Verify JWT algorithm

    When verifying JSON Web Tokens (JWTs), always specify the expected algorithm to prevent attackers from manipulating the alg attribute in the token header. Use a library that allows you to pass an explicit algorithm to verify(), such as jwt.verify(secret, token, 'HS256'). This pr…

    JSON Web Tokens (JWT)Exploitation