Files
Mobile-Security-Framework-M…/.github/SECURITY.md
T
Ajin AbrahamandCursor 388f26ad5e Harden path traversal against Windows root-relative escapes (#2673)
* Harden path traversal checks for Windows root-relative escapes.

Reject POSIX/Windows absolute paths in is_path_traversal and require post-join containment at icon, network-config, and archive extraction sinks.

Co-authored-by: Cursor <[email protected]>

* Restrict network security config names to a basename.

CodeQL flagged the manifest-derived join; reduce the resource name first so path construction cannot escape xml_dir.

Co-authored-by: Cursor <[email protected]>

* Use os.path.basename for CodeQL-recognized path sanitization.

Path.name did not clear py/path-injection taint; basename plus existing containment checks keep the network-config read inside xml_dir.

Co-authored-by: Cursor <[email protected]>

* Drop CodeQL-appeasement basename sanitization from network config reads.

is_safe_path after join already rejects traversal, absolute, and Windows root-relative names; CodeQL py/path-injection is a false positive.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
2026-09-20 16:30:53 -07:00

4.8 KiB

Security Policy

Keeping MobSF updated to the latest version is essential for ensuring security and stability.

Reporting a Vulnerability

Please report all security issues here. We believe in coordinated and responsible disclosure.

Past Security Issues

Vulnerability Affected Versions
Windows-only path traversal via root-relative paths bypasses is_path_traversal() <=4.5.3
SSRF port restriction bypass in assetlinks_check <=4.5.0
Zip Bomb Denial of Service via Per-File Size Limit Bypass in ZIP/APK <=4.5.0
Regression: CSRF checks not enforced after Django migration <=4.5.0
Arbitrary File Read via Path Traversal in ZIP Uploads <=4.5.0
SQL Injection in SQLite Database Viewer utils <=4.4.5
Stored XSS via Manifest Analysis - Dialer Code Host Field <=4.4.4
Arbitrary File Write (AR-Slip) via Absolute Path in .a Extraction <=4.4.0
Path Traversal in GET /download/<filename> using absolute filenames in MobSF data directory) <=4.4.0
Zip bomb Denial of Service (DoS) via Resource Exhaustion (Disk Space) <=4.3.2
Stored Cross Site Scripting (XSS) via malicious SVG app icon <=4.3.2
SSRF on assetlinks_check with DNS Rebinding <=4.3.1
Partial Denial of Service due to strict regex check in iOS report view URL <=4.3.0
Local Privilege escalation due to leaked REST API key in web UI <=4.3.0
Stored Cross-Site Scripting in iOS dynamic_analysis view via bundle id <=4.3.0
Stored Cross-Site Scripting Vulnerability in Recent Scans "Diff or Compare" <=4.2.8
Zip Slip Vulnerability in .a extraction <=4.0.6
Open Redirect in Login redirect <=4.0.4
SSRF in firebase database check <=3.9.7
SSRF in AppLink check via abusing url redirect <=3.9.6
SSRF in AppLink check via crafted android:host <=3.9.5
Arbitrary Local file read in APK icon resource >=1.0.4, <=3.9.2
Remote Code Execution via arbitrary file overwrite vulnerability in apktool <2.9.2, [CVE-2024-21633] <=3.9.1
Arbitrary Local file read regression <3.0.0
Upload a malicious zip file can overwrite arbitary files >=0.9.3.2, <=0.9.4.1
Arbitrary Local file read <=0.9.2