You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 23, 2025. It is now read-only.
1. Steps to reproduce
Modify the
sub
field in jwt to be the id of another user to fake his/her identity.The nuclei template is as follows
2. Expected behavior
The JwtAuthenticationTokenFilter gets the jwt from the
request
via thetokenService#getUserDetailDTO
method.Call the
parseToken
method to verify that the jwt is valid.3. Actual behavior
In the
parseToken
method, get the signing key for jwt via thegeneralKey
methodSince
SECRET
is hardcoded in the code, the same key is returned in thegeneralKey
method, resulting in a forged jwt4. Affected Version
latest
5. Fixes Recommendations
Randomly generate the key for jwt when the program is run
The text was updated successfully, but these errors were encountered: