Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to solve this problem?

Reply
Thread Tools

How to solve this problem?

 
 
=?Utf-8?B?QW5kcmV3?=
Guest
Posts: n/a
 
      01-03-2006
Happy new year, friends,

When I tested my asp.net app with a new set of data, I got the following
error:

A potentially dangerous Request.Form value was detected from the client
(TEXTAREA1="...Request = <bitMapMessage type=...").

Description: Request Validation has detected a potentially dangerous client
input value, and processing of the request has been aborted. This value may
indicate an attempt to compromise the security of your application, such as a
cross-site scripting attack. You can disable request validation by setting
validateRequest=false in the Page directive or in the configuration section.
However, it is strongly recommended that your application explicitly check
all inputs in this case.

But, I knew it was just our input text of a TextArea1 box which are
accidently in xml format: e.g. XML Request = <bitMapMessage
type=0100><acceptorID>......

How can I let my app accept such kind of input info?

Thanks a lot.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q293Ym95IChHcmVnb3J5IEEuIEJlYW1lcikgLSBNVlA=?=
Guest
Posts: n/a
 
      01-03-2006
Convert the string using HTMLEncode? That would be the first direction I
would look.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************


"Andrew" wrote:

> Happy new year, friends,
>
> When I tested my asp.net app with a new set of data, I got the following
> error:
>
> A potentially dangerous Request.Form value was detected from the client
> (TEXTAREA1="...Request = <bitMapMessage type=...").
>
> Description: Request Validation has detected a potentially dangerous client
> input value, and processing of the request has been aborted. This value may
> indicate an attempt to compromise the security of your application, such as a
> cross-site scripting attack. You can disable request validation by setting
> validateRequest=false in the Page directive or in the configuration section.
> However, it is strongly recommended that your application explicitly check
> all inputs in this case.
>
> But, I knew it was just our input text of a TextArea1 box which are
> accidently in xml format: e.g. XML Request = <bitMapMessage
> type=0100><acceptorID>......
>
> How can I let my app accept such kind of input info?
>
> Thanks a lot.
>

 
Reply With Quote
 
 
 
 
=?Utf-8?B?QW5kcmV3?=
Guest
Posts: n/a
 
      01-03-2006
they are really TextArea1.Value pasted by copy/paste memus...

do you mean I should use HTMLEncode before submit?

"Cowboy (Gregory A. Beamer) - MVP" wrote:

> Convert the string using HTMLEncode? That would be the first direction I
> would look.
>
> --
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
>
> ***************************
> Think Outside the Box!
> ***************************
>
>
> "Andrew" wrote:
>
> > Happy new year, friends,
> >
> > When I tested my asp.net app with a new set of data, I got the following
> > error:
> >
> > A potentially dangerous Request.Form value was detected from the client
> > (TEXTAREA1="...Request = <bitMapMessage type=...").
> >
> > Description: Request Validation has detected a potentially dangerous client
> > input value, and processing of the request has been aborted. This value may
> > indicate an attempt to compromise the security of your application, such as a
> > cross-site scripting attack. You can disable request validation by setting
> > validateRequest=false in the Page directive or in the configuration section.
> > However, it is strongly recommended that your application explicitly check
> > all inputs in this case.
> >
> > But, I knew it was just our input text of a TextArea1 box which are
> > accidently in xml format: e.g. XML Request = <bitMapMessage
> > type=0100><acceptorID>......
> >
> > How can I let my app accept such kind of input info?
> >
> > Thanks a lot.
> >

 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If you can solve this... James Wireless Networking 3 10-23-2005 01:00 AM
how can I solve Common Language runtime Error Ajith Nair ASP .Net 0 08-17-2005 08:17 AM
How to solve COMException Ajith Nair ASP .Net 2 07-22-2005 01:55 AM
An Irritating Thunderbird Newsgroup Problem...Please Solve It! Ann Speakman Firefox 2 03-09-2005 12:08 AM
how to solve file.copy problem tony ASP .Net 3 08-26-2004 06:28 AM



Advertisments
 



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