AhnLab AntiVirus Remote Kernel Memory Corruption
- To: bugtraq@xxxxxxxxxxxxxxxxx, full-disclosure@xxxxxxxxxxxxxxxxx
- Subject: AhnLab AntiVirus Remote Kernel Memory Corruption
- From: Sowhat <smaillist@xxxxxxxxx>
- Date: Fri, 16 Nov 2007 23:12:29 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=TcYRcQYucSlmwlucjBqXi7lk3ug+a6NmmliG94KoR9o=; b=JNrQGHAWAxgrsJK1c94UNi5DVBgXWtSyXFM3buklRVyVTQTxnbzpevIfoOsPkF/Fi6AAWcsWpKHzj8sIae42xaSy1ePQQO3B37CxpOBRR71Lxn9B17orKuktfoQNRd9AOBetlO3rDySxjEelylq/4tBMZ/AmPRYJWt7GJ0ZUCLE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=mWJK6VI0/9KcQac8HSvORnTY7VzGz/kEwBsrY0ihWTZXIFvniraB3b8Sk+x3ByAZbYsMx+dZsINlPnwo55hJVk/dCFDymXQLVGOYb0RQ89FESlA6x1Jx56xC7vCRM9rB/SnmNqRlBc7I1YHiqr/H493IcDhp7SfdUSCRHepiH1E=
- List-help: <mailto:bugtraq-help@securityfocus.com>
- List-id: <bugtraq.list-id.securityfocus.com>
- List-post: <mailto:bugtraq@securityfocus.com>
- List-subscribe: <mailto:bugtraq-subscribe@securityfocus.com>
- List-unsubscribe: <mailto:bugtraq-unsubscribe@securityfocus.com>
- Mailing-list: contact bugtraq-help@xxxxxxxxxxxxxxxxx; run by ezmlm
AhnLab AntiVirus Remote Kernel Memory Corruption
Sowhat of Nevis Labs
HTTP://www.nevisnetworks.com
http://secway.org/advisory/AD20071116.txt
Vendor:
AhnLab Inc.
Affected:
AhnLab Antivirus V3 Internet Security 2008
The other version maybe vulnerable too.
This vulnerability has been confirmed on AhnLab V3 Internet Security
2008 Platinum.
Vendor Response:
2007.11.10 Vendor notified via asec@xxxxxxxxxx
2007.11.13 Vendor replied: "Before we received your e-mail, we fixed
the vulnerability on the 9th of November"
2007.11.16 Release this advisory
Details:
There is a vulnerability in AhnLab Antivirus, which allows an attacker
to cause a BSOD(Blue Screen Of Death), or, potentially arbitrary code execution.
This vulnerability can be exploited By persuading a user to a website.
While parsing the .ZIP file, AhnLab Antivirus Library does not
properly check the value of
certain field, thus result into a remote Kernel memory corruption.
The ZIP file format:
Local file header:
Offset Length Contents
0 4 bytes Local file header signature (0x04034b50)
4 2 bytes Version needed to extract
6 2 bytes General purpose bit flag
8 2 bytes Compression method
10 2 bytes Last mod file time
12 2 bytes Last mod file date
14 4 bytes CRC-32
18 4 bytes Compressed size (n)
22 4 bytes Uncompressed size
26 2 bytes Filename length (f)
28 2 bytes Extra field length (e)
(f)bytes Filename
(e)bytes Extra field
(n)bytes Compressed data
the offset at 26(0x1a) is the "Filename length".
AhnLab AV will copy the file name and then add a NULL byte at the end
the filename.
However, the NULL bytes will be stored according the WORD value read
from the offset 0x1a.
kd> r
eax=0000dddd ebx=8162f340 ecx=e1dade60 edx=e1dac060 esi=815a54f8 edi=e1dac054
eip=f72df075 esp=f8063834 ebp=f8063848 iopl=0 nv up ei pl zr na pe nc
cs=0008 ss=0010 ds=0023 es=0023 fs=0030 gs=0000 efl=00010246
v3engine+0xb4075:
f72df075 c6040100 mov byte ptr [ecx+eax],0
The AX is directly read from the zip file and it is controlled by the attacker.
This results into a Limited arbitrary memory address NULL bytes overwritten.
By storing a null byte to an arbitrary memory location, it might be able to
produce exploitation conditions.
The vulnerability can be exploited remotely, by sending Email or
convince the victim
visit attacker controlled website. If the AhnLab users Real Time
Protection is enabled (This
is the default setting), there will be a KERNEL memory corruption.
which will result into
a BSOD or kernel code execution.
--
Sowhat
http://secway.org
"Life is like a bug, Do you know how to exploit it ?"