 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Developer Drive Blog: How to Prevent a SQL Injection Attack
by Chris Cornutt October 14, 2011 @ 09:25:12
From the Developer Drive blog there's a recent post with some suggestions on how you can help to prevent SQL injections in your PHP application and make it that much harder for would-be attackers to do what they shouldn't.
Why do SQL injections happen so often?
The shortest answer is that SQL injections are so popular because of poor programming. Hackers know about the potential of a successful SQL injection attack and they search for vulnerabilities. Unfortunately, very often they don't have to search hard - vulnerabilities pop right in their face. [...] The good news is that fortunately, SQL injections are also relatively easy to prevent.
They list nine easy things you can do to help prevent the attacks:
- Patch your SQL server regularly
- Limit the use of dynamic queries
- Escape user input
- Store database credentials in a separate file
- Use the principle of least privilege
- Turn magic quotes off
- Disable shells
- Disable any other DB functionality you don't need
- Test your code
voice your opinion now!
sqlinjection security sql prevent tips attack
Advanced PHP Tutorial: 7 Useful functions to tighten the security in PHP
by Chris Cornutt October 08, 2010 @ 12:28:38
On the Advanced PHP Tutorial site there's a recent post that suggests a few useful functions that can get you started on security and protecting your application from possible exploits. These aren't the only way to prevent these issues, but they're a start in the right direction.
Security is a very important aspect of programming. In PHP, there are few useful functions which is very handy for preventing your website from various attacks like SQL Injection Attack , XSS attack etc.Let's check few useful functions available in PHP to tighten the security in your project. But note that this is not a complete list, it just list of functions which I found useful for using in your project.
The functions include mysql_real_escape_string for database query handling, htmlentities to filter user input for HTML and two hashing functions to create hashes you can validate from - md5 and sha1.
voice your opinion now!
security function xss sqlinjection application
NETTUTS.com: Can You Hack Your Own Site? A Look at Some Essential Security Considerations
by Chris Cornutt July 22, 2008 @ 12:57:07
On the NETTUTS.com website, there's a great article with some "essential security considerations" that you can use to see just how hackable your site could be.
This article walks through the brainstorming stage of planning for what is in this instance, a hypothetical user-centric web application. Although you won't be left with a complete project '" nor a market ready framework, my hope is that each of you, when faced with future workloads, may muse on the better practices described. So, without further ado...Are you sitting comfortably?
The tutorial is broken up into a few sections based around an example with a few points of failure (about book information). They work through the thought process behind the code, using the $_REQUEST variables correctly, preventing SQL injections, filtering the HTML output and a sample code download for you to see how it's all tied together.
voice your opinion now!
security consideration hack tutorial sqlinjection filter output input
|
Community Events
Don't see your event here? Let us know!
|