Skip to content

Commit f6536bf

Browse files
committed
Add an early return for when there are no found hostnames in hostname_options
1 parent 37f3e8e commit f6536bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aikido_zen/vulnerabilities/ssrf/find_hostname_in_userinput.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def find_hostname_in_userinput(user_input, hostname, port=None):
1616
return False
1717

1818
hostname_options = get_hostname_options(hostname)
19+
if len(hostname_options) == 0:
20+
return False
1921

2022
variants = [user_input, f"http://{user_input}", f"https://{user_input}"]
2123
for variant in variants:

0 commit comments

Comments
 (0)