ViewState not encrypted
Description
The state information of application forms that is stored in the ViewState is not encrypted.
Impact
Leak app state information through the ViewState value.
Recommendation
Encrypt the ViewState in the application configuration.
Threat
Anonymous attacker with local access to the victims browser.
Expected Remediation Time
⌚ 15 minutes.
Score
Default score using CVSS 3.1. It may change depending on the context of the vulnerability.
Base
- Attack vector: L
- Attack complexity: H
- Privileges required: N
- User interaction: N
- Scope: U
- Confidentiality: L
- Integrity: N
- Availability: N
Temporal
- Exploit code madurity: X
- Remediation level: O
- Report confidence: C
Result
- Vector string: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N/E:X/RL:O/RC:C
- Score:
- Base: 2.9
- Temporal: 2.8
- Severity:
- Base: Low
- Temporal: Low
Code Examples
Compliant code
<configuration xmlns =https://myhost.com>
<system.web>
<pages viewStateEncryptionMode="Always"”>
…
</system.web>
</configuration>
Non compliant code
Incorrectly configured viewState Encryption
<configuration xmlns =https://myhost.com>
<system.web>
<pages viewStateEncryptionMode=”None”>
…
</system.web>
</configuration>
Requirements
free trial
Search for vulnerabilities in your apps for free with our automated security testing! Start your 21-day free trial and discover the benefits of our Continuous Hacking Machine Plan. If you prefer a full service that includes the expertise of our ethical hackers, don't hesitate to contact us for our Continuous Hacking Squad Plan.