Skip to content

Commit

Permalink
else check
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Jan 6, 2024
1 parent 4495770 commit 8809158
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mobsfscan/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 8809158

Please sign in to comment.