Skip to content

Commit 40bf44b

Browse files
committed
Don't allow 127.0.0.1 as SRVHOST
1 parent 7d2fa9e commit 40bf44b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/freebsd/misc/citrix_netscaler_soap_bof.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def check
8888
end
8989

9090
def exploit
91-
if datastore['SRVHOST'] == '0.0.0.0'
92-
fail_with(Failure::BadConfig, 'Don\'t use 0.0.0.0 as SRVHOST, use an address on the local machine reachable by the target')
91+
if ['0.0.0.0', '127.0.0.1'].include?(datastore['SRVHOST'])
92+
fail_with(Failure::BadConfig, 'Bad SRVHOST, use an address on the local machine reachable by the target')
9393
end
9494

9595
if check != Exploit::CheckCode::Detected

0 commit comments

Comments
 (0)