Read the Beforeitsnews.com story here. Advertise at Before It's News here.
Profile image
Story Views
Now:
Last hour:
Last 24 hours:
Total:

Protecting Against SQL Attacks

% of readers think this story is Fact. Add your two cents.


Businesses have two primary options when building a defense against SQL attacks: prevention and detection. Code can be developed in a way that defeats SQL injection, and developers should take steps when writing code to avoid SQL injection flaws. At the same time, companies use a wide range of 3ed party applications. Avoiding SQL injection on all fronts is virtually impossible, thus businesses need a robust strategy for identifying and guarding against attackers.

Preventing Attacks
The Open Source Web Applications Security Project provides a helpful SQL Injection Prevention Cheat Sheet. They offer key key defenses developers may employ when preparing code.

1. Use Prepared Statement (parameterized queries) instead of dynamic queries. Prepared statements require developer to define all SQL code initially, and then pass in each parameter to the query later. By developing code based on prepared statements, the database can distinguish between code and data.

2. Use Stored Procedures. Similar to prepared statements, stored procdeures require defining SQL code at the outset. While prepared statements store all the SQL code stays within the application, stored procedures are defined and stored in the database and called from the application. Stored procedures offer pluses and minuses, so you company must decide which model is best for you.

3. Escape User Supplied Input. For companies who are hesitant to rewrite dynamic queries because it might adversely impact your application performance, you can choose to escape all user supplied input before inserting it into a query. This is not as safe as the first two options but may be the best option if you are unable to rewrite applications.

Detecting Attacks
Most companies used multiple 3rd applications, making it is almost impossible to avoid all SQL injection attacks. Thus, it is important to use detection and evasion strategies to avoid attack. Imperva’s “Hacker Intelligence Initiative, Monthly Trend Report #4” offers three helpful techniques for defeating SQL injection attacks in real time.

1. Detect SQL injection attack. Detecting SQLi must normalize the inspected input to avoid evasion attempts. The Open Web Application Security Project provide a helpful kit for testing for SQL injection.

2. Identify access patterns of automated tools. Since SQL injection attacks are primarily automated attacks, you can set tools in place that monitor and log attempts by automatic clients.

3. Create and deploy a blacklist of hosts that initiated SQLi attacks. As you log and identify attacks, you can create a blacklist that identifies and stops attacks at the outset. You might also use tools that include regular updating of attack list.

2012-08-04 22:46:22

Source: http://blog.integracon.com/?p=955



Before It’s News® is a community of individuals who report on what’s going on around them, from all around the world.

Anyone can join.
Anyone can contribute.
Anyone can become informed about their world.

"United We Stand" Click Here To Create Your Personal Citizen Journalist Account Today, Be Sure To Invite Your Friends.

Please Help Support BeforeitsNews by trying our Natural Health Products below!


Order by Phone at 888-809-8385 or online at https://mitocopper.com M - F 9am to 5pm EST

Order by Phone at 866-388-7003 or online at https://www.herbanomic.com M - F 9am to 5pm EST

Order by Phone at 866-388-7003 or online at https://www.herbanomics.com M - F 9am to 5pm EST


Humic & Fulvic Trace Minerals Complex - Nature's most important supplement! Vivid Dreams again!

HNEX HydroNano EXtracellular Water - Improve immune system health and reduce inflammation.

Ultimate Clinical Potency Curcumin - Natural pain relief, reduce inflammation and so much more.

MitoCopper - Bioavailable Copper destroys pathogens and gives you more energy. (See Blood Video)

Oxy Powder - Natural Colon Cleanser!  Cleans out toxic buildup with oxygen!

Nascent Iodine - Promotes detoxification, mental focus and thyroid health.

Smart Meter Cover -  Reduces Smart Meter radiation by 96%! (See Video).

Report abuse

    Comments

    Your Comments
    Question   Razz  Sad   Evil  Exclaim  Smile  Redface  Biggrin  Surprised  Eek   Confused   Cool  LOL   Mad   Twisted  Rolleyes   Wink  Idea  Arrow  Neutral  Cry   Mr. Green

    MOST RECENT
    Load more ...

    SignUp

    Login

    Newsletter

    Email this story
    Email this story

    If you really want to ban this commenter, please write down the reason:

    If you really want to disable all recommended stories, click on OK button. After that, you will be redirect to your options page.