[CRITICAL] Information disclosure — exception details leaked in auth responses (Fixes #2893)#2896
Conversation
|
@namann5 is attempting to deploy a commit to the ritesh Team on Vercel. A member of the Team first needs to authorize it. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
The
get_current_userdependency inbackend/routers/auth.py:68was leaking the raw exception message to clients:This exposed internal Supabase/JWT error details (expiry times, parsing errors, internal paths) to attackers, enabling token crafting probes and backend fingerprinting.
Fix
Replaced with a generic message:
Closes #2893