Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions mobsf/StaticAnalyzer/views/android/cert_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,16 @@ def cert_info(app_dir, app_file):
desc += (
' The manifest file indicates SHA256withRSA'
' is in use.')
title = ('Certificate algorithm might be '
'vulnerable to hash collision')
title = ('Certificate algorithm might be '
'vulnerable to hash collision')
findings.append((status, desc, title))
if re.findall(r'Hash Algorithm: md5', cert_info):
status = 'high'
desc = (
'Application is signed with MD5. '
'MD5 hash algorithm is known to have '
'collision issues.')
title = 'Certificate algorithm vulnerable to hash collision'
findings.append((status, desc, title))
cert_dic = {
'certificate_info': cert_info,
Expand Down