Details
-
Bug
-
Status: Closed
-
Resolution: Won't Fix
-
6.2.X EE, 7.0.X EE, Master
-
None
-
None
-
4
Description
Steps to reproduce:
- Make sure Antisamy is deployed (it's by default in 7.0)
- Make sure message.boards.message.formats.default=bbcode
- Add Message Boards portlet
- Create a new thread and retrieve its message ID (e.g. 30983 from http://localhost:8080/web/guest/home/-/message_boards/message/30983)
- Access add-message API
http://localhost:8080/api/jsonws?contextName=&signature=%2Fmbmessage%2Fadd-message-9-parentMessageId-subject-body-format-inputStreamOVPs-anonymous-priority-allowPingbacks-serviceContext - Fill in messageId, subject and body
parentMessageId - 30983 Subject - <script>alert(1)</script> Body - <script>alert(1)</script> Format - text/plain inputStreamOVPs - [] Priority - 0
- Invoke
- View the new message.
Expected result: The body should contain values "<script>alert(1)</script>".
Actual result: The body is blank.
Attachments
Issue Links
- Discovered while testing
-
LPS-70492 Cannot create a new message board post through add-message API
- Closed