From 036d80bcce0dbbc7f73923b347288fb75196cf05 Mon Sep 17 00:00:00 2001 From: "Ajin.Abraham" Date: Sat, 16 Dec 2023 21:13:57 -0800 Subject: [PATCH] Fixes #2307 --- mobsf/MobSF/views/home.py | 2 +- mobsf/StaticAnalyzer/views/common/binary/macho.py | 6 +++++- mobsf/templates/base/base_layout.html | 2 +- mobsf/templates/general/about.html | 2 +- mobsf/templates/general/apidocs.html | 4 ++-- mobsf/templates/general/home.html | 4 ++-- scripts/mass_static_analysis.py | 4 ++-- 7 files changed, 14 insertions(+), 10 deletions(-) diff --git a/mobsf/MobSF/views/home.py b/mobsf/MobSF/views/home.py index c4cf9a2a7a..b66e7583c9 100755 --- a/mobsf/MobSF/views/home.py +++ b/mobsf/MobSF/views/home.py @@ -164,7 +164,7 @@ def upload(self): def api_docs(request): """Api Docs Route.""" context = { - 'title': 'REST API Docs', + 'title': 'API Docs', 'api_key': api_key(), 'version': settings.MOBSF_VER, } diff --git a/mobsf/StaticAnalyzer/views/common/binary/macho.py b/mobsf/StaticAnalyzer/views/common/binary/macho.py index 9d4ca34f05..d08e2a2819 100644 --- a/mobsf/StaticAnalyzer/views/common/binary/macho.py +++ b/mobsf/StaticAnalyzer/views/common/binary/macho.py @@ -2,6 +2,7 @@ # coding=utf-8 import shutil import subprocess +from pathlib import Path import lief @@ -75,7 +76,10 @@ def checksec(self): 'to execute reliably.') else: severity = 'high' - if self.macho_name.endswith('.dylib'): + ext = Path(self.macho_name).suffix + # PIE check not applicable for static and dynamic libraries + if (ext == '.dylib' + or (not ext and '.framework' in self.macho_name)): severity = 'info' desc = ( 'The binary is built without Position ' diff --git a/mobsf/templates/base/base_layout.html b/mobsf/templates/base/base_layout.html index 94ea285eed..d423d7446c 100644 --- a/mobsf/templates/base/base_layout.html +++ b/mobsf/templates/base/base_layout.html @@ -41,7 +41,7 @@ - + diff --git a/mobsf/templates/general/about.html b/mobsf/templates/general/about.html index e444650d90..64b2ce9164 100644 --- a/mobsf/templates/general/about.html +++ b/mobsf/templates/general/about.html @@ -14,7 +14,7 @@

About Mobile Security Framework

- 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. MobSF support mobile app binaries (APK, XAPK, IPA & APPX) along with zipped source code and provides REST APIs for seamless integration with your CI/CD or DevSecOps pipeline. The Dynamic Analyzer helps you to perform runtime security assessment and interactive instrumented testing. + 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. MobSF support mobile app binaries (APK, XAPK, IPA & APPX) along with zipped source code and provides APIs for seamless integration with your CI/CD or DevSecOps pipeline. The Dynamic Analyzer helps you to perform runtime security assessment and interactive instrumented testing.

Author: Ajin Abraham

Active Collaborators

diff --git a/mobsf/templates/general/apidocs.html b/mobsf/templates/general/apidocs.html index cc7105a58c..37c1d27882 100644 --- a/mobsf/templates/general/apidocs.html +++ b/mobsf/templates/general/apidocs.html @@ -19,9 +19,9 @@
-

REST API Docs

+

API Docs

- REST API Key: {{ api_key}} + API Key: {{ api_key}}

diff --git a/mobsf/templates/general/home.html b/mobsf/templates/general/home.html index 09204302f6..eba13a359d 100644 --- a/mobsf/templates/general/home.html +++ b/mobsf/templates/general/home.html @@ -35,7 +35,7 @@ DYNAMIC ANALYZER