🔙 목록으로 돌아가기

CVE-2022-1162: GitLab CE/EE - Hard-Coded Credentials

TitleGitLab CE/EE - Hard-Coded Credentials
AuthorGitLab Red Team
SeverityCritical
ImpactSuccessful exploitation of this vulnerability can lead to unauthorized access to sensitive information or unauthorized actions within the GitLab application.
RemediationTooling to find relevant hashes based on the semantic version ranges specified in the CVE is linked in the reference section below.
CVSS Score9.8
EPSS Score0.88627
CVE IDCVE-2022-1162
CWE IDCWE-798
Shodan Queryhttp.title:"GitLab"cpe:"cpe:2.3:a:gitlab:gitlab"http.title:"gitlab"
Fofa Querytitle="gitlab"
Tags cve cve2022 gitlab packetstorm vuln

🔍 Vulnerability Description

GitLab CE/EE contains a hard-coded credentials vulnerability. A hardcoded password was set for accounts registered using an OmniAuth provider (e.g. OAuth, LDAP, SAML), allowing attackers to potentially take over accounts. This template attempts to passively identify vulnerable versions of GitLab without the need for an exploit by matching unique hashes for the application-.css file in the header for unauthenticated requests. Positive matches do not guarantee exploitability. Affected versions are 14.7 prior to 14.7.7, 14.8 prior to 14.8.5, and 14.9 prior to 14.9.2.

🌐 HTTP Request

GET /users/sign_in HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Kubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2022-1162.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