You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Dejan Bosanac (JIRA)" <ji...@apache.org> on 2010/04/21 12:21:17 UTC
[jira] Issue Comment Edited: (AMQ-2700) Apache ActiveMQ is prone to
source code disclosure vulnerability.
[ https://issues.apache.org/activemq/browse/AMQ-2700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59007#action_59007 ]
Dejan Bosanac edited comment on AMQ-2700 at 4/21/10 6:20 AM:
-------------------------------------------------------------
I confirmed this issue exists in 5.3.1 version, however it seems to be solved in trunk (5.4-snapshot) due to upgrade of jetty to 7.x.
After a bit of investigation it turns out to be a problem with Jetty's ResourceHandler. To work around this problem in 5.3.1, follow these steps:
1. go to the {{${ACTIVEMQ_HOME}/webapps}} dir
2. make new dir called static - {{mkdir static}}
3. move index.html file there - {{mv index.html static/}}
4. change ResourceHandler to use {{static}} dir . To do that, edit {{${ACTIVEMQ_HOME}/conf/jetty.xml}} and change ResourceHandler definition to
{code}<bean class="org.mortbay.jetty.handler.ResourceHandler">
<property name="welcomeFiles">
<list>
<value>index.html</value>
</list>
</property>
<property name="resourceBase" value="${activemq.base}/webapps/static"/>
</bean>{code}
was (Author: dejanb):
I confirmed this issue exists in 5.3.1 version, however it seems to be solved in trunk (5.4-snapshot) due to upgrade of jetty to 7.x.
After a bit of investigation it turns out to be a problem with Jetty's ResourceHandler. To work around this problem in 5.3.1, follow these steps:
1. go to the {{${ACTIVEMQ_HOME}/webapps}} dir
2. make new dir called static - {{mkdir static}}
3. move index.html file there - {{mv index.html static/}}
4. change ResourceHandler to use {{static}} dir . To do that, edit {{${ACTIVEMQ_HOME/conf/jetty.xml}} and change ResourceHandler definition to
{code}<bean class="org.mortbay.jetty.handler.ResourceHandler">
<property name="welcomeFiles">
<list>
<value>index.html</value>
</list>
</property>
<property name="resourceBase" value="${activemq.base}/webapps/static"/>
</bean>{code}
> Apache ActiveMQ is prone to source code disclosure vulnerability.
> -----------------------------------------------------------------
>
> Key: AMQ-2700
> URL: https://issues.apache.org/activemq/browse/AMQ-2700
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 5.3.1
> Environment: Linux/Windows environment
> Reporter: Veerendra G.G
> Assignee: Dejan Bosanac
> Priority: Critical
> Fix For: 5.4.0
>
> Attachments: SECPOD_ActiveMQ.txt
>
>
> An input validation error is present in Apache ActiveMQ. Adding '//' after the
> port in an URL causes it to disclose the JSP page source.
> This has been tested on various admin pages,
> admin/index.jsp, admin/queues.jsp, admin/topics.jsp etc.
> NOTE : Refer attached file for complete information/advisory.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.