High

MobSF vulnerability allows SSRF due to the allow_redirects=True parameter

  • Disclosed: 03.12.2024
  • Updated: 11.10.2026 12:19

Summary

The fix for the "SSRF Vulnerability on assetlinks_check(act_name, well_knowns)" vulnerability could potentially be bypassed.

Details

Since the requests.get() request in the _check_url method is specified as allow_redirects=True, if "https://mydomain.com/.well-known/assetlinks.json" returns a 302 redirect, subsequent requests will be sent automatically. If the redirect location is "http://192.168.1.102/user/delete/1", a request will be sent here as well.

<img width="610" alt="image" src="https://github.com/MobSF/Mobile-Security-Framework-MobSF/assets/150332295/a8c9630e-3d12-441a-816c-8f5e427a5194">

It will be safer to use allow_redirects=False.

Impact

The attacker can cause the server to make a connection to internal-only services within the organization's infrastructure.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) mobsf < 3.9.7 3.9.7

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-918
Platform
Python (PyPI)
Package
mobsf
Disclosed
03.12.2024
Updated
11.10.2026 12:19

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2024-256 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-m435-9v6r-v5f6 - CC BY 4.0

Vulnerability history: mobsf

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (22) in the archive
Total entries
22
First → latest
10.2022 08.2026
Without a fix
1
Exploited in attacks
0

Severity breakdown

  • High 9
  • Medium 11
  • Low 2

Disclosures per year

  1. 2022: 1
  2. 2023: 1
  3. 2024: 6
  4. 2025: 8
  5. 2026: 6
Severity:
  1. High · 6.5 CVE-2025-24805 < 4.3.1 4.3.1
  2. High · 6.5 CVE-2025-24804 < 4.3.1 4.3.1
  3. High · 8.1 CVE-2025-24803 < 4.3.1 4.3.1
  4. MobSF vulnerability allows SSRF due to the allow_redirects=True parameter this entry
    High · 7.5 CVE-2024-54000 < 3.9.7 3.9.7
  5. High · 7.3 CVE-2024-29190 < 3.9.7 3.9.7

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.