Encryption of the query string in the URL

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Encryption of the query string in the URL

    Hi

    We found out about this weird problem that happens on the encrypted string that we send across as a query string on the url. The page shows the erro
    "The page has encountered an error...." and when I go to the the view source it displays this message
    <!-- Error Information
    Error: A potentially dangerous Request.QueryString value was detected from the client (aub=&quot;&lt;!-- Error Informati...&quot;)
    StackTrace: at System.Web.HttpRequest.ValidateString(String s, String valueName, String collectionName
    at System.Web.HttpRequest.ValidateNameValueCollection (NameValueCollection nvc, String collectionName
    at System.Web.HttpRequest.get_QueryString(
    at System.Web.UI.Page.GetCollectionBasedOnMethod(
    at System.Web.UI.Page.DeterminePostBackMode(
    at System.Web.UI.Page.ProcessRequestMain(
    at System.Web.UI.Page.ProcessRequest(
    at System.Web.UI.Page.ProcessRequest(HttpContext context
    at System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionStep.Execute(
    at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&amp; completedSynchronously
    --

    Now I know that this is encountered when the string has some invalid characters, but we checked the string that is generated due to the encryption
    The real string is BA\cjg1760
    and the encrypted string i
    yqtlVNykIrXno79onQdGxg=

    We are also encoding the string by using the Server.UrlEncode statement. the string is
    yqtlVNykIrXno79onQdGxg%3d%3d
    after the encoding

    I have checked for invalid or dangerous (script type characters) in the string but everything looks good. Now this error occurs only on thius one user out of almost 2000 users

    Another weird thing is , if we do another Server.UrlEncode on the string and then decode it while retreiving, it works fine..

    If any of you have encountered similar problems, please let me know what workaround you used. Right now only thing i can think of is use th
    <pages validateRequest="false"> statement in the Web.confi

    thanks in advance
    Ritesh
    Ritesh Guest

  2. Similar Questions and Discussions

    1. query string
      hi there, i'm working on a very simple flash data integration project, i have been trying to send a query string without opening/reloading a...
    2. Encryption and CF Query
      When attempting to filter a query with an encrypted password, somewhere along the lines, the encrypted password doesnt validate with the database. ...
    3. Maintain query string and somehow auto refresh a pagewith that string intact
      I have a drill down where on page one the user selects criteria to narrow down the search for a speicific group of employees(like all hired between...
    4. Get String Encryption Without Reconfiguring or Recompiling PHP
      Of course, one could always use other kinds of encryption/encoding/obfuscation techniques such as XOR complement, but this example provides an...
    5. database connection string encryption and decryption
      Hi I want to encrypt the database connection string and add it to web.config file. Before connecting to the database I want to decrypt it. Can...
  3. #2

    Default RE: Encryption of the query string in the URL

    It sounds like you are encrypting the query string, then encoding it, then attempting to decrypt it. You will also need a step in there that decodes it before trying to decrypt it.
    David Coe Guest

  4. #3

    Default RE: Encryption of the query string in the URL


    Hi ,

    Thnaks for the reply. The first decode happens automatically when I try
    to retrieve it. SO there is no decode statement.

    More I see it, I think it to be a bug in the Microsoft cross site
    scripting program. It seems to script out valid strings.

    You know it works, if i change the case of any letter(s) within the
    windows id. It seems to me that the encrypted and encoded string screws
    something up in the cross site scripting program.

    THanks



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Ritesh Desai Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139