You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "William Crowell (JIRA)" <ji...@apache.org> on 2016/12/16 15:14:58 UTC

[jira] [Commented] (AMQ-5388) User Role Granted Full Privileges in jetty.xml

    [ https://issues.apache.org/jira/browse/AMQ-5388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15754666#comment-15754666 ] 

William Crowell commented on AMQ-5388:
--------------------------------------

If you use the provided workaround, then the following error is received:

Caused by: java.lang.IllegalArgumentException: PathSpec .jsp. must start with '/' or '*.'

Small correction to the pathSpec.  It should be:

<property name="pathSpec" value="/,*.jsp,*.css" />

> User Role Granted Full Privileges in jetty.xml
> ----------------------------------------------
>
>                 Key: AMQ-5388
>                 URL: https://issues.apache.org/jira/browse/AMQ-5388
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: webconsole
>    Affects Versions: 5.9.0
>         Environment: Any
>            Reporter: Justin Reock
>            Priority: Minor
>              Labels: jetty, security, web-console
>
> The default ConstraintMapping for the "user" role grants privileges to /admin/*, which supersedes the *.action constraint that is supposed to be granted only to the admin role.
> The current pathspec for the user role reads:
> <property name="pathSpec" value="/api/*,/admin/*,*.jsp" />
> By granting access to /admin/*, that in turn grants access to all of the *.action URLs, essentially nullifying the attempt to restrict *.action URLs to only the admin role.
> To repeat, just log in as the default "user/user" account to the web console and add or delete destinations.
> Workaround is to change the pathSpec to:
> <property name="pathSpec" value="/,*.jsp,*.css" />
> Which allows access to the console but disallows access to the *.action URLs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)