Merge branch 'fj-45057-improve-ssrf-documentation' into 'master'
Improve documentation of SSRF protection Closes #45057 See merge request gitlab-org/gitlab-ce!18532
This commit is contained in:
commit
26147b730f
3 changed files with 15 additions and 3 deletions
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Added Webhook SSRF prevention to documentation
|
||||
merge_request: 18532
|
||||
author:
|
||||
type: other
|
BIN
doc/security/img/outbound_requests_section.png
Normal file
BIN
doc/security/img/outbound_requests_section.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
|
@ -10,4 +10,11 @@ Because Webhook requests are made by the GitLab server itself, these have comple
|
|||
|
||||
If a web service does not require authentication, Webhooks can be used to trigger destructive commands by getting the GitLab server to make POST requests to endpoints like "http://localhost:123/some-resource/delete".
|
||||
|
||||
To prevent this type of exploitation from happening, make sure that you are aware of every web service GitLab could potentially have access to, and that all of these are set up to require authentication for every potentially destructive command. Enabling authentication but leaving a default password is not enough.
|
||||
To prevent this type of exploitation from happening, starting with GitLab 10.6, all Webhook requests to the current GitLab instance server address and/or in a private network will be forbidden by default. That means that all requests made to 127.0.0.1, ::1 and 0.0.0.0, as well as IPv4 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 and IPv6 site-local (ffc0::/10) addresses won't be allowed.
|
||||
|
||||
This behavior can be overridden by enabling the option *"Allow requests to the local network from hooks and services"* in the *"Outbound requests"* section inside the Admin area under **Settings** (`/admin/application_settings`):
|
||||
|
||||
![Outbound requests admin settings](img/outbound_requests_section.png)
|
||||
|
||||
>**Note:**
|
||||
*System hooks* are exempt from this protection because they are set up by admins.
|
||||
|
|
Loading…
Reference in a new issue