Skip to content

Commit

Permalink
Land #18506, Fix stability issue for f5 2023-46747
Browse files Browse the repository at this point in the history
This PR fixes a statbility issue with the
f5_bigip_tmui_rce_cve_2023_46747 module. Prior to this fix
occasionally the module would fail on login as things were
running too quickly, the module now retrys loging in.
  • Loading branch information
jheysel-r7 committed Nov 3, 2023
2 parents 5b888c4 + e5790f8 commit 8bb7b98
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,11 @@ def exploit
report_hash('admin', hash)
end

res = bigip_api_shared_login
fail_with(Failure::UnexpectedReply, 'Failed to login.') unless res&.code == 200
logged_in = retry_until_truthy(timeout: 30) do
res = bigip_api_shared_login
res&.code == 200
end
fail_with(Failure::UnexpectedReply, 'Failed to login.') unless logged_in

token = res.get_json_document.dig('token', 'token')
fail_with(Failure::UnexpectedReply, 'Failed to obtain a login token.') if token.blank?
Expand Down

0 comments on commit 8bb7b98

Please sign in to comment.