473,568 Members | 2,935 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

validateRequest

If put this into my Web.config. Shouldn't this turn off the ValiateRequest
app wide?

<configuratio n>

<system.web>

<pages buffer="true" validateRequest ="false" />

I pass SQL around to pages, and sometimes, this causes the 'Cross Site
Attack' warning. I just want to turn it off comepltely.

I also tried just putting it in the page header, I still ghet the error. Am
I missing something else? I only get it on a new server I just setup, not
any of my others.

Ideas? Thanks, Dave


Nov 19 '05 #1
4 2144
Dave H wrote:
If put this into my Web.config. Shouldn't this turn off the
ValiateRequest app wide?

<configuratio n>

<system.web>

<pages buffer="true" validateRequest ="false" />

I pass SQL around to pages, and sometimes, this causes the 'Cross Site
Attack' warning. I just want to turn it off comepltely.

I also tried just putting it in the page header, I still ghet the
error. Am I missing something else? I only get it on a new server I
just setup, not any of my others.

Ideas? Thanks, Dave

Ummmm - stop passing SQL around to pages?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Nov 19 '05 #2

I'm really wondering more, why this one server has this behavior, and others
don't.

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:OV******** ********@TK2MSF TNGP09.phx.gbl. ..
Dave H wrote:
If put this into my Web.config. Shouldn't this turn off the
ValiateRequest app wide?

<configuratio n>

<system.web>

<pages buffer="true" validateRequest ="false" />

I pass SQL around to pages, and sometimes, this causes the 'Cross Site
Attack' warning. I just want to turn it off comepltely.

I also tried just putting it in the page header, I still ghet the
error. Am I missing something else? I only get it on a new server I
just setup, not any of my others.

Ideas? Thanks, Dave

Ummmm - stop passing SQL around to pages?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Nov 19 '05 #3
Hi Dave,

Welcome here.
From your description, you're encountering some "Cross Site Attack"
exceptions when you've turned off the pages/@validateReques t setting in
web.config, yes?

As you mentioned that the problem occured sometimes, so this is a randomly
occurs behavior ,yes? If so, I'm wondering whether it is something else
which cause this problem. Have you tried put a simple aspx page with some
entry fields on this and use some SQL injections code to post that page to
see whether it will raise such error? (remain the valiationReques t turn
off..)
Also, is it possible that we isolate the problem to a particular page? If
possible, would you provide some detaild code description on that page so
that we can perform some tests on our side.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| NNTP-Posting-Date: Thu, 10 Nov 2005 22:52:17 -0600
| From: "Dave H" <Da***@noemail. nospam>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| References: <yO************ ********@comcas t.com>
<OV************ **@TK2MSFTNGP09 .phx.gbl>
| Subject: Re: validateRequest
| Date: Thu, 10 Nov 2005 20:52:15 -0800
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| Message-ID: <eY************ ********@comcas t.com>
| Lines: 34
| NNTP-Posting-Host: 67.180.218.69
| X-Trace:
sv3-g4cR4RmDza6WKwO L6Lvbyv3bHAhbMv Xwk8HxXHcmVysDe SoDNpPr54iYxnjb 6gptgWAIbn2T
gxG7oh0!O7MKn8S lJCbWOL7RqtNLBM/N0b5lTzkTMqFK/UWgVtDjAHyBsefo 3d7F+G/9BtIvzvbG
YFMxfnUa!fXU4
| X-Complaints-To: ab***@comcast.n et
| X-DMCA-Complaints-To: dm**@comcast.ne t
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!ne wsfeed00.sul.t-online.de!t-onli
ne.de!border2.n ntp.dca.giganew s.com!border1.n ntp.dca.giganew s.com!nntp.giga n
ews.com!local01 .nntp.dca.gigan ews.com!nntp.co mcast.com!news. comcast.com.POS T
ED!not-for-mail
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3572 74
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
|
| I'm really wondering more, why this one server has this behavior, and
others
| don't.
|
| "Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
| news:OV******** ********@TK2MSF TNGP09.phx.gbl. ..
| > Dave H wrote:
| > > If put this into my Web.config. Shouldn't this turn off the
| > > ValiateRequest app wide?
| > >
| > > <configuratio n>
| > >
| > > <system.web>
| > >
| > > <pages buffer="true" validateRequest ="false" />
| > >
| > > I pass SQL around to pages, and sometimes, this causes the 'Cross Site
| > > Attack' warning. I just want to turn it off comepltely.
| > >
| > > I also tried just putting it in the page header, I still ghet the
| > > error. Am I missing something else? I only get it on a new server I
| > > just setup, not any of my others.
| > >
| > > Ideas? Thanks, Dave
| > Ummmm - stop passing SQL around to pages?
| > --
| > Microsoft MVP -- ASP/ASP.NET
| > Please reply to the newsgroup. The email account listed in my From
| > header is my spam trap, so I don't check it very often. You will get a
| > quicker response by posting to the newsgroup.
| >
| >
|
|
|

