Invalid JSON Primitive Error

1 posts, 0 answers
  1. Jutas Arthasarnprasit
    Jutas Arthasarnprasit avatar
    2 posts
    Member since:
    Jan 2009

    Posted 04 Apr Link to this post

    A client of ours runs a security scanner daily on a website.  One page on the site has the RadDatePicker control.  When the scanner runs, it brings up t

    Inner Exception Type: System.ArgumentException
    Inner Exception
    Invalid JSON primitive: ;WAITFOR DELAY '00:00:28'-- .
    Inner Source:
    Inner Stack Trace:
    at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer)
    at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)
    at Telerik.Web.UI.RadDatePicker.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
    at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    I looked at the scanner form input data and found this:

    ContentPlaceHolder1_applicationManager1_sessionsearchresults1_Criteria1_radTo_ClientState: 1';WAITFOR DELAY '00:00:28'--

    I know this value is not valid JSON, but I'm unsure how to proceed.  I tried to reproduce this problem on the form itself but have been unable to.  Has anyone experienced this problem?

Back to Top