Advisory

GHSA-m435-9v6r-v5f6

Also known as: CVE-2024-54000, PYSEC-2024-256

Summary

MobSF vulnerability allows SSRF due to the allow_redirects=True parameter

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-06-27 20:43 UTC
Modified
2025-06-27 21:15 UTC

Affected packages and fixes

mobsf

PyPI · All systems

Affected

  • introduced 0, fixed 3.9.7 (ecosystem)

Fixed versions

3.9.7

Fix

  • Fixed version 3.9.7
    pip install --upgrade mobsf==3.9.7

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences