squid /tmp File Race Condition Vulnerability
BID:2184
Info
squid /tmp File Race Condition Vulnerability
| Bugtraq ID: | 2184 |
| Class: | Race Condition Error |
| CVE: | |
| Remote: | No |
| Local: | Yes |
| Published: | Jan 10 2001 12:00AM |
| Updated: | Jan 10 2001 12:00AM |
| Credit: | This vulnerability was first announced by Greg KH <[email protected]> on January 10, 2001 via Bugtraq. |
| Vulnerable: |
Wirex Immunix OS 7.0 -Beta Turbolinux Turbolinux Workstation 6.1 Turbolinux Turbolinux 6.0.5 Turbolinux Turbolinux 6.0.4 Turbolinux Turbolinux 6.0.3 Turbolinux Turbolinux 6.0.2 Turbolinux Turbolinux 6.0.1 Turbolinux Turbolinux 6.0 Trustix Secure Linux 1.2 Trustix Secure Linux 1.1 Redhat Linux 7.0 National Science Foundation Squid Web Proxy 2.3 STABLE4 Mandriva Linux Mandrake 7.2 Mandriva Linux Mandrake 7.1 Mandriva Linux Mandrake 7.0 Mandriva Linux Mandrake 6.1 Mandriva Linux Mandrake 6.0 |
| Not Vulnerable: | |
Discussion
squid /tmp File Race Condition Vulnerability
squid is a freely available Web Proxy software package, written and maintained by the National Science Foundation. Problems with the software could lead to a race condition.
The problem occurs in the operation of the software and it's creation of /tmp files. The squid package can be configured to send out emails to the administrator when updates occur. However, when the email is created, files in the /tmp directory are created insecurely and the pre-existance of files is not queried. The creation of the files in the /tmp directory normally occur under the conditions of either using a development version of squid, or when the system clock is reporting an incorrect time. Therefore, it is possible for a user with malicious motives to guess the handle of a future /tmp file, and create a symbolic link to a file writable by the UID of the squid process, thus overwriting a file owned by the squid user, or appending to and corrupting the file.
squid is a freely available Web Proxy software package, written and maintained by the National Science Foundation. Problems with the software could lead to a race condition.
The problem occurs in the operation of the software and it's creation of /tmp files. The squid package can be configured to send out emails to the administrator when updates occur. However, when the email is created, files in the /tmp directory are created insecurely and the pre-existance of files is not queried. The creation of the files in the /tmp directory normally occur under the conditions of either using a development version of squid, or when the system clock is reporting an incorrect time. Therefore, it is possible for a user with malicious motives to guess the handle of a future /tmp file, and create a symbolic link to a file writable by the UID of the squid process, thus overwriting a file owned by the squid user, or appending to and corrupting the file.
Solution / Fix
squid /tmp File Race Condition Vulnerability
Solution:
Upgrades available:
Trustix Secure Linux 1.1
Trustix Secure Linux 1.2
Turbolinux Turbolinux 6.0
Mandriva Linux Mandrake 6.0
Turbolinux Turbolinux 6.0.1
Turbolinux Turbolinux 6.0.2
Turbolinux Turbolinux 6.0.3
Turbolinux Turbolinux 6.0.4
Turbolinux Turbolinux 6.0.5
Mandriva Linux Mandrake 6.1
Mandriva Linux Mandrake 7.0
Mandriva Linux Mandrake 7.1
Mandriva Linux Mandrake 7.2
Solution:
Upgrades available:
Trustix Secure Linux 1.1
-
Trustix 1.1 i386 squid-2.3.STABLE4-3tr.i586.rpm
http://www.trustix.net/pub/Trustix/updates/1.1/RPMS/squid-2.3.STABLE4- 3tr.i586.rpm
Trustix Secure Linux 1.2
-
Trustix 1.2 i386 squid-2.3.STABLE4-3tr.i586.rpm
http://www.trustix.net/pub/Trustix/updates/1.2/RPMS/squid-2.3.STABLE4- 3tr.i586.rpm
Turbolinux Turbolinux 6.0
-
TurboLinux squid-2.3.STABLE4-1.i386.rpm
ftp://ftp.turbolinux.com/pub/updates/6.0/security/squid-2.3.STABLE4-1. i386.rpm
Mandriva Linux Mandrake 6.0
-
MandrakeSoft 6.0 i386 squid-2.2.STABLE4-2.1mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/6.0/RPMS/ squid-2.2.STABLE4-2.1mdk.i586.rpm
Turbolinux Turbolinux 6.0.1
-
TurboLinux squid-2.3.STABLE4-1.i386.rpm
ftp://ftp.turbolinux.com/pub/updates/6.0/security/squid-2.3.STABLE4-1. i386.rpm
Turbolinux Turbolinux 6.0.2
-
TurboLinux squid-2.3.STABLE4-1.i386.rpm
ftp://ftp.turbolinux.com/pub/updates/6.0/security/squid-2.3.STABLE4-1. i386.rpm
Turbolinux Turbolinux 6.0.3
-
TurboLinux squid-2.3.STABLE4-1.i386.rpm
ftp://ftp.turbolinux.com/pub/updates/6.0/security/squid-2.3.STABLE4-1. i386.rpm
Turbolinux Turbolinux 6.0.4
-
TurboLinux squid-2.3.STABLE4-1.i386.rpm
ftp://ftp.turbolinux.com/pub/updates/6.0/security/squid-2.3.STABLE4-1. i386.rpm
Turbolinux Turbolinux 6.0.5
-
TurboLinux squid-2.3.STABLE4-1.i386.rpm
ftp://ftp.turbolinux.com/pub/updates/6.0/security/squid-2.3.STABLE4-1. i386.rpm
Mandriva Linux Mandrake 6.1
-
MandrakeSoft 6.1 i386 squid-2.2.STABLE4-2.1mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/6.1/RPMS/ squid-2.2.STABLE4-2.1mdk.i586.rpm
Mandriva Linux Mandrake 7.0
-
MandrakeSoft 7.0 i386 squid-2.2.STABLE5-5.1mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.0/RPMS/ squid-2.2.STABLE5-5.1mdk.i586.rpm
Mandriva Linux Mandrake 7.1
-
MandrakeSoft 7.1 i386 squid-2.3.STABLE2-2.1mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.1/RPMS/ squid-2.3.STABLE2-2.1mdk.i586.rpm
Mandriva Linux Mandrake 7.2
-
MandrakeSoft 7.2 i386 squid-2.3.STABLE2-3.1mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.2/RPMS/ squid-2.3.STABLE2-3.1mdk.i586.rpm