Looking for the vulnerability index of Invicti's legacy products?
ViewState MAC Disabled - Vulnerability Database

ViewState MAC Disabled

Description

The ASP.NET application has disabled ViewState Message Authentication Code (MAC) validation by setting EnableViewStateMac to false. ViewState MAC is a critical security mechanism that prevents tampering with the ViewState data sent between the client and server. When disabled, attackers can modify ViewState contents without detection, potentially manipulating server-side control states and application behavior. This setting should remain enabled (true) in all production environments to maintain ViewState integrity.

Remediation

Enable ViewState MAC validation by setting EnableViewStateMac to true in all page directives and configuration files. This can be implemented at the page level or application level:

Page Level:


Application Level (web.config):
<configuration>
  <system.web>
    <pages enableViewStateMac="true" />
  </system.web>
</configuration>

Additionally, ensure that the machineKey element in web.config is properly configured with a strong validation key. Review all .aspx pages and remove any instances where EnableViewStateMac is explicitly set to false. After making changes, test the application thoroughly to ensure ViewState validation does not interfere with legitimate functionality.

Related Vulnerabilities