WinRAR v3.80 - ZIP Filename Spoofing

-----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA1  

+------------------------------------------------------------------------+
|                                 .......                                |
|                         ..''xxxxxxxxxxxxxxx'...                        |
|                    ..'xxxxxxxxxxxxxxxxxxxxxxxxxxx..                    |
|                 ..'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'.                 |
|               .'xxxxxxxxxxxxxxxxxxxxxxxxxxxx'''.......'.               |
|             .'xxxxxxxxxxxxxxxxxxxxx''......        ...  ..             |
|            .xxxxxxxxxxxxxxxxxx'...         ........      .'.           |
|           'xxxxxxxxxxxxxxx'......                          '.          |
|          'xxxxxxxxxxxxxx'..'x..                            .x.         |
|         .xxxxxxxxxxxx'...'..                  ...           .'         |
|         'xxxxxxxxx'..  .                          ..        .x.        |
|         xxxxxxx'.                                  ..        x.        |
|         xxxx'.                ....                  x        x.        |
|         'x'.            ...'xxxxxxx'.               x       .x.        |
|         .x'.         .'xxxxxxxxxxxxxx.             ''       .'         |
|          .xx.      .'xxxxxxxxxxxxxxxx.           .'xx'''.  .'          |
|           .xx..    'xxxxxxxxxxxxxxxx'          .'xxxxxxxxx''.          |
|            .'xx'.  .'xxxxxxxxxxxxxxx.      ..'xxxxxxxxxxxx'            |
|              .xxx'.  .xxxxxxxxxxxx'.    .'xxxxxxxxxxxxxx'.             |
|                .xxxx'.'xxxxxxxxx'.      xxx'xxxxxxxxxx'.               |
|                  .'xxxxxxx'....          ...xxxxxxx'.                  |
|                     ..'xxxxx'..         ..xxxxx'..                     |
|                          ....'xx'.....''''...                          |
|                                                                        |
|                    CubilFelino Security Research Lab                   |
|                            proudly presents...                         |
+------------------------------------------------------------------------+

=======================================================

Security Advisory: WinRAR v3.80 - ZIP Filename Spoofing


Security Researcher Info:


Discovered by:        Christian Navarrete (chr1x) - M�xico
Website URL:        http://chr1x.sectester.net
Contact E-mail:        chr1x_at_sectester.
 
 net
OpenPGP key id:     0x3765F4F8


OpenPGP fingerprint: 58AB CB8C DCF4 8B2E 40EF 11E8 4354 91DF 3765 F4F8

Vulnerability General Information:


Discovery date:        30/08/2009 (Good gift of Birthday! :)
Advisory URL:       


http://advisory.sectester.net/chr1xpwnadv-winrar-zip-filename-spoofing.pdf Vulnerability on Video: http://www.youtube.com/user/sectester PoC/Exploit Availability: http://chr1x.sectester.net/winrar380_PoC.zip

Software:         WinRAR
Version:            3.80
Security risk:        Low
Exploitable from:         Local
Vulnerability:        ZIP Filename spoofing
Release mode:         Coordinated disclosure.
Vendor:            http://www.rarlabs.com
Status:            Current version (WinRAR v3.80) not patched, next

engine version (WinRAR v.3.90) will be patched CWE Weakness ID: CWE-372: Incomplete Internal State Distinction (1.5) CVE ID: None provided
Disclosure Policy: http://www.wiretrip.net/rfp/policy.html

Product Description:



(Taken from Wikipedia)

WinRAR is a shareware file archiver and data compression utility developed by Eugene Roshal, and first released around 1995. It is one of the few applications that is

able to create RAR archives natively, because the encoding method is held to be proprietary.

WinRAR supports the following features:

  • Complete support for RAR and ZIP archives, and unpacking of ARJ, LZH, TAR, GZ, ACE, UUE, BZ2, JAR, ISO, EXE, 7z, and Z archives. Future versions of WinRAR are

planned to include 7z creation.
* The ability to create self-extracting and multi-volume (split) archives.
* Data redundancy is provided via recovery records and recovery volumes, allowing reconstruction of damaged archives. * Support for advanced NTFS file system options and Unicode in file names.
* Optional archive encryption using AES (Advanced Encryption Standard) with a 128-bit key.

I. Vulnerability Summary:


WinRAR v3.80 is prone to a Filename Spoofing contained inside a malformed .ZIP file.

II. Vulnerability Description:



ZIP File Spoofing can be done by to a mismatch of file name in the file list in WinRAR GUI shell and in extracted file. A real exploitation of this issue is in the following scenario: When a user opens the malformed file using WinRAR v3.80 will see filename (example: imagefile.gif) but when files are extracted, the extracted file could be another one, not the original imagefile.gif. There are two parts of code looking for the start of ZIP central directory. One in extraction routine and other in file list browsing. they used slightly different approaches, so one of the first filename record found and another for the "hidden" file. They must be exactly the same and both find the same file names.

ZIP format contains two copies of file name, one in local file header and another in central directory, for redundancy purpose. If file names mismatch, it must not be a reason to abort extraction, because it would defeat the entire purpose of having two file name copies. It is up to unzip implementation to choose a name, but typically, if can't detect which of records is more valid, the central directory record has precedence over local file header, because it contains more information about a file.

III. Potential Attack Vector:



An attacker can use this vulnerability in order to hide malware and perform social engineering attacks to perform a successfull Internet user targeting attack.

IV. Risk Assessment:


Likelihood of exploitation:Low
* Since the user should interact a little bit with this, obviously attack vectors are here, but differs on the context and many things in order to get it done.

Impact: Low
* Since if a user receive this (doesn't matter the way) when he/she open the file can see a filename thats isn't the one that can be extracted.

Overall risk: Low

V. Researcher & Vendor Communication for Disclosure timeline

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
软件介绍: WinRAR 是强大的压缩文件管理器。它提供了 RARZIP 文件的完整支持,能解压7Z、ACE、ARJ、BZ2、CAB、GZ、ISO、JAR、LZH、TAR、UUE、Z 格式文件。WinRAR的功能包括强力压缩、分卷、加密、自解压模块、备份简易。 【本增强版具有以下特性】: ◆破除共享版所有限制。本版本已经完全破解,即便没有授权文件,也可以无限制使用除了用户身份校验之外的所有功能。 ◆突破压缩文档锁定限制。使用本版本可以对含有锁定标记的压缩文档内容进行任意的添加、删除或更新等操作,同时不破坏原有锁定标记。 ◆破解用户身份校验。使用本版本添加的用户身份校验信息可通过官方原版的验证,相当于正版授权。同时本版本也可以查看一些其它破解版本所添加的用户身份校验信息,而这些信息对于官方原版可能会因校验失败而无法读取。 ◆集成实用自解压模块。本版本中集成三款修改的自解压模块,部分更换了图标和位图,或者调整了界面布局,适合需要个性定制自解压模块的用户直接使用或作为参考模板。 ◆内置精美皮肤主题。本版本中内置了一系列精美皮肤主题,您可根据需要,在主程序的“选项”→“主题”菜单中挑选适当的皮肤,美化 WinRAR 的操作界面和文件关联图标。 【附注】:本版本集成的授权文件等同于正版,对于官方原版同样有效!   本版本仅供学习研究用途,如果您不喜欢这个增强版本,也可以下载官方原版,再配合本版本提供的授权文件即可激活所有功能。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值