|
Ruby WEBrick Information Disclosure Vulnerabilities
|
|
Secunia Advisory:
|
SA29232
|
|
|
Release Date:
|
2008-03-06
|
|
Last Update:
|
2008-04-15
|
|
Popularity:
|
3,155 views
|
|
|
Critical:
|
 Moderately critical
|
|
Impact:
|
Exposure of system information Exposure of sensitive information
|
|
Where:
|
From remote
|
|
Solution Status:
|
Vendor Patch
|
|
| Software: | Ruby 1.8.x
|
|
|
Subscribe:
|
Instant alerts on relevant vulnerabilities
|
|
| CVE reference: | CVE-2008-1145
|
|
Description: Some vulnerabilities have been reported in Ruby, which can be exploited by malicious people to disclose sensitive information.
1) Input passed via the URL to applications using "WEBrick::HTTPServlet::FileHandler" or "WEBrick::HTTPServer.new" with the ":DocumentRoot" option is not properly sanitised before being used. This can be exploited to display arbitrary files via directory traversal attacks of the form "..%5c..%5c".
Successful exploitation requires that the application is running on an operating system accepting the backslash character as a path separator (e.g. Windows).
2) The vulnerability is caused due to an error within the "WEBrick::HTTPServlet::FileHandler" class, and within the "WEBrick::HTTPServer.new" method when handling the ":NondisclosureName" option. This can be exploited to disclose the content of arbitrary files with a filename matching the pattern specified in the ":NondisclosureName" option.
Successful exploitation requires that the application is running on an operating system using a case insensitive filesystem (e.g. Windows or Mac OS X).
The vulnerabilities are reported in versions prior to 1.8.4, 1.8.5 versions prior to 1.8.5-p115, 1.8.6 versions prior to 1.8.6-p114, and 1.9 versions prior to and including 1.9.0-1.
Solution: Update to 1.8.5-p115 or 1.8.6-p114, or apply the vendor patch for version 1.9.0-1.
ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.0-1-webrick-vulnerability-fix.diff
Provided and/or discovered by: The vendor credits Digital Security Research.
Changelog: 2008-03-11: Added CVE reference.
2008-04-15: Added link to US-CERT.
Original Advisory: http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/
Other References: US-CERT VU#404515:
http://www.kb.cert.org/vuls/id/404515
|
|
|
Track this Secunia Advisory
|
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.
Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.
|
|
|
About this Secunia Advisory
|
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.
Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
|