Viewstate

This is a discussion on "Viewstate" within the ASP.NET Forum section. This forum, and the thread "Viewstate are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > ASP.NET Forum

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Oct 7th, 2003, 10:07
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Viewstate

How crackable/decryptable is the "__VIEWSTATE"?

u2o
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Oct 7th, 2003, 15:42
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Answer to my own question..!

The "__VIEWSTATE" can be decrypted client side but this will require the use of Microsofts special class "LosFormatter". This class crypt's and decrypt's the content of Page and controls viewstate.

u2o
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Oct 8th, 2003, 11:49
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
what are the advantages of cracking the viewstate?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Oct 8th, 2003, 12:22
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
I was messing the other day with an asp label with it's visible property set to 'false' and it's text value set to '1'.
Code: Select all
<asp:label id="lblTest" text="1" visible="false" />
When I executed the page and viewed the source (before postback), the label was not visible or in the source. I then submitted the page and was able to read the value of the hidden label.

This data was obviously stored in the viewstate and thought there is a possibility of storing data there, which would be *reasonably* safe. I am just experimenting with this and don't have any plans as of yet to implement any systems without further investigation.

What I cannot understand is that, since the code for the label (which if I remember correctly is rendered as a <span> tag) was not in the source, how can it be put in the viewstate? There is the possibility that I may have read my source incorrectly.

u2o
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
viewstate

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET Control ViewState Basheer ASP.NET Forum 2 Apr 14th, 2007 10:25


All times are GMT. The time now is 14:27.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42