We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a59d68 commit ccfedc0Copy full SHA for ccfedc0
mobsf/StaticAnalyzer/views/common/shared_func.py
@@ -32,6 +32,7 @@
32
is_safe_path,
33
print_n_send_error_response,
34
upstream_proxy,
35
+ valid_host,
36
)
37
from mobsf.MobSF.views.scanning import (
38
add_to_recent_scan,
@@ -254,6 +255,9 @@ def get_avg_cvss(findings):
254
255
def open_firebase(url):
256
# Detect Open Firebase Database
257
try:
258
+ if not valid_host(url):
259
+ logger.warning('Invalid Firebase URL')
260
+ return url, False
261
purl = urlparse(url)
262
base_url = '{}://{}/.json'.format(purl.scheme, purl.netloc)
263
proxies, verify = upstream_proxy('https')
0 commit comments