CRITICAL
Rule Definition
When aspnet:UseLegacyEncryption is set to True the cryptographic signature verification will not be performed, this may allow a malicious client to decrypt, forge, or otherwise tamper with encrypted data.
Remediation
Don't set the UseLegacyEncryption to True
Violation Code Sample
<appSettings>
<add key="aspnet:UseLegacyEncryption" value="True" />
</appSettings>
Fixed Code Sample
<appSettings>
<add key="aspnet:UseLegacyEncryption" value="False" />
</appSettings>
Reference
CWE-345- https://cwe.mitre.org/data/definitions/345.html
OWASP Top 10 2004: A10-Insecure Configuration Management
OWASP Top 10 2010: A6-Security Misconfiguration
OWASP Top 10 2013: A5-Security Misconfiguration
OWASP Top 10 2017: A6-Security Misconfiguration
https://www.owasp.org/index.php/Top_10-2017_A6-Security_Misconfiguration
Related Technologies
Technical Criterion
Secure Coding - Weak Security Features
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.