GitHub Advisoryadvisory · PyPI
GHSA-cxqq-w3x5-7ph3 MobSF Stored Cross-Site Scripting (XSS)
HIGH
Official page ↗
- Aliases
- CVE-2025-24803
- Ecosystem
- PyPI
- Packages
- mobsf
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2025-02-05
Affected packages
• PyPI mobsf: < 4.3.1 → fixed in 4.3.1
Description
Product: MobSF
Version: CFBundleIdentifier` value.
In the `dynamic_analysis.html` file you do not sanitize received bundle value from Corellium
https://github.com/MobSF/Mobile-Security-Framework-MobSF/blob/d1d3b7a9aeb1a8c8c7c229a3455b19ade9fa8fe0/mobsf/templates/dynamic_analysis/ios/dynamic_analysis.html#L406
*Figure 1. Unsanitized bundle*
As a result, it is possible to break the HTML context and achieve Stored XSS.
Vulnerability reproduction
To reproduce the vulnerability, follow the steps described below.
• Unzip the IPA file of any iOS application.
*Listing 1. Unzipping the file*
```
unzip test.ipa
```
• Modify the value of `CFBundleIdentifier` by adding restricted characters in the `Info.plist` file.
*Figure 2. Example of the modified Bundle Identifier*
• Zip the modified IPA file.
*Listing 2. Zipping the file*
```
zip -r xss.ipa Payload/
```
• Upload the modified IPA file to your virtual device using the Correlium platform.
*Figure 3. Example of the uploaded malicious application*
• Open the XSS functionality and hover the mouse over the Uninstall button of the malicious app.
*Figure 4. Example of the 'Uninstall' button*
*Figure 5. Example of the XSS*
*Figure 6. Example of the vulnerable code*
___________________________
Please, assign all credits to: Oleg Surnin (Positive Technologies)
Related
Alias · CVE (1)
- CVE-2025-24803 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-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-cxqq-w3x5-7ph3 web
- https://nvd.nist.gov/vuln/detail/CVE-2025-24803 advisory
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/05206e72cae35b311615a70e51e1a946955c5e83 web
- https://developer.apple.com/documentation/bundleresources/information-property-list/cfbundleidentifier web
- https://github.com/MobSF/Mobile-Security-Framework-MobSF package
- https://github.com/MobSF/Mobile-Security-Framework-MobSF/blob/d1d3b7a9aeb1a8c8c7c229a3455b19ade9fa8fe0/mobsf/templates/dynamic_analysis/ios/dynamic_analysis.html#L406 web