• Home

Logo

Navigation
  • Home
  • Articles
    • Content Writing
    • Design
    • General
    • Internet Marketing
    • Social Media
    • Tools and Tips
    • Usability
    • Web Hosting Articles
  • Tutorials
    • AJAX Tutorials
    • ASP Tutorials
    • C# Tutorials
    • CGI and Perl Tutorials
    • CSS Tutorials
    • Flash Tutorials
    • HTML Tutorials
    • Illustrator Tutorials
    • Java Tutorials
    • JavaScript Tutorials
    • Linux Tutorials
    • Miscellaneous Tutorials
    • MySQL Tutorials
    • Photoshop Tutorials
    • PHP Tutorials
    • Python Tutorials
    • Wireless Tutorials
    • WordPress Tutorials
    • XML Tutorials
  • Scripts
    • AJAX Scripts
    • ASP Scripts
    • ASP.NET Scripts
    • CGI & Perl Scripts
    • Flash Scripts
    • Java Scripts
    • JavaScript Scripts
    • PHP Scripts
    • Python Scripts
    • Remotely Hosted
    • Tools and Utilities
    • XML Scripts
  • Answers
  • Online Services
  • Tools

And the winner of the most important security tip competition is…

By Akash Mehta | on Feb 12, 2008 | 0 Comment
General PHP Tutorials
  • Tweet
  • Share
  • Tweet
  • Share

When it comes to PHP security, you often think of input filtering, SQL injection prevention, XSS in user submitted content and so on. Well, forget about that. They’re all pretty trivial compared to what I feel is by far the most important security issue of any web application. Read on to find out why.

So, the winner of the security-tip-that-will-make-or-break-your-life is…

Keep your systems updated.

You might be thinking, what does this have to do with security? Or maybe, “sure, my systems are up to date.” When it comes to developing PHP applications, even some of the most security conscious developers will entirely miss the deployment environment.

Yet, the most important part of any PHP web application’s security is keeping your systems up to date. Having your database tables truncated is nothing compared to having all your user data dumped to an SQL file which is then taken off-site through your very own sshd. See, your web application is just that – a web application. Under that you’ve got Apache, MySQL and various other servers; various other utilities running on top of those servers as well. And you don’t control any of these; you don’t know how they work, chances are you’ve never looked at the source of any of them.

So, what if a security vulnerability is found in one of these underlying systems? Often these systems, working much closer to the machine, pose a far greater security threat than the limited access available via a compromised web application. Sure, somebody might manage to run an SQL query through your database and view most of the result (although they really shouldn’t be able to).

But what if they can dump every single database on your database server via a shell? Take webmin, for instance, the web-based server control panel. Last I checked, a vulnerability in webmin, with control over pretty much your entire server, was a whole lot more serious. With a shell console, which could be used to read your app config files for database passwords, someone could potentially get hold of all your databases, log files and application code. Just a tad more serious than database query access. </sarcasm>

Now, the best way to keep on top of potential vulnerabilities in your underlying systems is with updates. Sometimes, however, you need to go a little further. Try sla.ckers.org for some vulnerability postings on web apps literally as they happen; seclists.org is probably a better destination for your underlying systems. Subscribe to the lists at seclists; maybe setup a spare gmail account and forward anything with ‘Apache’, ‘PHP’, ‘MySQL’ and so on to your main inbox. Watching the web is also a good idea; major security vulnerabilities generally make it to the front page of Digg.

In summary, keep on top of the systems you rely on. They may be reasonably stable, but on the odd occasion that they have a vulnerability, you could be in serious trouble.

Share this story:
  • tweet

Tags: php tipsPHP Tutorialssecurity

Author Description

No Responses to “And the winner of the most important security tip competition is…”

You must be logged in to post a comment.

Connect With Us

RSSSubscribe 0Followers 495Likes
  • Popular
  • Recent
  • Comments
  • Creating Energy Spheres in Photoshop

    Apr 15, 2008 - 96 Comments
  • Easy Screen Scraping in PHP with the Simple HTML DOM Library

    Aug 6, 2008 - 20 Comments
  • Calculating date difference more precisely in PHP

    Mar 7, 2008 - 13 Comments
  • When Does Hosting Your Website in the Cloud Make Sense?

    Oct 8, 2010 - 2 Comments
  • Fun with the Microsoft Managed Extensibility Framework Part 2

    Oct 6, 2010 - 0 Comment
  • Fun with the Microsoft Managed Extensibility Framework Part 1

    Sep 22, 2010 - 0 Comment
  • Website Management on the go with the iPad

    I appreciated your post, but I was looking for something I didn't...
    November 24, 2012 - drmoderator
  • Creating Energy Spheres in Photoshop

    I'm a little stuck down here especially at the step of creating the...
    November 23, 2012 - sarah
  • Running background processes in PHP

    Can you give an example? As see it, you can use this only when you...
    November 16, 2012 - Shaked Klein Orbach
Developer Resources
  • Tutorial Directory
  • Learn HTML
  • Learn PHP
  • Learn CSS
  • Learn AJAX
  • Learn JavaScript
  • Learn Pear
  • White Papers
  • Resources
    • NetVisits Web Directory
    • Realtor Pixels
    • Answers On The Run
    • Ask A Geek
  • Recent Posts

    • When Does Hosting Your Website in the Cloud Make Sense?
    • Fun with the Microsoft Managed Extensibility Framework Part 2
    • Fun with the Microsoft Managed Extensibility Framework Part 1
    • Website Management on the go with the iPad
    • Code Contracts in C# 4.0 – Part 1

    Calendar

    June 2013
    M T W T F S S
    « Oct    
     12
    3456789
    10111213141516
    17181920212223
    24252627282930

    Recent Comments

    • drmoderator on Website Management on the go with the iPad
    • sarah on Creating Energy Spheres in Photoshop
    • Shaked Klein Orbach on Running background processes in PHP
    • Thomas Cuvillier on How To Upload Files Using PHP
    • rizal aditya on Extracting text from Word Documents via PHP and COM
    • Home
    © 2003 - 2013 DeveloperTutorials.com. All Rights Reserved. Privacy Policy.