Apache Wicket: XSS via a resource bundle text written unescaped into generated JavaScript and markup
Apache Software Foundation · Apache Wicket
No EPSS score yet. The score appears once FIRST publishes it.
DescriptionNVD
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
Coverage1 article · 1 outlet
First in our coverage: SecurityOnline, 2 Nov.
- Apache Wicket fixes 19 flaws across three supported releasesSecurityOnline · first in our coverage · mentions it in passing
New articles also arrive in the RSS feed.