You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2020/01/23 12:34:00 UTC
[jira] [Assigned] (AMQ-7231) XSS in webconsole
[ https://issues.apache.org/jira/browse/AMQ-7231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh reassigned AMQ-7231:
----------------------------------------
Assignee: Colm O hEigeartaigh
> 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
>
> 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)