Return 404 to hide 403's or 5xx's #13
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Research
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
slendium/framework#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Currently, resources are free to return 403 or 5xx status codes when a permission error or internal error occurs. In production this would reveal information to a potential attacker.
The
Resource\Handlershould instead cast these status codes to generic 404 responses by default. Only when "debug mode" has been disabled from the configs or when theResourcehas been explicitly marked as "public use" should the real response be shown.