GitHub Advisoryadvisory · PyPI
GHSA-79f6-p65j-3m2m MobSF Local Privilege Escalation
HIGH
Official page ↗
- Aliases
- CVE-2025-24805
- Ecosystem
- PyPI
- Packages
- mobsf
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-269
- Reviewed
- 2025-02-05
Affected packages
• PyPI mobsf: < 4.3.1 → fixed in 4.3.1
Description
Product: Mobile Security Framework (MobSF)
Version: 4.3.0
CWE-ID: CWE-269: Improper Privilege Management
CVSS vector v.4.0: 7.1 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N)
CVSS vector v.3.1: 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N)
Description: MobSF has a functionality of dividing users by roles. This functionality is not efficient, because any registered user can get API Token with all privileges.
Impact: Information Disclosure
Vulnerable component: Code output component (`/source_code`)
Exploitation conditions: authorized user
Mitigation: Remove token output in the returned js-script
Researcher: Egor Filatov (Positive Technologies)
Research
Researcher discovered zero-day vulnerability «Local Privilege Escalation» in Mobile Security Framework (MobSF).
To reproduce the vulnerability follow the steps below.
• A user with minimal privileges is required, so the administrator must create a user account
*Figure 1. Registration*
• Go to static analysis of any application
*Figure 2. Static analysis*
• Go to the code review of the selected application and get a token with all privileges in the response
*Figure 3. Token receiving*
• This token can be used to retrieve dynamic analysis information that has not been accessed before.
*Figure 4. No access demonstration*
*Figure 5. Token usage*
As a result, the user is able to escalate the privileges.
_______________________
Please, assign all credits to: Egor Filatov (Positive Technologies)
Related
Alias · CVE (1)
- CVE-2025-24805 Mobile Security Framework (MobSF) is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and… vulnerability
Weakness · CWE (1)
- CWE-269 Improper Privilege Management weakness
References
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-79f6-p65j-3m2m web
- https://nvd.nist.gov/vuln/detail/CVE-2025-24805 advisory
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/05206e72cae35b311615a70e51e1a946955c5e83 web
- https://github.com/MobSF/Mobile-Security-Framework-MobSF package