Junglewise Threat Intelligence

CVE-2026-68923: MobSF CSRF protection bypass after Django migration

CVE-2026-68923 · Severity: medium · CVSS 6.5 · Published 2026-08-18

Executive brief

MobSF is a mobile application security analysis framework used by security professionals and organizations to test Android and iOS apps. A misconfiguration during a Django framework upgrade removed CSRF (Cross-Site Request Forgery) protection from all authenticated operations. An attacker can craft a malicious webpage that, when visited by a logged-in MobSF user, silently deletes scan results, uploads files, changes passwords, or manages user accounts without the user's knowledge or consent, potentially disrupting security analysis workflows and compromising account integrity.

Technical details

The vulnerability is a CSRF bypass caused by missing Django middleware configuration. The active MIDDLEWARE tuple in settings.py omits django.middleware.csrf.CsrfViewMiddleware, while an obsolete MIDDLEWARE_CLASSES setting (ignored by Django 2.0+) contains it. This leaves all POST endpoints (/delete_scan/, /upload/, /download_scan/, /change_password/, /create_user/, /delete_user/) unprotected. Exploitation requires a logged-in victim to visit an attacker-controlled page; the attacker embeds an HTML form that auto-submits to the target MobSF instance. Since session cookies are set with SameSite=Lax, the cookies are sent with top-level navigation, enabling the attack. No authentication is bypassed—the victim's existing session is abused. The fix is to add 'django.middleware.csrf.CsrfViewMiddleware' to the active MIDDLEWARE configuration. Version 4.5.1 and later include the remediation.

Affected products

  • MobSF Mobile-Security-Framework-MobSF < 4.5.1

Timeline

  • 2026-07-05: disclosed
  • 2026-07-05: patched: Version 4.5.1 released with fix
  • 2026-08-18: advisory: Published to GitHub Advisory Database

References

Related threats