Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
13.0
-
Integration
-
Unknown
-
N/A
-
Description
Steps to reproduce:
- As an admin with programming rights, create a new user without script or programming right.
- Login with the freshly created user.
- Insert the following text in source mode in the about section:
{{groovy}}println("hello from groovy!"){{/groovy}}
- Click "Save & View"
Expected result:
An error is displayed in the about section that the script macro couldn't be executed.
Actual result:
The text "hello from groovy!" is displayed.
This works with any TextAreaClass property that has wiki syntax enabled and is displayed using the regular displayer, e.g., using $doc.display in a document where the content author is a user with programming right. The reason seems to be that `TextAreaClass` overrides the security document which is explicitly set by $doc.display to ensure that not the content author but the displayed object's author is used.
Attachments
Issue Links
- blocks
-
XWIKI-20312 Stored XSS via the HTML displayer in Live Data still exploitable
- Closed