Ruby WEBrick directory traversal
| ruby-webrick-directory-traversal (41010) |
Description:
Ruby could allow a remote attacker to traverse directories on the system, caused by an error in the WEBrick library. An attacker could send a specially-crafted URL request containing an encoded backslash (..%5c) or files that match patterns specified in the :NondisclosureName option to view arbitrary files on the system.
Platforms Affected:
- MandrakeSoft, Mandrake Linux 2007.1 X86_64
- MandrakeSoft, Mandrake Linux 2007.1
- MandrakeSoft, Mandrake Linux 2008.0 X86_64
- MandrakeSoft, Mandrake Linux 2008.0
- MandrakeSoft, Mandrake Linux Corporate Server 3.0
- MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 4.0
- MandrakeSoft, Mandrake Linux Corporate Server 4.0 X86_64
- RedHat, Enterprise Linux 4 Desktop
- RedHat, Enterprise Linux 4 ES
- RedHat, Enterprise Linux 4 AS
- RedHat, Enterprise Linux 4 WS
- RedHat, Enterprise Linux 5
- RedHat, Enterprise Linux 5 Client Workstation
- RedHat, Enterprise Linux 5 Client
- Yukihiro Matsumoto, Ruby 1.8.4 and prior
- Yukihiro Matsumoto, Ruby 1.8.5-p114 and prior
- Yukihiro Matsumoto, Ruby 1.8.6-p113 and prior
- Yukihiro Matsumoto, Ruby 1.9.0-1 and prior
Remedy:
Refer to the Ruby Web site for patch, upgrade or suggested workaround information. See References.
Consequences:
Obtain Information
References:
- Ruby Programming Language Web site, File access vulnerability of WEBrick at http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/.
- BID-28123: Ruby WEBrick Remote Directory Traversal and Information Disclosure Vulnerabilities
- CVE-2008-1145: Directory traversal vulnerability in WEBrick in Ruby 1.8 before 1.8.5-p115 and 1.8.6-p114, and 1.9 through 1.9.0-1, when running on systems that support backslash (\) path separators or case-insensitive file names, allows remote attackers to access arbitrary files via (1) ..%5c (encoded backslash) sequences or (2) filenames that match patterns in the :NondisclosureName option.
- MDVSA-2008:141: Updated ruby packages fix vulnerabilities
- MDVSA-2008:142: Updated ruby packages fix vulnerabilities
- RHSA-2008-0897: Moderate: ruby security update
- SA29232: Ruby WEBrick Information Disclosure Vulnerabilities
- SA30802: Apple Mac OS X Security Update Fixes Multiple Vulnerabilities
- SECTRACK ID: 1019562: Ruby Directory Traversal Flaw in WEBrick Library Lets Remote Users View Files on the Target System.
- SUSE-SR:2008:017: SUSE Security Summary Report
- US-CERT VU#404515: Ruby WEBrick vulnerable to directory traversal
- VUPEN/ADV-2008-0787: Ruby WEBrick Library Multiple Remote Directory Traversal Vulnerabilities
- VUPEN/ADV-2008-1981: Apple Mac OS X Command Execution and Security Bypass Issues
Reported:
Mar 04, 2008
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
