Skip to content

Commit 5d9232c

Browse files
committed
It must fails on SRVHOST default configuration.
If srvhost is set to 0.0.0.0 the framework will attempt to automatically set it to your default LHOST although that isn't always accessible by your target.
1 parent 55e825b commit 5d9232c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/gather/magento_xxe_cve_2024_34102.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def xxe_request
150150
end
151151

152152
def run
153-
if datastore['SRVHOST'] == '0.0.0.0' or datastore['SRVHOST'] == "::"
153+
if datastore['SRVHOST'] == '0.0.0.0' || datastore['SRVHOST'] == '::'
154154
fail_with(Failure::BadConfig, 'SRVHOST must be set to an IP address (0.0.0.0 is invalid) for exploitation to be successful')
155155
end
156156

0 commit comments

Comments
 (0)