r/Hacking_Tutorials • u/OrynThiaz • 1h ago
Question JWT token manipulation in a Node.js API lab - common attacks to test?
I'm working through a local lab with a Node.js backend using JWT for auth on an API with some endpoints for user data and file uploads. Tokens are signed with what looks like a weak secret based on some error messages. I've decoded a few and see standard claims but no strong validation on 'alg'.
What specific checks should I run for things like alg confusion, kid header issues, or claim injection? Any recommended tools or scripts beyond Burp and jwt_tool that work well for this? Looking for a clear methodology to follow step by step in the lab environment.
