Skip to content

Commit

Permalink
HOTFIX: Possible SSRF
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham authored Mar 24, 2024
1 parent 8a59d68 commit ccfedc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mobsf/StaticAnalyzer/views/common/shared_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
is_safe_path,
print_n_send_error_response,
upstream_proxy,
valid_host,
)
from mobsf.MobSF.views.scanning import (
add_to_recent_scan,
Expand Down Expand Up @@ -254,6 +255,9 @@ def get_avg_cvss(findings):
def open_firebase(url):
# Detect Open Firebase Database
try:
if not valid_host(url):
logger.warning('Invalid Firebase URL')
return url, False
purl = urlparse(url)
base_url = '{}://{}/.json'.format(purl.scheme, purl.netloc)
proxies, verify = upstream_proxy('https')
Expand Down

0 comments on commit ccfedc0

Please sign in to comment.