Ask a Question related to ASP.NET Security, Design and Development.
-
Boris #1
A potentially dangerous querystring ... [ValidateRequest]
All,
When i use .net FRamework 1.1, for my web application, i get an error
saying "A potentially dangerous querystring was detected from the
client...."
I have read the posts related to this and it seems this is due to some
SECURITY FEATURE in 1.1!!!
My code used to work in 1.0!!! now when the web server gets upgraded
to 1.1, my app. breaks.
So, If i introduce a validateRequest= false in Web.config, i can
overcome this error without ANY Code change.
BUT unfortunately, assume this scenario for me..I have 2 deployment
servers ServerA [with framework 1.1 installed] and Server B [ for some
reason has not upgraded to 1.1 as of now.] [which means i must
continue to support both 1.0 and 1.1 for sometime now].
So with this change in 1.1, does this mean that i cannot have one
"common Web.config" which i cannot deploy in both Server A and Server
B?
Because the Web.config in ServerB will complain on detecting a
validaterequest tag.
So to wrap my problem....Is there any way to include
"validateRequest=false" in web.config, but still allow 1.0 to compile
correctly?
Or the only way is to have seperate web.config for 1.0 and 1.1?
Thanks in advance
Ben
Boris Guest
-
Dangerous rounding bug when placing/importingdata from Excel spreadsheet (CS2)
We've just come out of a client meeting in which they pointed out a seemingly random spattering of data errors throughout the financial section of... -
Macromedia Flash Player has stopped a potentially
I have got my Cisco curriculum, when I try to access it offline, I am receiving the above message, what should I do to disable this message ?,... -
Getting "A potentially Dangerous Request.Cookies Value" error
Hello, I recently upgraded from VS.NET 2002 to VS.NET 2003. Since I did that, I receive the following error from time to time: A potentially... -
Potentially odd animated gif question...
Greetings. I'm new to Fireworks... as in I just got the thing about nine hours ago *lol*. I've been tinkering with the various capabilites and... -
A potentially dangerous Request.QueryString value was detected
Hi, The querystring contains a custom error message while we are trapping any duplicate record entry. The exact string is as given below: ... -
Scott Mitchell [MVP] #2
Re: A potentially dangerous querystring ... [ValidateRequest]
> So to wrap my problem....Is there any way to include
Ben, I've not tries this, but I believe it will work (although it may> "validateRequest=false" in web.config, but still allow 1.0 to compile
> correctly?
not have the exact effect you're after). You could tweak the
machine.config for 1.1 to include the validateRequest=false. Therefore,
you wouldn't have to fiddle with the Web.config.
Of course the issue here is two-fold:
(1) You must have access to the Web server's machine.config
(2) You will be affecting the default validateRequest setting for ALL
Web sites using ASP.NET 1.1 on the box
But, for your situation, it might be of use. Hope this helps.
--
Scott Mitchell
[email]mitchell@4guysfromrolla.com[/email]
[url]http://www.4GuysFromRolla.com[/url]
[url]http://www.ASPFAQs.com[/url]
[url]http://www.ASPMessageboard.com[/url]
* When you think ASP, think 4GuysFromRolla.com!
Scott Mitchell [MVP] Guest
-
Ken Schaefer #3
Re: A potentially dangerous querystring ... [ValidateRequest]
Alternatively, is there any way to get the server running v1.1 to go back
to running v1.0 (I suppose, talk to your administrator) until the server
running v1.0 can be upgraded to v1.1?
Cheers
Ken
"Scott Mitchell [MVP]" <mitchell@4guysfromrolla.com> wrote in message
news:ZlJfc.37370$XV2.11734@newssvr29.news.prodigy. com...
: > So to wrap my problem....Is there any way to include
: > "validateRequest=false" in web.config, but still allow 1.0 to compile
: > correctly?
:
: Ben, I've not tries this, but I believe it will work (although it may
: not have the exact effect you're after). You could tweak the
: machine.config for 1.1 to include the validateRequest=false. Therefore,
: you wouldn't have to fiddle with the Web.config.
:
: Of course the issue here is two-fold:
:
: (1) You must have access to the Web server's machine.config
: (2) You will be affecting the default validateRequest setting for ALL
: Web sites using ASP.NET 1.1 on the box
:
: But, for your situation, it might be of use. Hope this helps.
:
: --
:
: Scott Mitchell
: [email]mitchell@4guysfromrolla.com[/email]
: [url]http://www.4GuysFromRolla.com[/url]
: [url]http://www.ASPFAQs.com[/url]
: [url]http://www.ASPMessageboard.com[/url]
:
: * When you think ASP, think 4GuysFromRolla.com!
Ken Schaefer Guest
-
Boris #4
Re: A potentially dangerous querystring ... [ValidateRequest]
Hi Scott, Ken,
thanks for the replies.
i think modifying the machine.config is not possible since it may
affect other web app on the production box.
In fact same reason applies to Ken also. I can change the settings in
IIS to make it point to 1.0 again, but this will affect other Web app.
phew...What a change from 1.0 to 1.1!!!!
It is always good to fill in Security holes, but this i feel is a
over-restiction. At least for 1.0 web application, there must be a
better way to easily come thru this change...
Any other suggestions are most welcome.
Thanks again
Ben
"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message news:<OnwY6t6IEHA.520@tk2msftngp13.phx.gbl>...> Alternatively, is there any way to get the server running v1.1 to go back
> to running v1.0 (I suppose, talk to your administrator) until the server
> running v1.0 can be upgraded to v1.1?
>
> Cheers
> Ken
>
> "Scott Mitchell [MVP]" <mitchell@4guysfromrolla.com> wrote in message
> news:ZlJfc.37370$XV2.11734@newssvr29.news.prodigy. com...
> : > So to wrap my problem....Is there any way to include
> : > "validateRequest=false" in web.config, but still allow 1.0 to compile
> : > correctly?
> :
> : Ben, I've not tries this, but I believe it will work (although it may
> : not have the exact effect you're after). You could tweak the
> : machine.config for 1.1 to include the validateRequest=false. Therefore,
> : you wouldn't have to fiddle with the Web.config.
> :
> : Of course the issue here is two-fold:
> :
> : (1) You must have access to the Web server's machine.config
> : (2) You will be affecting the default validateRequest setting for ALL
> : Web sites using ASP.NET 1.1 on the box
> :
> : But, for your situation, it might be of use. Hope this helps.
> :
> : --
> :
> : Scott Mitchell
> : [email]mitchell@4guysfromrolla.com[/email]
> : [url]http://www.4GuysFromRolla.com[/url]
> : [url]http://www.ASPFAQs.com[/url]
> : [url]http://www.ASPMessageboard.com[/url]
> :
> : * When you think ASP, think 4GuysFromRolla.com!Boris Guest
-
Ken Schaefer #5
Re: A potentially dangerous querystring ... [ValidateRequest]
I believe that mappings can be set on a Web Application by Web Application
basis.
In IIS Manager, you will need to goto Web App Properties -> Directory -> App
Configuration Button -> Mappings tab. Map the ASP.NET extensions (e.g.
..aspx) to the appropriate aspnet_isapi.dll
So, even if you change one web app to use 1.0, the others can still use 1.1
(I think they can - maybe the can't, but you coudl try it).
Cheers
Ken
"Boris" <benboris78@yahoo.com> wrote in message
news:c007e638.0404170455.279a6b66@posting.google.c om...
: Hi Scott, Ken,
: thanks for the replies.
:
: i think modifying the machine.config is not possible since it may
: affect other web app on the production box.
:
: In fact same reason applies to Ken also. I can change the settings in
: IIS to make it point to 1.0 again, but this will affect other Web app.
:
: phew...What a change from 1.0 to 1.1!!!!
:
: It is always good to fill in Security holes, but this i feel is a
: over-restiction. At least for 1.0 web application, there must be a
: better way to easily come thru this change...
:
: Any other suggestions are most welcome.
:
: Thanks again
: Ben
:
:
: "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:<OnwY6t6IEHA.520@tk2msftngp13.phx.gbl>...
: > Alternatively, is there any way to get the server running v1.1 to go
back
: > to running v1.0 (I suppose, talk to your administrator) until the server
: > running v1.0 can be upgraded to v1.1?
: >
: > Cheers
: > Ken
: >
: > "Scott Mitchell [MVP]" <mitchell@4guysfromrolla.com> wrote in message
: > news:ZlJfc.37370$XV2.11734@newssvr29.news.prodigy. com...
: > : > So to wrap my problem....Is there any way to include
: > : > "validateRequest=false" in web.config, but still allow 1.0 to
compile
: > : > correctly?
: > :
: > : Ben, I've not tries this, but I believe it will work (although it may
: > : not have the exact effect you're after). You could tweak the
: > : machine.config for 1.1 to include the validateRequest=false.
Therefore,
: > : you wouldn't have to fiddle with the Web.config.
: > :
: > : Of course the issue here is two-fold:
: > :
: > : (1) You must have access to the Web server's machine.config
: > : (2) You will be affecting the default validateRequest setting for ALL
: > : Web sites using ASP.NET 1.1 on the box
: > :
: > : But, for your situation, it might be of use. Hope this helps.
: > :
: > : --
: > :
: > : Scott Mitchell
: > : [email]mitchell@4guysfromrolla.com[/email]
: > : [url]http://www.4GuysFromRolla.com[/url]
: > : [url]http://www.ASPFAQs.com[/url]
: > : [url]http://www.ASPMessageboard.com[/url]
: > :
: > : * When you think ASP, think 4GuysFromRolla.com!
Ken Schaefer Guest
-
Joe Kaplan \(MVP - ADSI\) #6
Re: A potentially dangerous querystring ... [ValidateRequest]
I'd recommend installing both versions of the Framework on the server and
then using Denis Bauer's handy ASP.NET Version Switcher utility so that you
can set framework versions on a vroot by vroot basis easily.
[url]http://www.denisbauer.com[/url].
You can also do this via the command line, but Denis' utility is SO much
easier. We use it all the time to handle just these types of situations.
Joe K.
"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:OT3MyjIJEHA.3596@tk2msftngp13.phx.gbl...App> I believe that mappings can be set on a Web Application by Web Application
> basis.
>
> In IIS Manager, you will need to goto Web App Properties -> Directory ->1.1> Configuration Button -> Mappings tab. Map the ASP.NET extensions (e.g.
> .aspx) to the appropriate aspnet_isapi.dll
>
> So, even if you change one web app to use 1.0, the others can still useserver> (I think they can - maybe the can't, but you coudl try it).
>
> Cheers
> Ken
>
>
> "Boris" <benboris78@yahoo.com> wrote in message
> news:c007e638.0404170455.279a6b66@posting.google.c om...
> : Hi Scott, Ken,
> : thanks for the replies.
> :
> : i think modifying the machine.config is not possible since it may
> : affect other web app on the production box.
> :
> : In fact same reason applies to Ken also. I can change the settings in
> : IIS to make it point to 1.0 again, but this will affect other Web app.
> :
> : phew...What a change from 1.0 to 1.1!!!!
> :
> : It is always good to fill in Security holes, but this i feel is a
> : over-restiction. At least for 1.0 web application, there must be a
> : better way to easily come thru this change...
> :
> : Any other suggestions are most welcome.
> :
> : Thanks again
> : Ben
> :
> :
> : "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
> news:<OnwY6t6IEHA.520@tk2msftngp13.phx.gbl>...
> : > Alternatively, is there any way to get the server running v1.1 to go
> back
> : > to running v1.0 (I suppose, talk to your administrator) until themay> : > running v1.0 can be upgraded to v1.1?
> : >
> : > Cheers
> : > Ken
> : >
> : > "Scott Mitchell [MVP]" <mitchell@4guysfromrolla.com> wrote in message
> : > news:ZlJfc.37370$XV2.11734@newssvr29.news.prodigy. com...
> : > : > So to wrap my problem....Is there any way to include
> : > : > "validateRequest=false" in web.config, but still allow 1.0 to
> compile
> : > : > correctly?
> : > :
> : > : Ben, I've not tries this, but I believe it will work (although itALL> : > : not have the exact effect you're after). You could tweak the
> : > : machine.config for 1.1 to include the validateRequest=false.
> Therefore,
> : > : you wouldn't have to fiddle with the Web.config.
> : > :
> : > : Of course the issue here is two-fold:
> : > :
> : > : (1) You must have access to the Web server's machine.config
> : > : (2) You will be affecting the default validateRequest setting for> : > : Web sites using ASP.NET 1.1 on the box
> : > :
> : > : But, for your situation, it might be of use. Hope this helps.
> : > :
> : > : --
> : > :
> : > : Scott Mitchell
> : > : [email]mitchell@4guysfromrolla.com[/email]
> : > : [url]http://www.4GuysFromRolla.com[/url]
> : > : [url]http://www.ASPFAQs.com[/url]
> : > : [url]http://www.ASPMessageboard.com[/url]
> : > :
> : > : * When you think ASP, think 4GuysFromRolla.com!
>
>
Joe Kaplan \(MVP - ADSI\) Guest



Reply With Quote

