[UNIX] File-Find-Object Format String Vulnerability



The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html

- - - - - - - - -



File-Find-Object Format String Vulnerability
------------------------------------------------------------------------


SUMMARY

<http://search.cpan.org/src/SHLOMIF/> File::Find::Object is "an
object-oriented and iterative replacement for File::Find. I.e: it is a
module for traversing a directory tree, and finding all the files
contained within it programatically". A format string vulnerability in
File-Find-Object allows local attackers to cause the program to execute
arbitrary code by causing the product to go into a loop where it will try
and print out the looping directory without providing a format string.

DETAILS

Vulnerable Systems:
* File-File-Object version 0.1.0

Immune Systems:
* File-File-Object version 0.1.1

The offending code in F-F-O-0.1.0 was this:

{{{{{{{{
if ($rc) {
printf(STDERR "Avoid loop " . $self->_father($ptr)->dir() . "
-> %s\n",
$self->_current_path($current));
return 0;
}
}}}}}}}}

As one can see $self->_father($ptr)->dir() is included directly in the
printf-format, which may cause a lot of unexpected behavior. There was a
Perl-sprintf vulnerability a while ago, in which the Perl interpreter
mis-handled some badly formatted sprintf-values, and in general letting
the user input stuff directly into the printf-format field is not such a
good idea.

->dir() is encountered in the directory tree that File-Find-Object
traverses.


ADDITIONAL INFORMATION

The information has been provided by <mailto:shlomif@xxxxxxxxxxx> Shlomi
Fish.



========================================


This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx


====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages

  • [UNIX] Dropbear SSH Server Format String Vulnerability
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... A remotely exploitable format string vulnerability exists in the default ... configuration of the Dropbear SSH Server up until version 0.35, ... will fail before the vulnerable code is executed, but the methodname may ...
    (Securiteam)
  • [NEWS] Doomsday Format String
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Doomsday engine is vulnerable to a Format String vulnerability, ... buffer = malloc; ...
    (Securiteam)
  • [UNIX] Perdition IMAP Proxy str_vwrite Format String Vulnerability
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Perdition IMAP Proxy str_vwrite Format String Vulnerability ... the actual number of format identifiers is compared to ...
    (Securiteam)
  • [NT] McAfee WebShield SMTP Format String
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... A format string vulnerability exists within the McAfee WebShield SMTP ...
    (Securiteam)
  • [NEWS] Sparklet Format String
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... using a format string vulnerability in Sparklet. ... The game is affected by a format string vulnerability located in the ... Through this bug an attacker on a server or a client (the server is not ...
    (Securiteam)