Files
Ajin AbrahamandCursor a23ff75ec0 Fix CSRF in dynamic analysis actions (#2679)
* 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]>

* Bound androguard ZIP member decompression

Use the configured per-file ZIP limit for apkinspector reads and cap
actual raw-DEFLATE output. Keep decompression-limit failures out of the
tampered-entry fallback so malicious compressed data cannot be treated
as stored bytes.

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

* Reject inactive SAML users before ACS group updates.

Existing accounts mapped from a valid IdP assertion should not have groups replaced or be passed to login() when is_active is False.

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

* Return the ACS error page for inactive users instead of raising Exception.

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

* Fix iOS plist-derived path traversal

Select and validate one contained IPA app bundle, reject unsafe plist
executable values, and guard icon and Mach-O inputs before access.
Harden equivalent source icon, plist, library, and dynamic icon paths.

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

* correct version

* fix CSRF in dynamic analysis actions

Co-authored-by: Ajin Abraham <[email protected]>

* document HTTPTools host header SSRF advisory

Co-authored-by: Ajin Abraham <[email protected]>

---------

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

5.6 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
Cross-Site Request Forgery via GET-based dynamic analysis actions <=4.5.3
SSRF via attacker-controlled Host header in HTTPTools shutdown <=4.5.3
Path traversal in iOS IPA icon extraction via unvalidated CFBundleExecutable <=4.5.3
Denial of service via APK decompression bomb in the bundled apkinspector ZIP reader <=4.5.3
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