Skip to content

Commit 1f4ff30

Browse files
committed
Improve 200 fail_with in wp_phpmailer_host_header
One. last. commit. Noticed this in the response body.
1 parent 21e741b commit 1f4ff30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/unix/webapp/wp_phpmailer_host_header.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def send_request_payload(command)
137137
)
138138

139139
if res && !res.redirect?
140-
if res.code == 200
140+
if res.code == 200 && res.body.include?('login_error')
141141
fail_with(Failure::NoAccess, 'WordPress username may be incorrect')
142142
elsif res.code == 400 && res.headers['Server'] =~ /^Apache/
143143
fail_with(Failure::NotVulnerable, 'HttpProtocolOptions may be Strict')

0 commit comments

Comments
 (0)