Skip to content

Commit 43a1fbb

Browse files
committed
Make msftiday happy.
1 parent 55cba56 commit 43a1fbb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/auxiliary/admin/http/rails_devise_pass_reset.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ class Metasploit3 < Msf::Auxiliary
1313

1414
def initialize(info = {})
1515
super(update_info(info,
16-
'Name' => 'Rails Devise authentication gem Password Reset',
16+
'Name' => 'Rails Devise Authentication Gem Password Reset',
1717
'Description' => %q{
1818
The Devise authentication gem for Ruby on Rails is vulnerable
19-
to a password reset exploit leveraging type confusion. By submitting XML
19+
to a password reset exploit leveraging type confusion. By submitting XML
2020
to rails, we can influence the type used for the reset_password_token
21-
parameter. This allows for resetting passwords of arbitrary accounts,
21+
parameter. This allows for resetting passwords of arbitrary accounts,
2222
knowing only the associated email address.
2323
2424
This module defaults to the most common devise URIs and response values,
@@ -37,7 +37,7 @@ def initialize(info = {})
3737
'License' => MSF_LICENSE,
3838
'References' =>
3939
[
40-
[ 'CVE', 'CVE-2013-0233'],
40+
[ 'CVE', '2013-0233'],
4141
[ 'URL', 'http://blog.plataformatec.com.br/2013/01/security-announcement-devise-v2-2-3-v2-1-3-v2-0-5-and-v1-5-3-released/'],
4242
[ 'URL', 'http://www.phenoelit.org/blog/archives/2013/02/05/mysql_madness_and_rails/index.html'],
4343
],
@@ -99,7 +99,7 @@ def reset_one(password, report=false)
9999

100100
#binding.pry if report
101101

102-
case res.code
102+
case res.code
103103
when 200
104104
# Failure, grab the error text
105105
# May need to tweak this for some apps...
@@ -112,7 +112,7 @@ def reset_one(password, report=false)
112112
when 302
113113
#Success!
114114
return true
115-
else
115+
else
116116
print_error("ERROR: received code #{res.code}")
117117
return false
118118
end

0 commit comments

Comments
 (0)