CVE-2008-1145 : Détail

CVE-2008-1145

Directory Traversal
A01-Broken Access Control
48.59%V3
Network
2008-03-04
22h00 +00:00
2018-10-11
17h57 +00:00
Notifications pour un CVE
Restez informé de toutes modifications pour un CVE spécifique.
Gestion des notifications

Descriptions du CVE

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.

Informations du CVE

Faiblesses connexes

CWE-ID Nom de la faiblesse Source
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Métriques

Métriques Score Gravité CVSS Vecteur Source
V2 5 AV:N/AC:L/Au:N/C:P/I:N/A:N [email protected]

EPSS

EPSS est un modèle de notation qui prédit la probabilité qu'une vulnérabilité soit exploitée.

Score EPSS

Le modèle EPSS produit un score de probabilité compris entre 0 et 1 (0 et 100 %). Plus la note est élevée, plus la probabilité qu'une vulnérabilité soit exploitée est grande.

Percentile EPSS

Le percentile est utilisé pour classer les CVE en fonction de leur score EPSS. Par exemple, une CVE dans le 95e percentile selon son score EPSS est plus susceptible d'être exploitée que 95 % des autres CVE. Ainsi, le percentile sert à comparer le score EPSS d'une CVE par rapport à d'autres CVE.

Informations sur l'Exploit

Exploit Database EDB-ID : 5215

Date de publication : 2008-03-05 23h00 +00:00
Auteur : DSecRG
EDB Vérifié : Yes

------------------------------------------------------------------------------------ Digital Security Research Group [DSecRG] Advisory #DSECRG-08-018 Application: Ruby 1.8.6 (WEBrick Web server Toolkit and applications that used WEBrick, like Metasploit 3.1) Versions Affected: 1.8.4 and all prior versions 1.8.5-p114 and all prior versions 1.8.6-p113 and all prior versions 1.9.0-1 and all prior version Vendor URL: http://www.ruby-lang.org/ Bugs: Directory traversal File Download Exploits: YES Reported: 20.02.2008 Vendor response: 22.02.2008 Solution: 03.03.2008 Date of Public Advisory: 06.03.2008 Authors: Alexandr Polyakov, Stas Svistunovich Digital Security Research Group [DSecRG] (research [at] dsec [dot] ru) Description *********** WEBrick Httpd server has directory traversal security vulnerability. 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. Details ******* 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 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. Additional info *************** WEBrick is used to build own HTTP servers and used in many applications such as Metasploit 3.1 and Karma Tools Fix Information *************** fixed on 03.03.2008. http://www.ruby-lang.org/en/news/2008/03/03/webrick-file-access-vulnerability/ Patches can be downloaded here: 1.8 series Please upgrade to 1.8.5-p115 or 1.8.6-p114. <URL:ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.5-p115.tar.gz> (md5sum: 20ca6cc87eb077296806412feaac0356) <URL:ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p114.tar.gz> (md5sum: 500a9f11613d6c8ab6dcf12bec1b3ed3) 1.9 series Please apply the following patch to lib/webrick/httpservlet/filehandler.rb. <URL:ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.0-1-webrick-vulnerability-fix.diff> (md5sum: b7b58aed40fa1609a67f53cfd3a13257) About ***** Digital Security is leading IT security company in Russia, providing information security consulting, audit and penetration testing services, risk analysis and ISMS-related services and certification for ISO/IEC 27001:2005 and PCI DSS standards. Digital Security Research Group focuses on web application and database security problems with vulnerability reports, advisories and whitepapers posted regularly on our website. Contact: research [at] dsec [dot] ru http://www.dsec.ru (in Russian) # milw0rm.com [2008-03-06]

Products Mentioned

Configuraton 0

Ruby-lang>>Webrick >> Version -

Ruby-lang>>Ruby >> Version From (including) 1.8.0 To (excluding) 1.8.5.115

Ruby-lang>>Ruby >> Version From (including) 1.8.6 To (excluding) 1.8.6.114

Ruby-lang>>Ruby >> Version 1.9.0

Ruby-lang>>Ruby >> Version 1.9.0.1

Configuraton 0

Fedoraproject>>Fedora >> Version 7

Fedoraproject>>Fedora >> Version 8

Références

http://support.apple.com/kb/HT2163
Tags : x_refsource_CONFIRM
http://secunia.com/advisories/29357
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.kb.cert.org/vuls/id/404515
Tags : third-party-advisory, x_refsource_CERT-VN
http://www.securityfocus.com/bid/28123
Tags : vdb-entry, x_refsource_BID
http://www.mandriva.com/security/advisories?name=MDVSA-2008:141
Tags : vendor-advisory, x_refsource_MANDRIVA
https://www.exploit-db.com/exploits/5215
Tags : exploit, x_refsource_EXPLOIT-DB
http://secunia.com/advisories/29232
Tags : third-party-advisory, x_refsource_SECUNIA
http://secunia.com/advisories/31687
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.redhat.com/support/errata/RHSA-2008-0897.html
Tags : vendor-advisory, x_refsource_REDHAT
http://www.vupen.com/english/advisories/2008/0787
Tags : vdb-entry, x_refsource_VUPEN
http://secunia.com/advisories/30802
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.securitytracker.com/id?1019562
Tags : vdb-entry, x_refsource_SECTRACK
http://secunia.com/advisories/32371
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.mandriva.com/security/advisories?name=MDVSA-2008:142
Tags : vendor-advisory, x_refsource_MANDRIVA
http://secunia.com/advisories/29536
Tags : third-party-advisory, x_refsource_SECUNIA