From 880915898b27bdb4c177cb83775fbe593245df6e Mon Sep 17 00:00:00 2001 From: "Ajin.Abraham" Date: Fri, 5 Jan 2024 17:06:04 -0800 Subject: [PATCH] else check --- mobsfscan/manifest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mobsfscan/manifest.py b/mobsfscan/manifest.py index b67be48..2e44051 100644 --- a/mobsfscan/manifest.py +++ b/mobsfscan/manifest.py @@ -210,6 +210,8 @@ def clear_text_traffic_permitted(self, conf, typ): r = 'android_manifest_base_config_cleartext' elif typ == 'domain': r = 'android_manifest_domain_config_cleartext' + else: + return ctt = conf.get('@cleartextTrafficPermitted') if ctt and ctt == 'true': add_finding(self.findings, self.xml_path, r) @@ -222,6 +224,8 @@ def trust_cert_and_cert_pinning_bypass(self, cert, typ): elif typ == 'domain': trule = 'android_manifest_domain_config_trust_user_certs' prule = 'android_manifest_domain_config_bypass_pinning' + else: + return src = cert.get('@src') op = cert.get('@overridePins') # Trust user certs