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:
  #1  
Old January 3rd, 2007, 12:17 PM
Slap_Shot_12 Slap_Shot_12 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 31 Slap_Shot_12 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 11 m 27 sec
Reputation Power: 6
Help with ASP and SQL security.

I'm looking for some general security help and have to admit I'm at a bit of a loss. I've been reading through this forum for a couple hours now and see a number of different threads on these issues, but nowhere can I find someplace where relative ASP/SQL newbies can get some answers.

I build small ASP CMS systems using DreamWeaver (including their login script) and I'm having problems with sites being hacked. The sites are hosted by a hosting company so I don't think the actual server is the issue, but more likely is with some problems in the code. The problem is that people are somehow able to bypass the login page and actually change the database containing the site's information (either by adding new records, modifying existing ones or deleting records compoletely).

I've seen the threads on SQL injection and think that might be the problem, but I guess I'm looking for a couple things:
- how can I find out how people are bypassing the login page?
- what changes do I need to make to the code to fix it?

I'm not averse to a lot of reading if needed, but I don't have any idea even where I should start so any suggestions would be greatly apprecitated.

Reply With Quote
  #2  
Old January 3rd, 2007, 03:22 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 5 Days 9 h 9 m 36 sec
Reputation Power: 182
Moved to the windows security forum.

You should start by reviewing the tons of documentation at the MSDN library and Microsoft Technet. Then do some google searches for asp security and you'll have thousands of returns.

Just because your seeing a website being hacked doesn't mean the actual intrusion came via the web. There could be a disgruntled employee at the server site, an internal LAN hack via the server network, or any of a lot of other mechanisms that might compromise a windows server.

You might start with some thorough reviews of your server event logs, and make sure appropriate event auditing is enabled, and look at the web server logs. Make sure your server is firewalled, has a current antivirus/antispyware running, and so forth.
Comments on this post
Slap_Shot_12 disagrees!
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #3  
Old January 9th, 2007, 04:47 PM
Slap_Shot_12 Slap_Shot_12 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 31 Slap_Shot_12 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 11 m 27 sec
Reputation Power: 6
This isn't a Windows question. If its a question of security on the server, I'm just plain out of luck.

What I'm looking for is how to lock down my ASP and SQL code to make sure that's not where the problem lies. Any suggestions?

Reply With Quote
  #4  
Old January 9th, 2007, 05:44 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 13,239 mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Day 20 h 18 m 30 sec
Reputation Power: 2037
it's sounds like an issue of SQL Injection. run a google search on that and read some info.
__________________
Come JOIN the party!!!

Quote of the Month:
Pretension: The downside of being better than everyone else is that people tend to assume you're pretentious.

Questions to Ponder:
You can be overwhelmed and underwhelmed, but why can't you be simply whelmed?

iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
copyright© 2008 sbenj69

Reply With Quote
  #5  
Old January 9th, 2007, 09:14 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 5 Days 9 h 9 m 36 sec
Reputation Power: 182
Quote:
Slap_Shot_12 disagrees!

Oh well, good luck on getting your problem resolved anyway ...

Reply With Quote
  #6  
Old January 10th, 2007, 06: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: 122
The dreamweaver login scripts are light on validation, but they include some sql injection prevention code, well at least a replace for single quotes which is a big issue.

Is your login checking against text fields? If so the replace should be proficient against sql injections.
If there is a number field check then you may want to add some validation
__________________
CyberTechHelp

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationWindows Security > Help with ASP and SQL 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





 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

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





© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek