CORS allows wildcard origin (*) - placeholder left from template #23
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/webhooker#23
Loading…
Reference in New Issue
Block a user
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?
Bug
The CORS middleware in
internal/middleware/middleware.goallows all origins with a wildcard:The
CHANGEME!comment indicates this is a placeholder default that was never updated.While
AllowCredentials: falsemitigates the worst cross-origin cookie attacks, wildcard CORS still means any site can read responses from webhooker's public endpoints (healthcheck, webhook receiver responses).For a webhook proxy that handles sensitive payload data, CORS should either:
Fix
Remove the wildcard CORS or make it configurable:
Or read from config:
Category
Should-fix for security.