CVE-2024-54000: MobSF vulnerability allows SSRF due to the allow_redirects=True parameter
Summary The fix for the "SSRF Vulnerability on assetlinkscheck(actname, wellknowns)" vulnerability could potentially be bypassed. Details Since the requests.get() request in the checkurl method is specified as allowredirects=True, if "https://mydomain.com/.well-known/assetlinks.json" returns a 302 redirect, subsequent requests will be sent automatically.
Published Jun 27, 2025
Affected packages
mobsf
- Ecosystem
- PyPI
- Affected
- < 3.9.7
- Fixed in
- 3.9.7
- Check
pip show mobsf
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
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.
Credited to bulutenes, aydinnyunus.
References
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-m435-9v6r-v5f6
- https://nvd.nist.gov/vuln/detail/CVE-2024-54000
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/f22c584aa7d43527970c9da61eb678953cfc0a8e
- https://github.com/pypa/advisory-database/tree/main/vulns/mobsf/PYSEC-2024-256.yaml
- https://github.com/advisories/GHSA-m435-9v6r-v5f6
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-68922
MobSF Vulnerable to Arbitrary File Read via Path Traversal in ZIP Uploads
medium5.5Aug 18, 2026CVE-2026-68923
MobSF's CSRF checks not enforced after Django migration
medium6.5Aug 18, 2026CVE-2026-68924
MobSF Vulnerable to Zip Bomb Denial of Service via Per-File Size Limit Bypass in ZIP/APK Extraction
medium4.9Aug 18, 2026CVE-2026-68927
MobSF has SSRF port restriction bypass in assetlinks_check
low3.0Aug 18, 2026CVE-2026-33545
MobSF has SQL Injection in its SQLite Database Viewer Utils
medium5.3Mar 24, 2026CVE-2026-24490
MobSF has Stored XSS via Manifest Analysis - Dialer Code Host Field
high8.1Jan 26, 2026
