JBoss Application Server Error in DeploymentFileRepository Class Lets Remote Users Read and Write Files
|
|
SecurityTracker Alert ID: 1017289
|
|
SecurityTracker URL: http://securitytracker.com/id?1017289
|
|
CVE Reference: CVE-2006-5750
(Links to External Site)
|
Date: Nov 27 2006
|
Impact: Disclosure of system information, Disclosure of user information, Modification of user information
|
Fix Available: Yes
Vendor Confirmed: Yes
|
Version(s): 4.0.5 and prior versions
|
Description: A vulnerability was reported in JBoss Application Server. A remote user can view or write files on the target system.
The setBaseDir() method of the DeploymentFileRepository class does not properly validate the basedir setting. A remote user can
connect to the console manager to read or write arbitrary files on target system with the privileges of the JBoss user account.
Symantec
reported this vulnerability to the vendor.
The original bug report is available at:
http://jira.jboss.com/jira/browse/JBAS-3861
|
Impact: A remote user can view or write files on the target system.
|
Solution: The vendor has issued a source code fix, available via SVN.
|
Vendor URL: www.jboss.org/ (Links to External Site)
|
Cause: Input validation error
|
Underlying OS: Linux (Any), UNIX (Any), Windows (Any)
|
|
Message History:
This archive entry has one or more follow-up message(s) listed below.
|
Source Message Contents
|
Date: Mon, 27 Nov 2006 15:26:46 -0500
Subject: CVE-2006-5750 JBoss Java Class DeploymentFileRepository Directory Traversal
|
Reported by Symantec:
From JBoss Documentation: "This class wraps the file system for deployments. It
gives a file-based persistence mechanism for deployments. Used by web-console to
store -service.xml files, -ds.xml files, etc..., really anything text based.
Deployments are tied to a specific name and that name corresponds to the base
file name."
The class can be abused to create files outside of the application root directory.
The method setBaseDir() of the class
org.jboss.console.manager.DeploymentFileRepository does not check if the basedir
is set to a directory outside of the application root directory via directory
traversal. In conjunction with the usage of the methods store() and remove(), it
is possible to create and delete arbitrary files on the target system.
The class is used by JBoss Web Server's web-console/jmx-console which by default
is accessible from remote by unauthenticated users. During our research, it was
possible to create and execute JSP-Files and to overwrite configuration files.
The class may also be used by other JBoss Applications, thus making them
vulnerable to the same attacks.
Due to JBoss Web Server's missing default authentication enforcement, complete
control of the application is also possible.
--
CVE-2006-5750 JBoss Java Class DeploymentFileRepository Directory Traversal
|
|