Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement(notification): add white list check for webhook to prevent SSRF #2147

Merged
merged 6 commits into from
Apr 2, 2024

Conversation

LuckyPickleZZ
Copy link
Collaborator

What type of PR is this?

type-enhancement

What this PR does / why we need it:

The webhook url was not validated, this may cause SSRF attack.
So we added a system configuration odc.notification.host-white-list , only allow to create channel with webhook in this list.

Copy link
Contributor

@yhilmare yhilmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@smallsheeeep smallsheeeep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@yhilmare yhilmare merged commit 7109d9d into dev/4.2.x Apr 2, 2024
13 checks passed
@yhilmare yhilmare deleted the wenmu_424_fix_webhook_host_white_list branch April 2, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants