Re:Samba 3.5.0+ vulnerability: Remote code execution from a ...
by mynewtb on Wednesday May 24, 2017 @10:40AM
(#14410340)
Is this something new or ETERNALBLUE?
[ Parent
| on HN ]
Re:Samba 3.5.0+ vulnerability: Remote code execution from a ...
by tyingq on Wednesday May 24, 2017 @10:47AM
(#14410379)
Looks new. ETERNALBLUE was a buffer overflow, and not in Samba. This is Samba not restricting access to certain named pipes...the "IPC$ share" that can spawn processes.
The fix disallows open on pipes with a name that starts with / : https://github.com/samba-team/samba/commit/02a76d86db0cbe79f...
Re:Samba 3.5.0+ vulnerability: Remote code execution from a ...
by benmmurphy on Wednesday May 24, 2017 @12:01PM
(#14410999)
from what i gather they pass the pipename into smb_probe_module which ends up calling dlopen
status = smb_probe_module("rpc", pipename);
my guess is you can either pass in a pipename starting with / which will cause it to be treated absolutely or ../../ which will cause dlopen to do a relative lookup
Re:Samba 3.5.0+ vulnerability: Remote code execution from a ...
by tyingq on Wednesday May 24, 2017 @12:49PM
(#14411409)
Ah, yes...I initially summarized the fix incorrectly. It's strchr(), so disallows a pipe name with ANY slashes in it.
Re:Samba 3.5.0+ vulnerability: Remote code execution from a ...
by NetStrikeForce on Wednesday May 24, 2017 @11:51AM
(#14410925)
This is Samba, not the Windows implementation of SMB.