Skip to content

Commit 5945e0d

Browse files
Update modules/exploits/linux/http/bentoml_rce_cve_2025_27520.rb
Co-authored-by: msutovsky-r7 <[email protected]>
1 parent edcc306 commit 5945e0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/http/bentoml_rce_cve_2025_27520.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def find_api_endpoint
100100
end
101101

102102
def exploit
103-
@api_endpoint = datastore['ENDPOINT'].empty? ? find_api_endpoint : datastore['ENDPOINT']
103+
@api_endpoint = datastore['ENDPOINT'].blank? ? find_api_endpoint : datastore['ENDPOINT']
104104
fail_with(Failure::Unknown, 'No endpoint specified or no vulnerable api endpoint found.') unless @api_endpoint
105105
print_status("Use #{@api_endpoint} as api endpoint.")
106106

0 commit comments

Comments
 (0)