[NEWS] Ruby WEBrick Directory Traversal
- From: SecuriTeam <support@xxxxxxxxxxxxxx>
- Date: 16 Mar 2008 19:13:02 +0200
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Ruby WEBrick Directory Traversal
------------------------------------------------------------------------
SUMMARY
<http://www.ruby-lang.org/> WEBrick is an HTTP server library written in
Ruby that uses servlets to extend its capabilities. Built into WEBrick are
four servlets, handling CGI, ERb, file directories, and a generic Proc
servlet. Ruby on Rails uses WEBrick as a quick and easy webserver to start
developing your Rails applications. However, for whatever ease of
development WEBrick adds to your application, it is generally considered
not suitable for any production environment. The Ruby WEBrick HTTPd
server has been found to contain a directory traversal security
vulnerability.
DETAILS
Vulnerable Systems:
* Ruby version 1.8.4 and all prior versions
* Ruby version 1.8.5-p114 and all prior versions
* Ruby version 1.8.6-p113 and all prior versions
* Ruby version 1.9.0-1 and all prior version
Immune Systems:
* Ruby version 1.8.5-p115
* Ruby version 1.9.0-2
The following programs are vulnerable:
* Programs that publish files using WEBrick::HTTPServer.new with the
:DocumentRoot option
* Programs that publish files using WEBrick::HTTPServlet::FileHandler
Affected systems are:
1. Systems that accept backslash (\) as a path separator, such as Windows.
2. Systems that use case insensitive filesystems such as NTFS on Windows,
HFS on Mac OS X.
This vulnerability has the following impacts.
1. Attacker can access private files by sending a URL with URL encoded
backslash (\). This exploit works only on systems that accept backslash as
a path separator.
Example:
<http://[server]:[port]/..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c/boot.ini> http://[server]:[port]/..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5c/boot.ini
2. Attacker can access files that matches to the patterns specified by the
:NondisclosureName option (the default value is [".ht*", "*~"]). This
exploit works only on systems that use case insensitive filesystems.
Solution:
The vendor has release patches to address this vulnerability, more details
can be found here:
<http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/> File access vulnerability of WEBrick
ADDITIONAL INFORMATION
The information has been provided by <mailto:alexandr.polyakov@xxxxxxx>
Alexandr Polyakov.
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Prev by Date: [NEWS] Raidsonic NAS-4220 Crypt Disk Key Leak
- Next by Date: [EXPL] NetWin Surgemail LIST Universal (Exploit)
- Previous by thread: [NEWS] Raidsonic NAS-4220 Crypt Disk Key Leak
- Next by thread: [EXPL] NetWin Surgemail LIST Universal (Exploit)
- Index(es):
Relevant Pages
- [UNIX] Trend Micro VirusWall Buffer Overflow in VSAPI Library
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... buffer overflow vulnerability
in VSAPI library allows arbitrary code ... is called "vscan" which is set suid root by
default. ... permissions and thus granted all local users the privilege to execute the
... (Securiteam) - [UNIX] SCO Multiple Local Buffer Overflow
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Local exploitation of a buffer
overflow vulnerability in the ppp binary, ... allows attackers to gain root privileges.
... (Securiteam) - [NT] Microsoft Word 6.0/95 Document Converter Buffer Overflow (MS04-041)
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... WordPad is "a word processing
application that uses the MFC rich edit ... Remote exploitation of a buffer overflow vulnerability
in Microsoft ... Microsoft Word format files into the Rich Text Format natively handled
by ... (Securiteam) - [UNIX] Tikiwiki Command Injection and Arbitrary File Exposure Vulnerabilities
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Two security vulnerabilities have
been recently discovered in Tikiwiki, ... Remote exploitation of an input validation
vulnerability in Tikiwiki ... allows attackers to gain access to arbitrary files on
the vulnerable ... (Securiteam) - [NT] Ipswitch Multiple Vulnerabilities (IMail IMAP LIST Command DoS, Collaboration Suite SMTP Format
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Ipswitch Multiple Vulnerabilities
(IMail IMAP LIST Command DoS, ... Collaboration Suite SMTP Format String) ... Remote
exploitation of a denial of service vulnerability in Ipswitch ... (Securiteam)