Skip to content

Commit

Permalink
Fix erroneous cred reporting in SonicWALL exploit
Browse files Browse the repository at this point in the history
A valid session ID will be returned in JSON if the login succeeded.

{"userid"=>"1", "sessionid"=>"4WJ9cNg1TkBrwjzX"}
  • Loading branch information
wvu committed Oct 11, 2016
1 parent 55348d7 commit 1ad80da
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ def do_login
fail_with(Failure::NoAccess, "Username '#{datastore['USERNAME']}' is incorrect.")
elsif res['loginfailed']
fail_with(Failure::NoAccess, "Password '#{datastore['PASSWORD']}' is incorrect.")
elsif res['sessionid']
report_cred(datastore['USERNAME'], datastore['PASSWORD'])
end

report_cred(datastore['USERNAME'], datastore['PASSWORD'])

res
end

Expand Down

0 comments on commit 1ad80da

Please sign in to comment.