exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

avast-adv.txt

avast-adv.txt
Posted Aug 14, 2005
Authored by Piotr Bania

Avast Antivirus version 4.6 is susceptible to a memory overwrite flaw.

tags | advisory
SHA-256 | f4380498c50a332513fd5dee3684d0fb9501eccc1dce7d957f5eda5c87e85606

avast-adv.txt

Change Mirror Download


Alwil Software Avast Antivirus Device Driver Memory Overwrite
Vulnerability
by Piotr Bania <bania.piotr@gmail.com>
http://pb.specialised.info

Original location: http://pb.specialised.info/all/adv/avast-adv.txt


Severity: Less Critical/Medium - local ring0 code execution

Software affected: Probably all versions of Avast Antivirus,
however tested with 4.6v. I have contacted
Alwil Software and the bug is patched within
the new version (released few days ago).


I. BACKGROUND

Avast Antivirus is very common antivirus software package with a big
worldwide userbase. (more details on: http://www.avast.com)


II. DESCRIPTION

The vulnerability is caused by no bounds checking procedure in the
device driver. By sending special signal(s) together with specially
crafted input buffer attacker can force Avast Asynchronous Virus Monitor
to overwrite specified memory with data provided by the attacker.


Here is the one of vulnerable codes:
(DISASSEMBLY OF Aavmker4 DEVICE DRIVER)

----// SNIP SNIP //-------------------------------------------------
.text:00010901 loc_10901: ; CODE XREF:
; sub_10604+2A8j
.text:00010901 mov eax, [ebx+0Ch] ; eax=input buffer
.text:00010904 xor edx, edx ; edx=0
.text:00010906 mov [ebp+var_8], eax; store
.text:00010909 cmp [eax], edx ; input buffer == 0?
.text:0001090B jz short loc_10966 ; if so -> exit
.text:0001090D mov edi, [eax+870h] ; edi=addres from
; input buffer+870h
.text:00010913 lea esi, [eax+4] ; esi=ptr to input
; buffer+4
.text:00010916 mov ecx, 21Ah ; ecx=21Ah size to
; copy (const)
.text:0001091B rep movsd ; copy
----// SNIP SNIP //-------------------------------------------------

Sending the input buffer written below:

----// SNIP SNIP //-------------------------------------------------
input_buff:
db "YOU!"
db 86Ch dup (90h) ; source memory (ESI)
dd 1234567h ; destination address
db "GONDIE"
----// SNIP SNIP //-------------------------------------------------

forces Avast device driver to write data from "source memory" to
destination address (here 1234567h).


III. IMPACT

Successful exploitation may allow attacker to obtain full system control
(ring0 priviledges), if the attack fails the operating system will fault.


IV. POC CODE

Poc code was released for this issue.



best regards,
Piotr Bania


--
--------------------------------------------------------------------
Piotr Bania - <bania.piotr@gmail.com> - 0xCD, 0x19
Fingerprint: 413E 51C7 912E 3D4E A62A BFA4 1FF6 689F BE43 AC33
http://pb.specialised.info - Key ID: 0xBE43AC33
--------------------------------------------------------------------
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close