dimanche 27 septembre 2009

"Code Project Associate" Status @ Code Project

Now i'm "The Code Project Associate" @ THE CODE PROJECT, Thanks all.

Code Project Member Types:

The Code Project Associate

Members who have their own websites with their high quality content and who choose to share their content with The Code Project community can be selected to be Code Project Associates.

vendredi 25 septembre 2009

Asp.Net : __VIEWSTATE Bug !

When you Try this on Asp.net 2.0 WebSite:


You will have something like that:

How can we exploit it ? and what we have to do, to resolve this Bug?!

Any Suggestions Are Welcome.


I found the Solution: Remove "__VIEWSTATE" parameter From "Request.QueryString"

protected override void OnInitComplete(EventArgs e)

if (Request.QueryString.ToString().Contains("__VIEWSTATE"))

// reflect to readonly property
PropertyInfo isreadonly = typeof(System.Collections.Specialized.NameValueCollection).GetProperty("IsReadOnly", BindingFlags.Instance | BindingFlags.NonPublic);

// make collection editable
isreadonly.SetValue(this.Request.QueryString, false, null);

// remove

// make collection readonly again
isreadonly.SetValue(this.Request.QueryString, true, null);



Rechercher dans ce blog