MobSF / Mobile-Security-Framework-MobSF

Mobile Security Framework (MobSF) is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis.
https://opensecurity.in
GNU General Public License v3.0
16.68k stars 3.16k forks source link

[SECURITY] Fix Arbitrary file writes on Windows #2328

Closed superpoussin22 closed 5 months ago

superpoussin22 commented 5 months ago

Describe the Pull Request

Arbitrary file writes on Windows with apktool fixed with this version
Discovered by [Cl0udG0d](https://github.com/Cl0udG0d?ref=connortumbleson.com) the previous path traversal fix was not hardened when running against Windows. It was learned that Windows will handle both path separators (/ and \) which v2.9.2 had previously isolated to the intended OS. Now cleansing of resource names will include both path separators no matter the OS.

Checklist for PR

github-actions[bot] commented 5 months ago

👋 @superpoussin22 Thank you for sending this pull request ❤️. Please make sure you have followed our contribution guidelines. We will review it as soon as possible