You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This flags every single use of MD5 as a cryptography problem.
MD5 exists for a reason an it's entirely inappropriate to flag any and every usage of it as a cryptographic usage
It is intended to be a lighter weight, simpler algorithm. Using it at all should not be a flag. there are plenty of legitimate use cases that have nothing to do with security
Code samples or links to source code
for example:
Here, we are just using checksum to see if the doc has been modified, not using it for encryption
//computeChecksum will use MD5
String docCheckSum = computeChecksum(text);
if (docCheckSum != previousCheckSum){
docchanged=1;
}
public static String computeChecksum(String s)
{
if (md == null)
{
try
{
//This line gets flagged
md = MessageDigest.getInstance("MD5");
}
catch (NoSuchAlgorithmException e)
{
if(log.isDebugEnabled()) e.printStackTrace();
throw new IllegalStateException(e + " String for MD5: " + s);
}
}
byte[] bytes = s.getBytes();
return hashData(bytes);
}
The text was updated successfully, but these errors were encountered:
Thank you for this false positive report. Resolving this issue is not a current product priority, but we acknowledge the report and will track it internally for future consideration, or if we observe repeated instances of the same problem.
Thank you, because this is a "High" vulnerability, we have strict guidelines and can't suppress this.
Also, this is only being detected in java, the same logic in ruby and C# does not get flagged
Description of the false positive
This flags every single use of MD5 as a cryptography problem.
MD5 exists for a reason an it's entirely inappropriate to flag any and every usage of it as a cryptographic usage
It is intended to be a lighter weight, simpler algorithm. Using it at all should not be a flag. there are plenty of legitimate use cases that have nothing to do with security
Code samples or links to source code
for example:
Here, we are just using checksum to see if the doc has been modified, not using it for encryption
The text was updated successfully, but these errors were encountered: