Re: IIS 7 default setting

Posted: 02-26-2006, 11:50 PM
"Howard" <howdy0909@yahoo.com> wrote in message
news:%23Tn6PsxOGHA.456@TK2MSFTNGP15.phx.gbl...
: The "Send errors to browsers" property under ASP debugging settings should
: be turned off by default. Like in asp.net no debug info should be send to
: the browser unless it is explicitly turned on.
: This will prevent many attacks, such as sql injection.


Hi,

SQL Injection attacks occur because of vulnerabilities in the application
*not* becase error messages are sent to the client. If your application
isn't vulnerable, then it doesn't matter what messages get sent to the
client. If your application is vulnerable, you'll still get hacked no matter
whether you disguise your error messages or not.

But you are correct that, by default, detailed error message should not be
sent to remote clients by default.

Cheers
Ken


Reply With Quote

Responses to "Re: IIS 7 default setting"

Wade A. Hilmo [MS]
Guest
Posts: n/a
 
Re: IIS 7 default setting
Posted: 02-27-2006, 02:32 AM
Hi Ken and Howard,

We've got this on our list of things to do. By the time IIS 7 ships (and
maybe beta 2), this will be off by default in IIS 7.

Thank you,
-Wade A. Hilmo,
-Microsoft

"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:#crB79yOGHA.1192@TK2MSFTNGP11.phx.gbl...
> "Howard" <howdy0909@yahoo.com> wrote in message
> news:%23Tn6PsxOGHA.456@TK2MSFTNGP15.phx.gbl...
> : The "Send errors to browsers" property under ASP debugging settings
should
> : be turned off by default. Like in asp.net no debug info should be send
to
> : the browser unless it is explicitly turned on.
> : This will prevent many attacks, such as sql injection.
>
>
> Hi,
>
> SQL Injection attacks occur because of vulnerabilities in the application
> *not* becase error messages are sent to the client. If your application
> isn't vulnerable, then it doesn't matter what messages get sent to the
> client. If your application is vulnerable, you'll still get hacked no
matter
> whether you disguise your error messages or not.
>
> But you are correct that, by default, detailed error message should not be
> sent to remote clients by default.
>
> Cheers
> Ken
>
>

Reply With Quote
Howard
Guest
Posts: n/a
 
Re: IIS 7 default setting
Posted: 02-27-2006, 06:49 AM
The attacker would not know the name of the data table and column thus
unable to craft a malicious sql script.
Sure, they can always guess or run a dictionary attack but it's very
unlikely.

Right?

Wade,thanks for taking my suggestion.

Howard

"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:%23crB79yOGHA.1192@TK2MSFTNGP11.phx.gbl...
> "Howard" <howdy0909@yahoo.com> wrote in message
> news:%23Tn6PsxOGHA.456@TK2MSFTNGP15.phx.gbl...
> : The "Send errors to browsers" property under ASP debugging settings
> should
> : be turned off by default. Like in asp.net no debug info should be send
> to
> : the browser unless it is explicitly turned on.
> : This will prevent many attacks, such as sql injection.
>
>
> Hi,
>
> SQL Injection attacks occur because of vulnerabilities in the application
> *not* becase error messages are sent to the client. If your application
> isn't vulnerable, then it doesn't matter what messages get sent to the
> client. If your application is vulnerable, you'll still get hacked no
> matter
> whether you disguise your error messages or not.
>
> But you are correct that, by default, detailed error message should not be
> sent to remote clients by default.
>
> Cheers
> Ken
>
>

Reply With Quote
Ken Schaefer
Guest
Posts: n/a
 
