Windows Security
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationWindows Security

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old December 9th, 2006, 07:12 AM
bigsur bigsur is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 114 bigsur User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 13 h 5 m 4 sec
Reputation Power: 2
Windows server 2003 security

A charity I help out with has been given a fully working and configure web server (Windows server 2003). We are about to launch an ASP site that allows users to dynamically update content via forms. Can anyone give us any advice on what security should be applied to the Database folder to prevent people from downloading the DB, if in fact this is necessary? And any other advice on security pitfalls that would normally be pre configured by your host?

Reply With Quote
  #2  
Old December 10th, 2006, 05:42 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,608 Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 6th Grade (Above 100000 Reputation Level)  Folding Points: 325618 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325618 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325618 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325618 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325618 Folding Title: Super Ultimate Folder - Level 1Folding Points: 325618 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 4 Days 12 h 53 m 47 sec
Reputation Power: 1400
--moved to the Windows Security forum, you'll get better answers here.

Reply With Quote
  #3  
Old December 10th, 2006, 03:09 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 18 h 33 m 48 sec
Reputation Power: 180
On the server open your web browser to http://localhost/iishelp for the IIS documentation.

Look at the Microsoft server documentation in the online help, and at the msdn library.

There's way too much for any simple answer.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #4  
Old December 11th, 2006, 07:28 AM
degsy degsy is offline
Contributing User
ASP Free God 2nd Plane (6000 - 6499 posts)
 
Join Date: Aug 2005
Location: North East, UK
Posts: 6,191 degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 19 h 41 m 52 sec
Reputation Power: 120
If you have a Micorsoft Access database then you really need to remove read permissions for it or the folder it is in.

This will deny browsers permission to open the file.


You can remove read permission to files/folders from IIS.

Another option is to move the database into a folder outside of the webroot.

e.g.
Your website is on the server is at
C:\Inetpub\

The webroot (where the html/asp scirpts/images etc) is at
C:\Inetpub\wwwroot

You could have your database at
C:\Inetpub\Data




For the content management, make sure you know what you are allowing your users to do.
If you let them post all HTML tags then they could break their pages.
It's best to restrict them to formatting tags such as tables, headers, paragraphs, links, images, lists etc.


If you let them post all HTML then they can disrupt their pages using styles, iframes, HTML/BODY/Script/Form tags.

If you have script tags available then they could bring down the server using reloads and redirects etc.
__________________
CyberTechHelp

Reply With Quote
  #5  
Old December 11th, 2006, 01:47 PM
bigsur bigsur is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 114 bigsur User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 13 h 5 m 4 sec
Reputation Power: 2
Quote:
Originally Posted by degsy
If you have a Micorsoft Access database then you really need to remove read permissions for it or the folder it is in.

This will deny browsers permission to open the file.


You can remove read permission to files/folders from IIS.

Another option is to move the database into a folder outside of the webroot.

e.g.
Your website is on the server is at
C:\Inetpub\

The webroot (where the html/asp scirpts/images etc) is at
C:\Inetpub\wwwroot

You could have your database at
C:\Inetpub\Data




For the content management, make sure you know what you are allowing your users to do.
If you let them post all HTML tags then they could break their pages.
It's best to restrict them to formatting tags such as tables, headers, paragraphs, links, images, lists etc.


If you let them post all HTML then they can disrupt their pages using styles, iframes, HTML/BODY/Script/Form tags.

If you have script tags available then they could bring down the server using reloads and redirects etc.


Thanks degsy, i have moved the folder outside the root directory as suggested above. This solved the problem of people browsing to and downloading the DB.

Do you have any suggestions of how i would go about restricting the users to only "formatting tags"?

Reply With Quote
  #6  
Old December 12th, 2006, 09:14 AM
degsy degsy is offline
Contributing User
ASP Free God 2nd Plane (6000 - 6499 posts)
 
Join Date: Aug 2005
Location: North East, UK
Posts: 6,191 degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 19 h 41 m 52 sec
Reputation Power: 120
You just have to add your own custom validation to the script.

If you really want to get into it you would look into using Regular Expressions to parse the input and detect or remove invalid content.

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationWindows Security > Windows server 2003 security


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway