Bug 572219 (CVE-2021-28164) - Jetty Ambiguous Paths can access WEB-INF
Summary: Jetty Ambiguous Paths can access WEB-INF
Status: RESOLVED FIXED
Alias: CVE-2021-28164
Product: Community
Classification: Eclipse Foundation
Component: Vulnerability Reports (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Security vulnerabilitied reported against Eclipse projects CLA
QA Contact:
URL:
Whiteboard:
Keywords: security
Depends on:
Blocks:
 
Reported: 2021-03-23 08:10 EDT by Christopher Walker CLA
Modified: 2021-04-01 10:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Walker CLA 2021-03-23 08:10:01 EDT
In 9.4.37.v20210219 to 9.4.38.v20210224, the default compliance mode allows requests with URIs that contain %2e or %2e%2e segments to access protected resources within the WEB-INF directory. For example a request to /context/%2e/WEB-INF/web.xml can retrieve the web.xml file. This can reveal sensitive information regarding the implementation of a web application.

Workarounds
The HttpCompliance mode RFC7230_NO_AMBIGUOUS_URIS can be enabled by updating start.d/http.ini to include:

jetty.http.compliance=RFC7230_NO_AMBIGUOUS_URIS

CWEs
CWE-200 CWE-551

CVSS Score
5.3 Moderate
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

This will be resolved in Jetty 9.4.39 which we are currently working on a release for.
Comment 1 Wayne Beaton CLA 2021-03-23 10:46:00 EDT
Use CVE-2021-28164

Let me know when you are ready for me to submit the CVE and commit the advisory.
Comment 2 Christopher Walker CLA 2021-03-30 09:02:25 EDT
Wayne,

Please feel free to publish the CVE and security advisory: https://github.com/eclipse/jetty.project/security/advisories/GHSA-v7ff-8wcx-gmc5
Comment 3 Wayne Beaton CLA 2021-04-01 10:18:06 EDT
I've pushed the CVE.

https://github.com/CVEProject/cvelist/pull/1233