製品・ソフトウェアに関する情報
Apache Tapestry における信頼できないデータのデシリアライゼーションに関する脆弱性
Title Apache Tapestry における信頼できないデータのデシリアライゼーションに関する脆弱性
Summary

Apache Tapestry には、信頼できないデータのデシリアライゼーションに関する脆弱性が存在します。 本脆弱性は、CVE-2019-0195 に対する修正が不完全だったことに起因する脆弱性です。

Possible impacts 情報を取得される、情報を改ざんされる、およびサービス運用妨害 (DoS) 状態にされる可能性があります。
Solution

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 15, 2021, midnight
Registration Date Dec. 17, 2021, 6:06 p.m.
Last Update Dec. 17, 2021, 6:06 p.m.
CVSS3.0 : 緊急
Score 9.8
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS2.0 : 危険
Score 10
Vector AV:N/AC:L/Au:N/C:C/I:C/A:C
Affected System
Apache Software Foundation
Apache Tapestry 5.4.5
Apache Tapestry 5.5.0
Apache Tapestry 5.6.2
Apache Tapestry 5.7.0
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2021年12月17日]
  掲載
Dec. 17, 2021, 6:06 p.m.

NVD Vulnerability Information
CVE-2021-27850
Summary

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. An attacker was able to download the file `AppModule.class` by requesting the URL `http://localhost:8080/assets/something/services/AppModule.class` which contains a HMAC secret key. The fix for that bug was a blacklist filter that checks if the URL ends with `.class`, `.properties` or `.xml`. Bypass: Unfortunately, the blacklist solution can simply be bypassed by appending a `/` at the end of the URL: `http://localhost:8080/assets/something/services/AppModule.class/` The slash is stripped after the blacklist check and the file `AppModule.class` is loaded into the response. This class usually contains the HMAC secret key which is used to sign serialized Java objects. With the knowledge of that key an attacker can sign a Java gadget chain that leads to RCE (e.g. CommonsBeanUtils1 from ysoserial). Solution for this vulnerability: * For Apache Tapestry 5.4.0 to 5.6.1, upgrade to 5.6.2 or later. * For Apache Tapestry 5.7.0, upgrade to 5.7.1 or later.

Publication Date April 15, 2021, 5:15 p.m.
Registration Date April 15, 2021, 8:04 p.m.
Last Update Nov. 21, 2024, 2:58 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:apache:tapestry:*:*:*:*:*:*:*:* 5.7.0 5.7.1
cpe:2.3:a:apache:tapestry:*:*:*:*:*:*:*:* 5.4.0 5.6.2
Related information, measures and tools
Common Vulnerabilities List