Re: IIS 7 default setting
Posted: 02-28-2006, 03:18 AM
Some SQL Injection attacks (for example, logging on by using the
archtypical: ' OR 1=1 in the password field) require no knowledge of
field/tablenames at all.

The attacker may be able to run queries against system tables to get lists
of databases, tables, and fieldnames.

The attacker may be able to guess fieldnames (e.g. often a commerce site
will have tables similar to Products, Customers etc) based on table names

The attacker can determine field types based on whether the site responds
properly, or generates an error.

David Litchfield (IIRC) has a paper on running blind SQL Injection attacks.

Lastly, if the product is a 3rd party product (e.g. you are running phpBB or
ASPForum or something) then the attacker doesn't need to know anything about
error messages if an exploit has already been discovered (or a tool knows
the necessary exploit details).

Hiding error messages is just "security through obscurity". Obscurity is
good, but it's not real security. The underlying vulnerability is still
there - you're just trying to hide it. Unfortunately it doesn't stop you
being hacked.

Cheers
Ken


"Howard" <howdy0909@yahoo.com> wrote in message
news:%23%23Oaun2OGHA.3264@TK2MSFTNGP11.phx.gbl...
: The attacker would not know the name of the data table and column thus
: unable to craft a malicious sql script.
: Sure, they can always guess or run a dictionary attack but it's very
: unlikely.
:
: Right?
:
: Wade,thanks for taking my suggestion.
:
: Howard
:
: "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
: news:%23crB79yOGHA.1192@TK2MSFTNGP11.phx.gbl...
: > "Howard" <howdy0909@yahoo.com> wrote in message
: > news:%23Tn6PsxOGHA.456@TK2MSFTNGP15.phx.gbl...
: > : The "Send errors to browsers" property under ASP debugging settings
: > should
: > : be turned off by default. Like in asp.net no debug info should be send
: > to
: > : the browser unless it is explicitly turned on.
: > : This will prevent many attacks, such as sql injection.
: >
: >
: > Hi,
: >
: > SQL Injection attacks occur because of vulnerabilities in the
application
: > *not* becase error messages are sent to the client. If your application
: > isn't vulnerable, then it doesn't matter what messages get sent to the
: > client. If your application is vulnerable, you'll still get hacked no
: > matter
: > whether you disguise your error messages or not.
: >
: > But you are correct that, by default, detailed error message should not
be
: > sent to remote clients by default.
: >
: > Cheers
: > Ken
: >
: >
:
:


Reply With Quote
Orlando Padilla
Guest
Posts: n/a
 
Re: IIS 7 default setting
Posted: 04-26-2006, 04:15 PM
Inline.

"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:<uJHK0WBPGHA.532@TK2MSFTNGP15.phx.gbl>...
> Some SQL Injection attacks (for example, logging on by using the
> archtypical: ' OR 1=1 in the password field) require no knowledge of
> field/tablenames at all.
In 2006 if you are vulnerable to this type of attack SQL Injectoin is
probably

the least of your worries.
> The attacker may be able to run queries against system tables to get lists
> of databases, tables, and fieldnames.
>
> The attacker may be able to guess fieldnames (e.g. often a commerce site
> will have tables similar to Products, Customers etc) based on table names
Keyword here is 'guess'.

> The attacker can determine field types based on whether the site responds
> properly, or generates an error.
Yes but element enumeration is 10 x more difficult resulting in more time
and a higher

probability of them moving to an easier target.
> David Litchfield (IIRC) has a paper on running blind SQL Injection
> attacks.

Yes he does, however most of the times blind injection filters through the
95%

Of the script kiddies running automated tools like nummish's Absinthe of
x90.org (iirc)

although I think the latest version supports Blind SQL now.
> Lastly, if the product is a 3rd party product (e.g. you are running phpBB
> or
> ASPForum or something) then the attacker doesn't need to know anything
> about
> error messages if an exploit has already been discovered (or a tool knows
> the necessary exploit details).
I agree, also if it's a 3rd party open source app all bets are off (the
schema -

and code is freely downloadable).
> Hiding error messages is just "security through obscurity". Obscurity is
> good, but it's not real security. The underlying vulnerability is still
> there - you're just trying to hide it. Unfortunately it doesn't stop you
> being hacked.
>
Actually this is incorrect. You're not hiding data if there's no
vulnerability,

you are adding another layer of security by deliberately not helping the
attacker with

helpful error messages such as :

Unenclosed quotaion mark in query 'FROM Table Bar WHERE FOO=input''
> "Howard" <howdy0909@yahoo.com> wrote in message
> news:%23%23Oaun2OGHA.3264@TK2MSFTNGP11.phx.gbl...
> : The attacker would not know the name of the data table and column thus
> : unable to craft a malicious sql script.
> : Sure, they can always guess or run a dictionary attack but it's very
> : unlikely.
> :
> : Right?
> :
> : Wade,thanks for taking my suggestion.
> :
> : Howard
> :
> : "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
> : news:%23crB79yOGHA.1192@TK2MSFTNGP11.phx.gbl...
> : > "Howard" <howdy0909@yahoo.com> wrote in message
> : > news:%23Tn6PsxOGHA.456@TK2MSFTNGP15.phx.gbl...
> : > : The "Send errors to browsers" property under ASP debugging settings
> : > should
> : > : be turned off by default. Like in asp.net no debug info should be
> send
> : > to
> : > : the browser unless it is explicitly turned on.
> : > : This will prevent many attacks, such as sql injection.
> : >
> : >
> : > Hi,
> : >
> : > SQL Injection attacks occur because of vulnerabilities in the
> application
> : > *not* becase error messages are sent to the client. If your
> application
> : > isn't vulnerable, then it doesn't matter what messages get sent to the
> : > client. If your application is vulnerable, you'll still get hacked no
> : > matter
> : > whether you disguise your error messages or not.
> : >
> : > But you are correct that, by default, detailed error message should
> not
> be
> : > sent to remote clients by default.
> : >
> : > Cheers
> : > Ken
> : >
> : >
> :
> :
>
>

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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 On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting environment variables? Chaz Windows Vista Administration 3 01-18-2009 03:52 AM
Setting up network with different OS marbo Windows Vista Networking & Sharing 1 10-25-2006 06:49 AM
Location setting inconsistent BigBNY Windows Vista File Management 0 10-15-2006 09:04 PM
Display Setting mc Windows Vista Performance & Maintenance 4 10-02-2006 08:43 PM
Setting up Network ghost in the machine Windows Vista Networking & Sharing 2 06-25-2006 07:37 AM