Skip to content

Commit e4c324c

Browse files
author
Brent Cook
committed
Land rapid7#7941, treat a user with no mailbox as a valid credential anyway
2 parents 566bafe + 58779f0 commit e4c324c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

modules/auxiliary/scanner/http/owa_login.rb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def initialize
2929
'Brandon Knight',
3030
'Pete (Bokojan) Arzamendi', # Outlook 2013 updates
3131
'Nate Power', # HTTP timing option
32-
'Chapman (R3naissance) Schleiss' # Save username in creds if response is less
32+
'Chapman (R3naissance) Schleiss', # Save username in creds if response is less
33+
'Andrew Smith' # valid creds, no mailbox
3334
],
3435
'License' => MSF_LICENSE,
3536
'Actions' =>
@@ -218,6 +219,19 @@ def try_user_pass(opts)
218219
end
219220

220221
# No password change required moving on.
222+
# Check for valid login but no mailbox setup
223+
if res.headers['location'] =~ /owa/ and res.headers['location'] !~ /reason/
224+
print_good("#{msg} SUCCESSFUL LOGIN. #{elapsed_time} '#{user}' : '#{pass}': NOTE a mailbox is not setup")
225+
report_cred(
226+
ip: datastore['RHOST'],
227+
port: datastore['RPORT'],
228+
service_name: 'owa',
229+
user: user,
230+
password: pass
231+
)
232+
return :next_user
233+
end
234+
221235
unless location = res.headers['location']
222236
print_error("#{msg} No HTTP redirect. This is not OWA 2013, aborting.")
223237
return :abort

0 commit comments

Comments
 (0)