Incorrect behavior order in Apache Wicket: a file path is validated before the framework appends...
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| Apache Software FoundationApache Wicket |
8.0.0 〜 8.19.0→ 記載なし 9.0.0 〜 9.24.0→ 記載なし 10.0.0 〜 10.11.0→ 記載なし |
記載なし 記載なし 記載なし |
この記録には修正版の版が載っていません。修正版の有無と版は、本文か参照URLのベンダーの勧告で確かめてください。
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Incorrect behavior order in Apache Wicket: a file path is validated before the framework appends the attributes that complete it.
org.apache.wicket.request.resource.PackageResource asks the configured package resource guard about a path built from the scope class' package and the file name in the request URL, and then hands that same path to the resource stream locator together with a style, a variation and a locale. Those three attributes are decoded from the name of the first query parameter and never appear in the string the guard was given. org.apache.wicket.core.util.resource.locator.ResourceNameIterator appends them to that path, each preceded by an underscore, in the order variation, style, locale, before the file extension, so the file that is opened is not the file the guard approved.
org.apache.wicket.markup.html.PackageResourceGuard decides whether an HTML file is a component's markup template by looking for a class file of the same name beside it, stripping one underscore-delimited suffix at a time as it goes. HTML is on the default allow list, so that check is the only thing separating a static HTML file, which may be served, from a markup template, which may not. Asked about the name of a template, the guard refuses it correctly. Asked about a shorter name for which no class exists, it accepts, and a style supplied in the URL then completes that name into the markup template of a component class, which is written to the response.
An application is affected if…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- web security@apache.org
- web nvd.nist.gov
- web github.com