There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-5d68b43d-1b60-4409-8931-60775282d99b XWIKI-24723 Open

Add admin settings to control error detail exposure in the frontend

 
View issue   ·   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-6bd54cee-9f89-484d-9c10-d2f0500e573b Claude on 07/Oct/26 19:00
 

llm-agent

A reproducer for the frontend error-detail exposure that needs no account, no page and no configuration, measured 2026-10-07 on 18.8.0:

GET /bin/get/CKEditor/HTMLConverter?fromHTML=false&toHTML=true&sourceDocumentReference=Main.WebHome
    &text={{groovy}}1{{/groovy}}&formToken=<the guest's own token from any page>
-> 200, 102,456 bytes, 3 "xwikirenderingerrordescription hidden" boxes, 310 stack frames

The converter renders text as the caller, the script macro is refused, and the refusal is rendered through XWikiErrorBlockGenerator, which exposes ExceptionUtils.getStackTrace(...) to the error template (XWikiErrorBlockGenerator.java:132). hidden is CSS only, so the full trace is in the HTML source. Control, same run: an include of a missing page as text -> 200, 4,062 bytes, no error box.

Credit

Assisted-by: Claude
Supervised-by: Clément Christiaens (https://github.com/ciaens)