Sales and Marketing TechnologiesFor Orlando web design services Call 407.682.2222
Search
Do you want Breakthrough Results? Let us help you.Click to boost online marketing results
Click to boost online marketing results! Click to sign up for our FREE e-Newsletter
Web Development Custom Web Development Orlando Web Design E-commerce Solutions Web Consulting Web Maintenance Web Hosting CMS Solutions
Internet Marketing Internet Marketing Consulting Local Search Marketing Pay Per Click Management Reputation Management SEO Services Social Media Marketing Video Marketing
Case Studies Miami Children's Hospital Reflectx Services Dinnerware Depot Aschacher Family Dentistry
About SMT Altamonte Springs Office
Internet Marketing Blog Contact Us Refer a Client Employment
Blog

Protect your website from SQL Injection Attacks

9/16/2008
Bookmark and Share

(two of two articles)
This article is a little more technical than the first article, but I kept it as simple-worded as possible.

Is your website vulnerable? Very possible. You could do a few quick checks, but explaining how to write SQL Injection code is out of the scope of this blog. Websites written using Classic ASP language, PHP, AJAX, and other website languages are vulnerable, but that doesn't leave .NET websites in the clear. Any website that gives full access to the SQL database is vulnerable. That gives the hacker full range at manipulating the information in your database.

So, what are some ways to protect against SQL Injection?
Below are some recommendations on how to protect your database from SQL Injection Attacks. They should all be done, but some can be done independently or not at all.

  1. One way is to take an inventory of all dynamically driven pages. If it uses or talks to a database, it could be vulnerable. More investigation in the programming would identify if it is the extent of it vulnerability. There are some inexpensive automated tools out there that will identify the holes you may have in your website. For example Acunetix Web Vulnerability Scanner has a free version.
  2. Validate all data that gets passed to the database. For example, if the web page expects an integer data type, check to make sure a hacker is not trying to pass in a line of hacking code and only accept an integer value.
  3. Eliminate any inline SQL that is used on these pages and change them to parameter based stored procedures. When you use a stored procedure to talk to the database and use parameter objects, the data that gets passed to the database must be the right type. Stored procedures by themselves are not the answer alone.
  4. Limit the website login to the database to only run the stored procedures needed for the website. DO NOT give the website "dbo" access to the database.
  5. One way for hackers to grab the sensitive information is by viewing any errors from the website that their hacking attempts display. It is a way to grab sensitive data, like credit card number. Use a server 500 redirect page to redirect and SQL errors returned so they are not shown to the hacker.
  6. A recent widespread attack across the glob used access to the sys objects in the database to break in. So, deny access to the sys objects in the database to the web user.
  7. Never store sensitive information in clear-text within a database. Encrypt your sensitive passwords, credit card data, social security numbers, and other private information.
  8. There are more advanced articles that explain these techniques and explain some of the terms used above in more detail. But I wanted to keep this article simple and to the point.
    You can read more at ScottGu's Blog Tip/Trick: Guard Against SQL Injection Attacks

Joanna Smith 9/16/2008

Add your comments:

Items in bold indicate required information.

Name :
 
Email :
 
Comments :
 
 
Latest Posts

Categories
Blogging (2)
Google (5)
Local (4)
Website Design (4)
Website Functionality (5)
Internet Marketing (92)
Company News (6)
Email Marketing (8)
General Marketing (12)
Google Android (2)
Local Search (12)
Mobile Search (3)
Offline Marketing (2)
PPC (13)
RSS (5)
Search Engine Optimization (42)
Social Media (23)
Social Networking (19)
General Programming (2)
SQL Programming (2)
Video Search Engine Optimization (3)

Archives

Blogroll
Melbourne Web Design
Orlando Search Marketing
Lakeland Web Design
ASP.NET CMS

Feeds



Newsletter Signup
Enter your email address below and receive special offers.
From Our Customers
Sales and Marketing Technologies have two main strengths. They have been tremendous in helping us improve our organic and paid search programs, driving more and more traffic to our Web site every year. Their other strength has been in design and programming of the site to perform in a way that enables conversion. A bonus for us is also their strength in understanding our particular industry based on their experience.”

Phillip Barnes - Wedgewood Pharmacy, Direct Marketing Specialist
Our Work    |    Web Development    |    Internet Marketing    |    Case Studies    |    FAQ    |    About SMT    |    Press Room
Employment    |    Refer a Client    |    Contact Us    |    Internet Marketing Blog    |    Privacy Policy    |    Site Map

Sales & Marketing Technologies
Altamonte Springs: 220 E. Central Parkway, Suite 1010 • Altamonte Springs, FL 32701407-682-2222

© 2012, Sales & Marketing Technologies, Ltd. All rights reserved.
Website Design FL & Search Engine Optimization Services