Skip to content

fix: Missing webhook URL validation#26

Open
mrwind-up-bird wants to merge 1 commit intomainfrom
autofix/dd2853cd/missing-webhook-url-validation
Open

fix: Missing webhook URL validation#26
mrwind-up-bird wants to merge 1 commit intomainfrom
autofix/dd2853cd/missing-webhook-url-validation

Conversation

@mrwind-up-bird
Copy link
Copy Markdown
Collaborator

AutoFix: Missing webhook URL validation

Category: security
Severity: low

Issue

Webhook URLs are not validated for scheme, domain, or port restrictions. This could allow SSRF attacks where attackers register webhooks pointing to internal services or localhost endpoints to probe internal infrastructure.

Fix

Added URL validation function to prevent SSRF attacks by restricting webhook URLs to http/https schemes only and blocking private, loopback, and link-local IP addresses. The validation is applied to both the main Webhook model and WebhookCreate schema to ensure all webhook URLs are validated at creation time.


Generated by nyxCore AutoFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant