Skip to main content

MobSF CVE-2026-68923

| EUVDEUVD-2026-61134 MEDIUM
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-08-18 GitHub_M GHSA-3p54-567p-2wpr
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Victim authenticates to MobSF instance
  2. Delivery
    Attacker obtains target URL and optionally a scan MD5
  3. Exploit
    Attacker delivers phishing link to victim
  4. Install
    Victim loads attacker page in same browser
  5. C2
    Browser auto-submits hidden form with session cookie
  6. Execute
    MobSF processes POST without CSRF check
  7. Impact
    Scan deleted or account compromised

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The victim must be actively authenticated to MobSF (holding a valid session cookie) and must visit an attacker-controlled webpage during that session - this is the required user interaction (UI:R). The attacker needs no credentials or privileges on MobSF itself (PR:N); the victim's session provides all necessary authorization. For /delete_scan/ and /download_scan/, the attacker must know or obtain a valid scan MD5 hash; for /change_password/, /create_user/, and /delete_user/, only the MobSF instance URL is required. The attack depends on SameSite=Lax session cookie behavior, which permits form-based top-level navigation POST submissions to carry the cookie - this is the critical enabling factor. MobSF must be network-reachable from the webpage hosting the exploit (e.g., on the same local network or exposed to the internet). Exploitation is limited by: required user interaction (analyst must actively visit the malicious page), typical localhost/private-network deployment of MobSF, and the need to know a scan MD5 for hash-dependent endpoints.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N scores 6.5, reflecting low attack complexity and high integrity impact, offset by required user interaction. The integrity impact is accurate: unauthenticated attackers can trigger password resets, account creation/deletion, and scan management on behalf of a logged-in victim. Publicly available exploit code exists (confirmed in GHSA-3p54-567p-2wpr with a working curl proof-of-concept demonstrating live scan deletion); this is not active CISA KEV exploitation. EPSS data was not provided. Real-world risk is bounded by MobSF's typical deployment pattern - it generally runs on localhost or private lab networks, which limits the attacker's ability to reach the target endpoint. However, teams exposing MobSF on internal or public networks are at meaningful risk. The scan deletion and user management endpoints represent the highest-impact targets. One data signal discrepancy: the CVSS A:N metric does not account for permanent data destruction via /delete_scan/, which has a de facto availability impact on scan data.

Exploit ScenarioDerived

An attacker who knows or guesses a victim's MobSF instance URL hosts a webpage containing a hidden HTML form with JavaScript auto-submission targeting http://target-mobsf:8000/delete_scan/ with a known scan MD5 hash. When a security analyst authenticated to MobSF visits this page - for example, via a phishing link or a compromised web asset - the browser automatically submits the form, carrying the analyst's session cookie due to SameSite=Lax semantics, and MobSF deletes the scan without any CSRF validation. A confirmed working proof-of-concept for this exact scenario is included in GHSA-3p54-567p-2wpr.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 18, 2026

Cross-site request forgery in MobSF prior to 4.5.1 enables a remote attacker to perform destructive authenticated actions - including scan deletion, password changes, user creation/deletion, and file upload/download - against a logged-in victim's instance. The root cause is a Django migration regression: CsrfViewMiddleware was left in the deprecated MIDDLEWARE_CLASSES setting (ignored since Django 2.0) and never added to the active MIDDLEWARE tuple, leaving all POST endpoints unprotected. A working proof-of-concept is confirmed by the GHSA advisory reporter, who demonstrated complete scan deletion via a plain curl command using only a session cookie - no CSRF token required.

RemediationAI

Upgrade MobSF to version 4.5.1, which resolves the issue by adding django.middleware.csrf.CsrfViewMiddleware to the active MIDDLEWARE tuple in settings.py. The fix is implemented in commit 62563ca429a75b3e5d47a13b958e1d2e7d5e2bbf (PR: https://github.com/MobSF/Mobile-Security-Framework-MobSF/pull/2627) and released at https://github.com/MobSF/Mobile-Security-Framework-MobSF/releases/tag/v4.5.1. If an immediate upgrade is not possible, binding the MobSF server to localhost only (127.0.0.1:8000) is the most effective compensating control, as it prevents attacker-controlled external webpages from reaching the POST endpoints - though this does not fully protect against attacks launched from a compromised machine on the same host. Restricting MobSF access via network firewall to trusted analyst workstations reduces exposure but does not eliminate the risk if analysts browse the web while authenticated. There is no known workaround that preserves full MobSF network accessibility while blocking the CSRF attack.

Affected VersionsENISA

Mobile-Security-Framework-MobSF < 4.5.1

Affected Packages

pypi mobsf fix: 4.5.1
euvd mobile_security_framework_mobsf fix: 4.5.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

MobSF is a Python-based mobile application security testing platform built on Django. Django's CSRF protection requires django.middleware.csrf.CsrfViewMiddleware to be present in the MIDDLEWARE tuple (the active middleware stack). Since Django 2.0, the legacy MIDDLEWARE_CLASSES setting is entirely ignored. In MobSF's settings.py (lines 206-212), the MIDDLEWARE tuple includes session, auth, and message middleware but omits CsrfViewMiddleware, meaning no CSRF token validation occurs on any POST endpoint. Compounding this, the session cookie's SameSite=Lax attribute does not block form-based top-level navigation POST requests - precisely the mechanism used in classic CSRF attacks. Affected product CPE: cpe:2.3:a:mobsf:mobile-security-framework-mobsf:*:*:*:*:*:*:*:*. CWE-352 (Cross-Site Request Forgery) is the root cause class.

Know when Mobile Security Framework Mobsf gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
vuln.today AI 7.1 HIGH

A:L added over vendor vector because /delete_scan/ permanently destroys scan data; all other metrics align with network-reachable, user-interaction-dependent CSRF with no privilege requirement.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

1
Patch available
Aug 18, 2026 - 19:04 EUVD

DescriptionCVE.org

MobSF is a mobile application security testing tool used. Prior to 4.5.1, mobsf/MobSF/settings.py places django.middleware.csrf.CsrfViewMiddleware only in the deprecated MIDDLEWARE_CLASSES setting and omits it from the active MIDDLEWARE tuple, allowing a remote attacker to make a logged-in victim submit cross-site POST requests to authenticated web endpoints including /delete_scan/, /upload/, /download_scan/, /change_password/, /create_user/, and /delete_user/. This can delete scans, upload or download applications, change passwords, or manage users with the victim account permissions. This issue is fixed in version 4.5.1.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Low
niche mobile security testing tool, analyst and lab use only
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy