-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[Security] Fix Vulnerabilities Aug 2025 MobSF v4.4.1 #2545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
👋 @ajinabraham |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses security vulnerabilities by fixing path traversal vulnerabilities and improving input validation throughout the MobSF codebase. The fixes enhance the is_safe_path
function and implement better path traversal detection.
- Enhanced path traversal detection with URL decoding and absolute path checks
- Updated all
is_safe_path
function calls to include the raw filename parameter - Added AR-slip protection for archive extraction
Reviewed Changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
mobsf/MobSF/utils.py | Enhanced is_path_traversal function with URL decoding and absolute path detection |
mobsf/StaticAnalyzer/views/ios/views/view_source.py | Updated is_safe_path call to include raw filename parameter |
mobsf/StaticAnalyzer/views/android/views/view_source.py | Updated is_safe_path call to include raw filename parameter |
mobsf/StaticAnalyzer/views/android/xapk.py | Updated multiple is_safe_path calls to include raw filename parameter |
mobsf/StaticAnalyzer/views/common/shared_func.py | Added AR-slip protection and updated is_safe_path calls |
mobsf/StaticAnalyzer/forms.py | Replaced inline path traversal check with is_path_traversal function |
mobsf/MobSF/views/home.py | Updated is_safe_path call and removed redundant check |
mobsf/DynamicAnalyzer/views/common/frida/views.py | Updated is_safe_path call to include raw filename parameter |
mobsf/DynamicAnalyzer/views/common/device.py | Consolidated path traversal checks into single is_safe_path call |
mobsf/MobSF/init.py | Version bump to 4.4.1 |
.github/SECURITY.md | Added security advisories for fixed vulnerabilities |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
Describe the Pull Request
Checklist for PR
tox -e lint,test
StaticAnalyzer/tests.py
)Additional Comments (if any)