Nov 19 '05 #4
Thanks.. here's an example, same page,the one that doesn't work, it was
encoded using HTMLEncode (I tried that, same result)

In web.config

<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<system.web>
<pages buffer="true" validateRequest ="false" />

In Page Directives

Page Language="vb" AutoEventWireup ="false" ValidateRequest ="false"
Does not work:

http://mywebserver/reporting/Pages/ReportsDisplay. Aspx?Colname=Ad min&RunSQL=Sele ct%20T2.Userid, %20T2.UserName, %20Min(T1.LogDa te)%20As%20Firs tLogin,%20Max(T 1.LogDate)%20As %20LastLogin,%2 0Count(*)%20As% 20LoginCount%20 from%20SystemCo ntrol..UserLogi ns%20T1%20Join% 20SystemControl ..Users%20T2%20 On%20T2.UserID% 20=%20T1.UserID %20Where%20T1.L ogDate%20>'11/16/2005'%20Group%2 0By%20T2.UserId ,%20T2.UserName &RunXSL=BuildXS LGeneric&ShowSe condLink=Y
Does Work:

http://mywebserver/reporting/Pages/R...owSecondLink=Y
--
Dave
"Steven Cheng[MSFT]" wrote:
Hi Dave,

Welcome here.
From your description, you're encountering some "Cross Site Attack"
exceptions when you've turned off the pages/@validateReques t setting in
web.config, yes?

