JWTs and JSON
Manipulating JWTs
Paste the token into jwt.io
Replace the "alg" value with "none" in header. (try the alg header variations such as "none", "None", "nOnE", "NONE".)
Replace arbitrary values of the payload e.g. "username" with "admin".
Empty the signature field
If the error "Invalid Signature" occured, we can manually create Base64 value for each section (remove the "=" symbol). If you want to empty the signature field manually, you can delete the final section.
Now copy the JWT.
Go to the website and replace the original JWT with the new one in HTTP header.
Changing Expiration
During JWT testing, you should try to modify the "exp" value:
"exp": 1679156071 -> 991679156071
JQ Queries
cat vulnapp.json | jq '.Servers[]'
Retrieve the top level object (Servers array element)
cat vulnapp.json | jq '.Servers[].Instances'
Access an object within an array using dot notation
cat vulnapp.json | jq '.Servers[].Instances[]ServerType'
Access an individual object deeper within an array
Quietly download a list of ip ranges, use jq tp parse through the file, sort the data, and output the results to a text file
Last updated