6381 : AOL Instant Messenger (AIM) Sniff aimSniff.pl Symlink Arbitrary File Overwrite
Printer | http://osvdb.org/6381 | Email This | Edit Vulnerability

Views This Week Views All Time Added to OSVDB Last Modified Modified (since 2008) Percent Complete
2 132 over 7 years ago over 3 years ago 0 times 90%

Timeline

Disclosure Date Exploit Publish Date
2004-02-12 2004-02-12

Description

AIMsniff contains a flaw that may allow a malicious user to overwrite any file on your filesystem. The issue is triggered when AIMsniff exists, and writes to /tmp/AS.log. It is possible that the flaw may allow a race condition resulting in a loss of integrity and availability.

Classification

Location: Local Access Required
Attack Type: Denial of Service, Race Condition
Impact: Loss of Integrity, Loss of Availability
Exploit: Exploit Public
Disclosure: OSVDB Verified

Technical

The variable $debug2 is a static allways set to true
The following will allways occour in function LeaveNow():
if($debug2){
open(LOG,">/tmp/AS.log") or die "Could not open debug file: $^E\n";
print LOG "$debugmsg\n";
close(LOG);
}

Solution

Upgrade to version 0.9d or higher, as it has been reported to fix this vulnerability. It is also possible to correct the flaw by implementing the following workaround(s):

in aimsniff.pl, change the line saying:
open(LOG,">/tmp/AS.log") or die "Could not open debug file: $^E\n";

to:
unlink("/tmp/AS.log"); sysopen(FH,"/tmp/AS.log",O_WRONLY|O_EXECL|O_CREAT,0600);

(or)

Change (at line 55):
my $debug2=1;

to:
my $debug2=0;

Products

Shawn Grimes
Watch-list
AIM Sniff
Watch-list
0.9
0.9b

References

Manual Testing Notes

Credit

  • Martin - broadcastptraced.net -

CVSSv2 Score

CVSSv2 Base Score = 7.2
Source: nvd.nist.gov | Generated: 2003-12-31 | Disagree?

Access_vector_0 Access_complexity_2 Authentication_2 Confidentiality_impact_2 Integrity_impact_2 Availability_impact_2

Blogs

This section lists the latest news and blogs found via the daylife API (and for older items, the technorati API), which mention or otherwise discuss this vulnerability.

None found at this time

Comments

No Comments.

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2012 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use