Skip to content
Crypto Disclosed report Beginner

Unencrypted __VIEWSTATE parameter in a DoD website

The reporter observed that the __VIEWSTATE parameter returned by an ASP.NET site appeared to carry data in cleartext rather than in encrypted form. They suggest this could let someone who intercepts the traffic read the information passing through that parameter.

miguel_santareno Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 9 months
  • Disclosed after 19 months

Hi there i realise that the information passing to the server in the subdomain http://████████ can be seen without any encryption thought the __VIEWSTATE Parameter.

To reduce the change of someone interception the information the parameter should be encrypted due to the sensivity of the information passing thought there.

POC: Well this quiet easy to explore it. Go to the following website with burp turned on: url: https://█████/

Intercept the traffic and check the response from the __VIEWSTATE parameter and you will see the information passing in cleartext

viewstate.jpg

Recommendations. The __VIEWSTATE variable cipher is recommended in the application settings (web.config).

References: http://msdn.microsoft.com/en-us/library/ms178199(v=vs.85).aspx https://www.acunetix.com/vulnerabilities/web/unencrypted-__viewstate-parameter

Best Regards Miguel Santareno

Impact

It depends on the information passing around but for what can i see this is still a medium stuff

The original report as published on HackerOne, by miguel_santareno. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application left view state encryption disabled in its configuration, so the __VIEWSTATE value was sent without encryption.

Impact

The reporter rates it as medium and says the real impact depends on what information is carried in the parameter, so no concrete harm is demonstrated.

What the attacker needed

Ability to observe the site's traffic

How it was found

  1. Open the target site with an intercepting proxy running.
  2. Capture the response and inspect the __VIEWSTATE parameter.
  3. Observe that the data in that parameter appears in cleartext.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Many web pages send hidden fields back and forth to remember things between requests. One of these, called __VIEWSTATE, is used by a Microsoft web framework and can hold data the server needs later. The reporter says this field was not scrambled, so anyone who could see the traffic might read what is inside it.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More by miguel_santareno

View all

9 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.