[
https://issues.apache.org/jira/browse/AMQ-7231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17029012#comment-17029012
]
ASF subversion and git services commented on AMQ-7231:
------------------------------------------------------
Commit 81bd743eaa243f0cc5dfbb1342cee1fef1fc5df2 in activemq's branch
refs/heads/master from Colm O hEigeartaigh
[ https://gitbox.apache.org/repos/asf?p=activemq.git;h=81bd743 ]
AMQ-7231 - Fix XSS in WebConsole
> XSS in webconsole
> -----------------
>
> Key: AMQ-7231
> URL: https://issues.apache.org/jira/browse/AMQ-7231
> Project: ActiveMQ
> Issue Type: Bug
> Components: Web Console
> Affects Versions: 5.15.6
> Reporter: Torbjørn Skyberg Knutsen
> Assignee: Colm O hEigeartaigh
> Priority: Critical
> Fix For: 5.16.0, 5.15.12
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The admin GUI is very much open to XSS, in the view that lists the contents
> of a queue.
> Using Camel, here is the code required to make the GUI run JavaScript-code:
> {code:java}
> messageQueue.sendBodyAndHeader("activemq:hack", "body", "hack",
> "hello}\"><script>alert('XSS :(');</script>");
> {code}
> This also happens when you have a header containing xml, where an element
> holds an attribute:
> {code:java}
> messageQueue.sendBodyAndHeader("activemq:hack", "body", "hack", "<Something
> something=\"something\">hello</noe>><script>alert('XSS :(');</script>");
> {code}
> Seems to be due to how the title of the message is generated. This last one
> also messes up the way a message is displayed in the list, since it will
> start displaying the xml content after the attribute as HTML.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)