VYPR
Critical severityNVD Advisory· Published Jun 23, 2023· Updated Nov 27, 2024

XWiki Platform vulnerable to reflected cross-site scripting via back and xcontinue parameters in resubmit template

CVE-2023-35160

Description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Users are able to forge an URL with a payload allowing to inject Javascript in the page (XSS). It's possible to exploit the resubmit template to perform a XSS, e.g. by using URL such as: > xwiki/bin/view/XWiki/Main xpage=resubmit&resubmit=javascript:alert(document.domain)&xback=javascript:alert(document.domain). This vulnerability exists since XWiki 2.5-milestone-2. The vulnerability has been patched in XWiki 14.10.5 and 15.1-rc-1.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
org.xwiki.platform:xwiki-platform-web-templatesMaven
>= 2.5-milestone-2, < 14.10.514.10.5
org.xwiki.platform:xwiki-platform-web-templatesMaven
>= 15.0-rc-1, < 15.1-rc-115.1-rc-1

Affected products

1

Patches

1
dbc92dcdace3

XWIKI-20343: Sanitize template URLs

https://github.com/xwiki/xwiki-platformSimon UrliFeb 3, 2023via ghsa
1 file changed · +2 2
  • xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/resubmit.vm+2 2 modified
    @@ -29,8 +29,8 @@ $response.addHeader( "X-FRAME-OPTIONS", "DENY" )
     <div class="main layoutsubsection">
     <div id="mainContentArea">
     #xwikimessageboxstart($services.localization.render('warning') $services.localization.render('csrf.confirmation'))
    -#set($resubmit = "$!{escapetool.xml($request.getParameter('resubmit'))}")
    -#set($xback = "$!{escapetool.xml($request.getParameter('xback'))}")
    +#getSanitizedURLAttributeValue('form','action', $request.getParameter('resubmit'), '', $resubmit)
    +#getSanitizedURLAttributeValue('a','href', $request.getParameter('xback'), $doc.getURL(), $xback)
     <form action="$resubmit" method="post">
       <div class="hidden">
         ## Valid CSRF token
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

6

News mentions

0

No linked articles in our index yet.