evolve or die

iDEFENSE Security Advisory 2005-07-14.t

iDEFENSE Security Advisory 2005-07-14.t
Posted Jul 15, 2005
Authored by iDefense Labs | Site idefense.com

iDEFENSE Security Advisory 07.14.05 - Remote exploitation of a denial of service vulnerability in Sophos Plc.'s Sophos Anti-Virus engine allows attackers to exhaust CPU resources on the target system and prevent further scans.

tags | advisory, remote, denial of service, virus
advisories | CVE-2005-1530
MD5 | af57f77b93fcea88a7af2bea336ea153

iDEFENSE Security Advisory 2005-07-14.t

Change Mirror Download
Sophos Anti-Virus Zip File Handling DoS Vulnerability

iDEFENSE Security Advisory 07.14.05
www.idefense.com/application/poi/display?id=283&type=vulnerabilities
July 14, 2005

I. BACKGROUND

Sophos Small Business Suite includes the Sophos PureMessage Small
Business Edition, combining virus and spam protection for the email
gateway, and Sophos Anti-Virus Small Business Edition, which offers
desktop and server defense against the virus threat. More information
is available at:

http://www.sophos.com

II. DESCRIPTION

Remote exploitation of a denial of service vulnerability in
Sophos Plc.'s Sophos Anti-Virus engine allows attackers to exhaust CPU
resources on the target system and prevent further scans.

The problem specifically exists in the handling of Zip files compressed
using the BZIP2 algorithm. When scanning within a BZIP2 archive the
Sophos engine will not perform any sanity checks on the 'Extra field
length' value. By specifying an abnormally large value for this field
the analysis routine is forced into an infinite loop leading to CPU
exhaustion. The following is a hex dump of an example file that will
trigger the issue:

00 50 4b 03 04 0a 00 00 00 0c 00 5c 84 67 32 5b 26 |PK........\.g2[&|
10 b9 09 01 00 00 00 01 00 00 00 03 00 ff ff 66 6f |..............fo|
20 6f 55 54 09 00 03 a0 74 2c 42 a1 74 2c 42 55 78 |oUT....t,B.t,BUx|
30 04 00 e8 03 e8 03 2a 50 4b 01 02 17 03 0a 00 00 |......*PK.......|
40 00 00 00 5c 84 67 32 5b 26 b9 09 01 00 00 00 01 |...\.g2[&.......|
50 00 00 00 03 00 0d 00 00 00 00 00 01 00 00 00 a4 |................|
60 81 00 00 00 00 66 6f 6f 55 54 05 00 03 a0 74 2c |.....fooUT....t,|
70 42 55 78 00 00 50 4b 05 06 00 00 00 00 01 00 01 |BUx..PK.........|
80 00 3e 00 00 00 37 00 00 00 00 00 |.>...7.....|

Bytes 08-09: Compression method - 0x000c == BZIP2 algorithm
Bytes 28-29: Extra field length - 0xffff

The function BZ2_decompress(), among others, is called within the
infinite loop.

III. ANALYSIS

Successful exploitation allows remote attackers to trigger a denial of
service condition on the target system. Remote exploitation can be
achieved by sending a malicious file in an e-mail message or during an
HTTP session. Exploitation is only possible if the 'Scan inside archive
files' option is enabled. This is not a default option but is a common
setting. Both Unix and Windows systems running a vulnerable version of
Sophos Anti-Virus are affected.

IV. DETECTION

iDEFENSE has confirmed the existence of this vulnerability against
Sophos Anti-Virus version 5.0.1. Exploitation is reliant on the
non-default option "Scan inside archive files" found under the
"On-access scanning" configuration panel. It has been reported that
Sophos Anti-Virus versions 3.91 and 3.90 are also vulnerable. It is
suspected that earlier versions are also susceptible to exploitation.
The vulnerability exists across both the Unix and Microsoft Windows
platforms.

V. WORKAROUND

Disable the "Scan inside archive files" option until a vendor fix is
made available.

VI. VENDOR RESPONSE

"We have now included protection against this vulnerability into the
latest versions of Sophos Anti-Virus on Windows, UNIX, Linux, Netware,
OpenVMS and Mac OSX (version 3.95.0 on all those platforms as well as
version 5.0.4 on Windows 2000/XP/2003 and versions 4.5.3 on Windows NT
and Windows 95/98/Me) as well as into the latest updated versions of
PureMessage for UNIX, PureMessage for Windows/Exchange and MailMonitor
(any version running anti-virus engine 2.30.4 or above)

All of these versions would be updated automatically to customers using
our automatic updating through EM Library or direct from Sophos.

They are also available to customers to download at
http://www.sophos.com/support/updates"

VII. CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the
name CAN-2005-1530 to this issue. This is a candidate for inclusion in
the CVE list (http://cve.mitre.org), which standardizes names for
security problems.

VIII. DISCLOSURE TIMELINE

05/12/2005 Initial vendor notification
05/16/2005 Initial vendor response
07/14/2005 Public disclosure

IX. CREDIT

The discoverer of this vulnerability wishes to remain anonymous.

Get paid for vulnerability research
http://www.idefense.com/poi/teams/vcp.jsp

Free tools, research and upcoming events
http://labs.idefense.com

X. LEGAL NOTICES

Copyright (c) 2005 iDEFENSE, Inc.

Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDEFENSE. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically, please
email customerservice@idefense.com for permission.

Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on,
this information.

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

May 2012

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    37 Files
  • 2
    May 2nd
    53 Files
  • 3
    May 3rd
    33 Files
  • 4
    May 4th
    4 Files
  • 5
    May 5th
    10 Files
  • 6
    May 6th
    17 Files
  • 7
    May 7th
    19 Files
  • 8
    May 8th
    36 Files
  • 9
    May 9th
    34 Files
  • 10
    May 10th
    35 Files
  • 11
    May 11th
    20 Files
  • 12
    May 12th
    18 Files
  • 13
    May 13th
    11 Files
  • 14
    May 14th
    27 Files
  • 15
    May 15th
    58 Files
  • 16
    May 16th
    54 Files
  • 17
    May 17th
    25 Files
  • 18
    May 18th
    53 Files
  • 19
    May 19th
    9 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    25 Files
  • 22
    May 22nd
    32 Files
  • 23
    May 23rd
    35 Files
  • 24
    May 24th
    26 Files
  • 25
    May 25th
    25 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2012 Packet Storm. All rights reserved.

close