Skip to content

Commit ac96f53

Browse files
committed
Add an early return for when there are no found hostnames in hostname_options
1 parent d7d3a03 commit ac96f53

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)