Impact
The width parameter of the PDF viewer macro isn't properly escaped, allowing XSS for any user who can edit a page. To reproduce, just set the width parameter to 100%"></iframe><script>alert(1)</script>
- if an alert is shown after saving the page, the macro is vulnerable. XSS can impact the confidentiality, integrity and availability of the whole XWiki installation when an admin visits the page with the malicious code.
Patches
Fixed in version 2.5.6
Impact
The width parameter of the PDF viewer macro isn't properly escaped, allowing XSS for any user who can edit a page. To reproduce, just set the width parameter to
100%"></iframe><script>alert(1)</script>
- if an alert is shown after saving the page, the macro is vulnerable. XSS can impact the confidentiality, integrity and availability of the whole XWiki installation when an admin visits the page with the malicious code.Patches
Fixed in version 2.5.6