POST /api/compare missing auth gate -- returns 500 instead of 401 #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Unauthenticated POST requests to
/api/comparereturn HTTP 500 instead of 401 Unauthorized.Expected
Actual
Fix
Add auth check at the top of the compare handler before attempting DB operations.
Severity: High - security + error handling.