Skip to content

Commit 45be501

Browse files
committed
Raise a more specific error message
Check for and raise a more specific error message when the internal database fails to mount because the path is incorrect.
1 parent 47b0c01 commit 45be501

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/exploits/linux/http/apache_superset_cookie_sig_rce.rb

+1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ def mount_internal_database
273273
)
274274

275275
fail_with(Failure::Unreachable, "#{peer} - Could not connect to web service - no response") if res.nil?
276+
fail_with(Failure::UnexpectedReply, "#{peer} - Failed to mount the internal database: #{datastore['DATABASE']}") if res.code == 422
276277
fail_with(Failure::UnexpectedReply, "#{peer} - Unexpected response code (#{res.code})") unless res.code == 201
277278

278279
j = res.get_json_document

0 commit comments

Comments
 (0)