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
The REVOKE_REFRESH_TOKEN mutation lacks user scoping/authorization, enabling any authenticated user to revoke all refresh tokens, risking system-wide DoS and privilege escalation.
Description
The REVOKE_REFRESH_TOKEN mutation lacks user scoping/authorization, enabling any authenticated user to revoke all refresh tokens, risking system-wide DoS and privilege escalation.
Reproduction Steps
Authenticate as any user.
Run:
Result: All users are logged out.
Impact
DoS: Disrupts all active sessions.
Security: Non-admins can revoke admin sessions.
Compliance: Unauthorized session termination violates GDPR/CCPA.
Proposed Fix
Add a userId: ID! argument to target specific users.
Enforce authorization: Allow only admins or the user themselves to revoke tokens.
Backend validation:
P0: Requires immediate patch to prevent exploitation.
Potential internship candidates
Please read this if you are planning to apply for a Palisadoes Foundation internship
The text was updated successfully, but these errors were encountered: