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.
*CVSS:
| Base Score: | 4.3 |
| Access Vector: | Network |
| Access Complexity: | Medium |
| Authentication: | None |
| Confidentiality Impact: | Partial |
| Integrity Impact: | None |
| Availability Impact: | None |
| Temporal Score: | 3.7 |
| Exploitability: | High |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Obtain Information
Remedy:
Refer to the Ruby Web site for patch, upgrade or suggested workaround information. See References.
References:
- Ruby Programming Language Web site: File access vulnerability of WEBrick.
- 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
- OSVDB ID: 42615: Ruby WEBrick WEBrick::HTTPServ* Encoded Traversal Arbitrary File Access
- OSVDB ID: 42616: Ruby WEBrick WEBrick::HTTPServ* :NondisclosureName Option Mixed Case Arbitrary File Access
- 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
Platforms Affected:
- MandrakeSoft Mandrake Linux 2007.1 X86_64
- MandrakeSoft Mandrake Linux 2007.1
- MandrakeSoft Mandrake Linux 2008.0
- MandrakeSoft Mandrake Linux 2008.0 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 3.0
- MandrakeSoft Mandrake Linux Corporate Server 4.0
- MandrakeSoft Mandrake Linux Corporate Server 4.0 X86_64
- RedHat Enterprise Linux 4 ES
- RedHat Enterprise Linux 4 Desktop
- RedHat Enterprise Linux 4 AS
- RedHat Enterprise Linux 4 WS
- RedHat Enterprise Linux 4.7.z AS
- RedHat Enterprise Linux 5 Client
- RedHat Enterprise Linux 5
- RedHat Enterprise Linux 5 Client Workstation
- RedHat Enterprise Linux 5.2.z EUS
- RedHat Red Hat Enterprise Linux 4.7.z ES
- Ruby-lang Ruby 1.8.4 and prior
- Ruby-lang Ruby 1.8.5-p114 and prior
- Ruby-lang Ruby 1.8.6-p113 and prior
- Ruby-lang Ruby 1.9.0-1 and prior
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 ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
