mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dab40cd5f4
Backport #27655 by @wolfogre When `webhook.PROXY_URL` has been set, the old code will check if the proxy host is in `ALLOWED_HOST_LIST` or reject requests through the proxy. It requires users to add the proxy host to `ALLOWED_HOST_LIST`. However, it actually allows all requests to any port on the host, when the proxy host is probably an internal address. But things may be even worse. `ALLOWED_HOST_LIST` doesn't really work when requests are sent to the allowed proxy, and the proxy could forward them to any hosts. This PR fixes it by: - If the proxy has been set, always allow connectioins to the host and port. - Check `ALLOWED_HOST_LIST` before forwarding. Co-authored-by: Jason Song <i@wolfogre.com> |
1 year ago | |
---|---|---|
.. | ||
deliver.go | 1 year ago | |
deliver_test.go | 1 year ago | |
dingtalk.go | 1 year ago | |
dingtalk_test.go | 1 year ago | |
discord.go | 1 year ago | |
discord_test.go | 1 year ago | |
feishu.go | 1 year ago | |
feishu_test.go | 1 year ago | |
general.go | 1 year ago | |
general_test.go | 1 year ago | |
main_test.go | 1 year ago | |
matrix.go | 1 year ago | |
matrix_test.go | 2 years ago | |
msteams.go | 1 year ago | |
msteams_test.go | 1 year ago | |
notifier.go | 1 year ago | |
packagist.go | 2 years ago | |
packagist_test.go | 2 years ago | |
payloader.go | 2 years ago | |
slack.go | 1 year ago | |
slack_test.go | 2 years ago | |
telegram.go | 1 year ago | |
telegram_test.go | 2 years ago | |
webhook.go | 2 years ago | |
webhook_test.go | 2 years ago | |
wechatwork.go | 2 years ago |