Rule Definition
This attribute should never be set to false in a production Web site, even if the application or page does not use view state. The view state MAC helps ensure the security of other ASP.NET functions in addition to view state.
Remediation
Do not set enableViewStateMac to false
Violation Code Sample
<%@ Page enableViewStateMac="false" %>
and/or
<pages enableViewStateMac ="false"/>
Fixed Code Sample
<%@ Page enableViewStateMac ="true" %>
and/or
<pages enableViewStateMac ="true"/>
Reference
https://docs.microsoft.com/dotnet/api/system.web.ui.page.enableviewstatemac?view=netframework-4.7.2
https://devblogs.microsoft.com/aspnet/farewell-enableviewstatemac/
Related Technologies
Technical Criterion
CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
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.