Apache Wicketでリソースの文言経由のXSS脆弱性、ページ閲覧時にスクリプトが実行されるおそれ
Summary
Apache Wicketで、リソースバンドルの文言がJavaScriptや属性値にエスケープされず書き出されるため、クロスサイトスクリプティング(XSS)の脆弱性が見つかりました。影響は8.0.0から8.19.0、9.0.0から9.24.0、10.0.0から10.11.0までのApache Wicketです。修正版の情報は事実に含まれていないため、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Apache Wicketで、リソースバンドルの文言がJavaScriptや属性値にエスケープされず書き出されるため、クロスサイトスクリプティング(XSS)の脆弱性が見つかりました。影響は8.0.0から8.19.0、9.0.0から9.24.0、10.0.0から10.11.0までのApache Wicketです。修正版の情報は事実に含まれていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Apache Software FoundationApache Wicket |
8.0.0 – 8.19.0→ Not listed 9.0.0 – 9.24.0→ Not listed 10.0.0 – 10.11.0→ Not listed |
Not listed Not listed Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
Apache Wicket reads texts from the application's resource bundles — a localized label, a css class name — and writes some of them into the JavaScript and the markup it generates for a component. Those texts are placed inside single-quoted JavaScript string literals and inside quoted attribute values without being escaped for that context, so a text containing a quote ends the literal or the attribute, and what follows is parsed as script or as markup in the application's origin when the page loads.
A resource bundle entry is authored for the application and does not say where the framework will write it. The same key is read by the framework into element text, where Wicket escapes it, and into the contexts below, where it did not. A text containing an apostrophe, which is ordinary in several languages, is enough to break the page; a text under the influence of another party is enough to run script.
In org.apache.wicket:wicket-core, org.apache.wicket.markup.html.form.upload.MultiFileUploadField writes the org.apache.wicket.mfu.delete message into a JavaScript string literal, and org.apache.wicket.markup.html.form.Form writes the hidden-fields css class into the class attribute of the container it renders for its hidden fields; on 8.0.0 through 8.19.0 and 9.0.0 through 9.24.0 Form#appendDefaultButtonField writes the same css class into a second container. In org.apache.wicket:wicket-extensions, UploadProgressBar writes its UploadProgressBar.starting text into a JavaScript str…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web security@apache.org
- web nvd.nist.gov
- web github.com