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.
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 | |
---|---|---|
.. | ||
actions | 2 years ago | |
agit | 2 years ago | |
asymkey | 2 years ago | |
attachment | 2 years ago | |
auth | 1 year ago | |
automerge | 2 years ago | |
context | 2 years ago | |
convert | 1 year ago | |
cron | 2 years ago | |
externalaccount | 2 years ago | |
forms | 1 year ago | |
gitdiff | 1 year ago | |
issue | 1 year ago | |
lfs | 2 years ago | |
mailer | 2 years ago | |
markup | 2 years ago | |
migrations | 2 years ago | |
mirror | 2 years ago | |
org | 2 years ago | |
packages | 2 years ago | |
pull | 1 year ago | |
release | 2 years ago | |
repository | 1 year ago | |
task | 2 years ago | |
user | 2 years ago | |
webhook | 1 year ago | |
wiki | 1 year ago |