CVE-2024-53999: Mobile Security Framework (MobSF) Stored Cross-Site Scripting Vulnerability in "Diff or Compare" Functionality

Published Dec 3, 2024
·
Updated

Summary The application allows users to upload files with scripts in the filename parameter. As a result, a malicious user can upload a script file to the system. When users in the application use the "Diff or Compare" functionality, they are affected by a Stored Cross-Site Scripting vulnerability.

Details I found a Stored Cross-Site Scripting vulnerability in the "Diff or Compare" functionality. This issue occurs because the upload functionality allows users to upload files with special characters such as <, >, /, and " in the filename. This vulnerability can be mitigated by restricting file uploads to filenames containing only whitelisted characters, such as A-Z, 0-9, and specific special characters permitted by business requirements, like - or .

PoC Complete instructions, including specific configuration details, to reproduce the vulnerability. 1. On MobSF version 4.2.8, I clicked on "Unload & Analyze" button. !0

2. I uploaded zip file as a name test.zip. !1

3. I used an intercepting proxy tool while uploading a file and changed the value of the filename parameter from test.zip to <image src onerror=prompt(document.domain)>test.zip. This means I uploaded a file and set its name to a script value. As a result, the server allowed the file to be uploaded successfully. !2

4. I accessed /recentscans/ and found a file named <image src onerror=prompt(document.domain)>test.zip in the recent scans. Then, I clicked on the "Differ or Compare" button." !3

5. I found that the application requires selecting a file to compare, and I selected the file <image src onerror=prompt(document.domain)>test.zip !4

6. I found that the JavaScript in the filename value was executed in the web browser. !5

Impact Allowing a malicious user to upload a script in the filename parameter can be used to steal information from other users or administrators when they perform the compare functionality. The script will be stored in the system permanently in this vulnerability.

Other sources

Mobile Security Framework (MobSF) is a pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis. The application allows users to upload files with scripts in the filename parameter. As a result, a malicious user can upload a script file to the system. When users in the application use the "Diff or Compare" functionality, they are affected by a Stored Cross-Site Scripting vulnerability. This vulnerability is fixed in 4.2.9.

MITRE

Affected Software

2 affected componentsFixes available
pip/mobsf<4.2.9
4.2.9
Opensecurity Mobile Security Framework<4.2.9

Event History

Dec 3, 2024
CVE Published
via MITRE·03:39 PM
Data Sourced
via MITRE·03:39 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·06:45 PM
Data Sourced
via GitHub·06:45 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-53999?

CVE-2024-53999 is rated as a high-severity vulnerability due to its potential for exploitation via stored cross-site scripting.

2

How do I fix CVE-2024-53999?

To fix CVE-2024-53999, upgrade the Mobsf package to version 4.2.9 or later.

3

What is the impact of CVE-2024-53999?

CVE-2024-53999 allows attackers to upload malicious script files, leading to potential stored cross-site scripting attacks when users utilize the Diff or Compare functionality.

4

Who is affected by CVE-2024-53999?

Users of Mobsf versions prior to 4.2.9 are affected by CVE-2024-53999.

5

What actions should I take after identifying CVE-2024-53999 in my application?

After identifying CVE-2024-53999, it is crucial to patch the vulnerability by upgrading to the appropriate version and reviewing file upload controls.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203