As you mentioned that the problem occured sometimes, so this is a randomly
occurs behavior ,yes? If so, I'm wondering whether it is something else
which cause this problem. Have you tried put a simple aspx page with some
entry fields on this and use some SQL injections code to post that page to
see whether it will raise such error? (remain the valiationReques t turn
off..)
Also, is it possible that we isolate the problem to a particular page? If
possible, would you provide some detaild code description on that page so
that we can perform some tests on our side.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| NNTP-Posting-Date: Thu, 10 Nov 2005 22:52:17 -0600
| From: "Dave H" <Da***@noemail. nospam>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| References: <yO************ ********@comcas t.com>
<OV************ **@TK2MSFTNGP09 .phx.gbl>
| Subject: Re: validateRequest
| Date: Thu, 10 Nov 2005 20:52:15 -0800
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| Message-ID: <eY************ ********@comcas t.com>
| Lines: 34
| NNTP-Posting-Host: 67.180.218.69
| X-Trace:
sv3-g4cR4RmDza6WKwO L6Lvbyv3bHAhbMv Xwk8HxXHcmVysDe SoDNpPr54iYxnjb 6gptgWAIbn2T
gxG7oh0!O7MKn8S lJCbWOL7RqtNLBM/N0b5lTzkTMqFK/UWgVtDjAHyBsefo 3d7F+G/9BtIvzvbG
YFMxfnUa!fXU4
| X-Complaints-To: ab***@comcast.n et
| X-DMCA-Complaints-To: dm**@comcast.ne t
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!ne wsfeed00.sul.t-online.de!t-onli
ne.de!border2.n ntp.dca.giganew s.com!border1.n ntp.dca.giganew s.com!nntp.giga n
ews.com!local01 .nntp.dca.gigan ews.com!nntp.co mcast.com!news. comcast.com.POS T
ED!not-for-mail
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3572 74
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
|
| I'm really wondering more, why this one server has this behavior, and
others
| don't.
|
| "Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
| news:OV******** ********@TK2MSF TNGP09.phx.gbl. ..
| > Dave H wrote:
| > > If put this into my Web.config. Shouldn't this turn off the
| > > ValiateRequest app wide?
| > >
| > > <configuratio n>
| > >
| > > <system.web>
| > >
| > > <pages buffer="true" validateRequest ="false" />
| > >
| > > I pass SQL around to pages, and sometimes, this causes the 'Cross Site
| > > Attack' warning. I just want to turn it off comepltely.
| > >
| > > I also tried just putting it in the page header, I still ghet the
| > > error. Am I missing something else? I only get it on a new server I
| > > just setup, not any of my others.
| > >
| > > Ideas? Thanks, Dave
| > Ummmm - stop passing SQL around to pages?
| > --
| > Microsoft MVP -- ASP/ASP.NET
| > Please reply to the newsgroup. The email account listed in my From
| > header is my spam trap, so I don't check it very often. You will get a
| > quicker response by posting to the newsgroup.
| >
| >
|
|
|

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
20715
by: mar | last post by:
Does anybody know what configuration section should i set to false here. I also tried setting the page directive to false but that didn't fix it. Thanks! mc A potentially dangerous Request.Form value was detected from the client (ResultInput="...="1.0"?> <ResultData xmlns:xs...").
1
3225
by: Shaun Dore | last post by:
Hi, I have a web form containing a TextBox that allows users to edit XML files. When the page is posted, the changes are saved. This worked fine until the ValidateRequest 'feature' came along in .Net 1.1 Now, I've been told that it can be disabled using the 'ValidateRequest' attribute (of Page). This works on 1.1 and is fine since I...
1
1334
by: Benny | last post by:
Hello Experts, If the contents of a text box containing a html tag like formmated characters, i.e. <hello>, and if the validateRequest is set to true, it gives an error when post back: A potentially dangerous Request.Form value was detected from the client. Just wondering what are the drawbacks if the validateRequest is set to true? Under...
4
6366
by: Ray Williams | last post by:
I have a specific page that I have chosen to disable the .NET 1.1 validateRequest options by setting the page directive attribute of "validateRequest" from true to false. I manually validate all controls within this page. This page includes a UserControl which contains a textbox. It appears that the validateRequest attribute is not propagated...
2
15877
by: Tim Zych | last post by:
I'm trying to stop .Net from validating data entered into a textbox. When I enter < or > .Net returns an error: potentially dangerous Request.Form value was detected from the client... so a search on google indicates a couple of options: 1. Add validateRequest = "false" in the page directive. So I add it: <%@ Page Language="vb"...
8
1861
by: Max Metral | last post by:
Ok, I have a global page class derived from System.Web.UI.Page, let's call it BasePage. I have another class derived from that called MemberPage. It checks the Form collection if it's a post for some "common" fields. Now, I have an aspx page whose code behind derives from BasePage, and which sets ValidateRequest=False in the page directive...
2
2993
by: Andy Fish | last post by:
Hi, I have one textbox on the form that needs to have ValidateRequest disabled, but it seems that it can only be enabled/disabled at a page level. assuming I have to disable it at for the whole page, how can I invoke ValidateRequest functionality for the other text boxes individually? I was looking for some kind of method on I can call...
3
2095
by: Umut Tezduyar | last post by:
I couln't find the code begind property on the Page object that represents the "ValidateRequest" attribute on the @Page element. There must be some property that the PageParser knows what to do when when parsing ValidateRequest. I couldn't find any information about this. Besides, it seems only can be declared on the html, and .config. What...
2
2056
by: \A_Michigan_User\ | last post by:
*WITHOUT* using: ValidateRequest="False" for the whole page (or my whole site).... How would I trap/detect that a textBox contains some illegal characters? (I'm using asp.net v1.1 and vb.net) Thanks.
0
7605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7917
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6277
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.