Details
-
Bug
-
Resolution: Solved By
-
Blocker
-
13.1-rc-1
-
High
-
Unknown
-
N/A
-
N/A
-
Description
The raw macro allows inserting unfiltered HTML and other syntaxes.
Steps to reproduce:
- Install the raw macro extension
- (Optional) Switch to an unprivileged user
- Edit the user profile
- Add a raw macro with content <script>alert(1);</script> and syntax html/5.0 in the description.
- Click "Save & View"
Expected result:
The text alert(1); is displayed in the description.
Actual result:
An alert with content "1" is displayed.
Note that this also affects the LaTeX export, by default, LaTeX is rendered with -shell-escape and the rendering is executed as root, therefore this allows root shell access in the docker container used for rendering. Depending on the setup of docker, this could provide ways to access local network resources that might not be properly secured and should make denial of service attacks way easier.
Attachments
Issue Links
- is caused by
-
XRENDERING-599 New {{raw}} macro to generate a RawBlock
-
- Closed
-
- relates to
-
XRENDERING-675 Add events to raw content filtering in macros
-
- Closed
-