You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/01/15 18:09:24 UTC

[Bug 54421] New: JMXRemoteLifeCycleListener - jmx.remote.authenticate value not working when there is a trailing space

https://issues.apache.org/bugzilla/show_bug.cgi?id=54421

            Bug ID: 54421
           Summary: JMXRemoteLifeCycleListener - jmx.remote.authenticate
                    value not working when there is a trailing space
           Product: Tomcat 8
           Version: trunk
          Hardware: PC
                OS: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: cedric.couralet@gmail.com
    Classification: Unclassified

Created attachment 29853
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29853&action=edit
Trivial patch for triming the value before parsing

When using tomcat as a service on windows, and configuring JMX with
JMXRemoteLifeCycleListener via the JVM options tab, if a trailing space is
present then java parses it as false which could lead to a potential
vulnerability.

I made a trivial patch for tomcat trunk (taking only space into account), but
i'm not sure if it should be declared as a commons-daemon bug ?

I can make a patch to assure the value is true if one of a property
*.jmx.remote.file.access or *.jmx.remote..file.password is present which should
probably be better but could potentially have side effect.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54421] JMXRemoteLifeCycleListener - jmx.remote.authenticate value not working when there is a trailing space

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54421

Christopher Schultz <ch...@christopherschultz.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #29853|0                           |1
           is patch|                            |
  Attachment #29853|application/octet-stream    |text/plain
          mime type|                            |

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54421] JMXRemoteLifeCycleListener - jmx.remote.authenticate value not working when there is a trailing space

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54421

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
There are 200+ places where Tomcat reads system properties - a fair proportion
of which are potentially user configurable.

If this is fixed, it should be fixed generally. However since this does not
appear to be a widespread problem and a global change would be considerable
effort I don't believe the benefit is worth the required effort.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org