Apache Struts 2 Core doubleselect тегінде сайтаралық скриптинг
Apache Struts 2 Core
Қысқаша
Apache Struts-ке қосымша doubleMultiple атрибуты орнатылған doubleselect тегін пайдаланғанда әсер етеді. Екінші тізімде көрсетілген арнайы жасалған мән пайдаланушы бетінде скриптті орындай алады, және nonce-ке негізделген Content Security Policy оны тоқтата алмайды.
Түйіндемені дереккөздер негізінде ЖИ жасаған және ол автоматты түрде аударылған.
Түзету
Түзетілген нұсқа көрсетілмеген.
Зардап шегетін нұсқалар
| org.apache.struts:struts2-coreMaven | бастап 2.1.8 дейін 2.3.37 бастап 2.5.0 дейін 2.5.33 бастап 6.0.0 дейін 6.12.0 бастап 7.0.0 дейін 7.4.0 |
Түпнұсқа сипаттама (EN)
Түпнұсқа тақырып: Apache Struts 2 Core cross-site scripting in doubleselect tag
Improper neutralization of input during web page generation ('Cross-site Scripting') vulnerability in Apache Struts. If the application uses the doubleselect tag with the doubleMultiple attribute set, the value the tag preselects in its second list, for example a value submitted with the request and shown again on the form, is written into the script the tag generates without the escaping a script context requires. A crafted value can execute script in the page, and a Content Security Policy that relies on nonces does not prevent it. Applications that do not use the doubleselect tag, or use it without the doubleMultiple attribute, are not affected. This issue affects Apache Struts: from 2.1.8 through 2.3.37, from 2.5.0 through 2.5.33, from 6.0.0 through 6.12.0, from 7.0.0 through 7.4.0. Users are recommended to upgrade to version 6.13.0 or 7.5.0, which fixes the issue.