Webhook auth bypass when webhook_secret is None #56
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?
When webhook_secret is None on a repository, the webhook handlers silently skip HMAC/token verification and proceed to trigger a full scan. Any unauthenticated POST to /webhook/{type}/{repo_id} will execute the scan pipeline. Fix: Reject with 401 when webhook_secret is None. Use constant-time comparison for GitLab token. Files: webhooks/github.rs, webhooks/gitlab.rs, webhooks/gitea.rs