ZDNet UK


Skip to Main Content

ZDNet.co.uk - Winner of Best Business Website 2007
  1. Home
  2. News
  3. Blogs
  4. Reviews
  5. Jobs
  6. Resources
  7. Community
  8. My ZDNet

 

ZDNet UK RSS Feeds


Security management Toolkit

Avoiding 10 common Web-application flaws

Ronald Anthony Lewis Builder.com

Published: 19 Feb 2004 11:40 GMT

  • Email
  • Trackback
  • Clip Link
  • Print friendly
  • Post Comment

If only writing articles were as easy as testing the security of Web applications. I was recently asked to compile a list of the most common Web application security mistakes. These are the "gotchas" I usually see:

  • Blind trust of information retrieved from cookies and parameters passed in the URL
  • Unchecked input on screens
  • Pre-validation accounts
  • Unconstrained user navigation
  • Setting Web folder permissions incorrectly
  • Caching of sensitive information
  • Leaving Web server demos installed (like those loaded by default with IIS)
  • Forgetting to change default passwords on the database backend
  • Not loading security patches
  • Leaving Web administration ports enabled
  • Here's a brief description of the first five common mistakes:

    Trust but verify
    "Trust but verify" was the motto of one of my favourite bosses. This is a motto that Web application designers and programmers would do well to adopt. While cookies and URL-borne parameters make life much easier for the developer, the data passed in should always be validated.

    Many Web-based businesses learned this the hard way with the infamous "shopping cart vulnerability," which enabled cyber thieves to change prices of items placed in the shopping cart. The shopping cart was nothing more than a text-based cookie. Upon checkout, the server would total the prices for the items stored in the cookie. Imagine -- the client had total control over the prices. Worse, the server had no means of validating the data. I'm sure a lot of businesses experienced sticker shock!

    The best way to check for this is to clear all cookies, run the application, and look at the cookies written to the disk. I always look at cookie content to validate that sensitive information is not stored in cookies such as roles -- or worse, user IDs and passwords.

    Commands can equate to control
    I was once asked to look at a system that passed program controls via parameters sent in the URL. As I looked at the source code, I noticed a common thread. System-level commands were embedded in the URL as follows: "action='do something.'"

    During testing, I crafted a couple of customised URLs to see how the system handled them. Consequently, I was able to take control of the system via the commands I passed in that the system didn't anticipate: "action='cat xxx >> /etc/passwd.'"

    The long and short of it is this: if you pass parameters via the URL-bar, at least parse them for invalid and malicious content. Set some constraints for your parameters so that if an unexpected value is passed in, your application can handle it properly. This is also easy to test -- modify the address in the URL bar and see how the application handles the data.

    Next

    Previous

    1 2 3


    • Email
    • Trackback
    • Clip Link
    • Print friendlyPrint with Konica

    Did you find this article useful?
    180 out of 365 people found this useful


    Full Talkback thread

    0 comments


    Company/Topic Alerts

    Create a new alert from the list below:



    Sentry Posts Blog

    Virtual Teams: Small Business Innovati...

    Virtual Teams: Small Business Innovation Author: Eric Everson, Founder – MyMobiSafe.com As the founder of MyMobiSafe.com, I’ve found that because of our presence in the industry... More

    Post a comment

    Mobile Security and Innovation: An Ope...

    Mobile Security and Innovation: An Open Case Author: Eric Everson, Founder MyMobiSafe.com The times are changing in the mobile industry as “big wireless” in the US Markets are calling... More

    Post a comment

    Government launches new e-crime unit

    Ok, so this is outside of my main area of focus of sustainable and green tech but I do track some security issues too. I was at a meeting last week with Microsoft's security advisor... More

    Post a comment

    Featured Talkback

    In association with Intel
    It seems to me this is a burden being placed on the wrong shoulders. There is not an It system in the world that can stop an individual taking information in their heads and spewing out at the nearest undesirable third party.

    By: RonaldWilkins

    Read full story:
    Deloitte: People are still weakest security link

    DOWNLOAD

    Security Essentials

    Security Downloads

    There are masses of security suites out there for small businesses. Here's a selection to get you started

    Editor’s Rating
    1 Norton 360™
    2 AVG Anti-Virus Free Edition Rating: 10
    3 PC Tools AntiVirus Free Edition
    4 Kaspersky Internet Security

    See All Software

    In association with Symantec