Security
  Home arrow Security arrow Page 3 - Hacking Your Own Site
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Actuate Whitepapers 
VeriSign Whitepapers 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
SECURITY

Hacking Your Own Site
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 192
    2004-08-23

    Table of Contents:
  • Hacking Your Own Site
  • Website Vulnerabilities
  • Solutions to Website Vulnerabilities

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Hacking Your Own Site - Solutions to Website Vulnerabilities


    (Page 3 of 3 )

    Closely related to hidden field manipulation, buffer overruns are engineered in a similar fashion; any text input field with a maxchar=n property can be used to potentially shut down the server. The source code can be accessed, and the maxchar property removed. The hacker then enters, say, 10,000 ones and submits the form. What happens next? The server shuts down, taking your business with it. A semi-secure solution to this would again be to encrypt any HTML form source. A better solution would be to allocate memory dynamically, therefore not presetting the memory buffer to a certain size, or writing a function that checks the length of the input before passing the results to the server.  If the input exceeds the memory allocation, simply pass back a NULL value.

    A simple, yet effective trick in deterring hackers is to configure your web server to hand out customised error 404 pages with a status of 200 when a resource is not found.  Most genuine users will not even notice, and a hacker using software to scan for available resources will think they have stumbled across a gold mine.  When the hacker goes to check, they will find that they have been duped and hopefully see examining your site further as a waste of time.  This could be seen as hacking hackers or the hacker becoming the hacked...

    Netcat

    You could take this one step further and use an old UNIX application called netcat to crash anyone who attempts to hack your site. Netcat makes and accepts TCP connections, but it can be used by a hacker for many things, including obtaining remote access to a shell, port-scanning and even hi-jacking services and bypassing firewalls. It can also be used to monitor ports and flood suspicious requests, similar to a buffer over-run, by using it to pretend you are running a service that you are not and using the 'yes' command when someone tries to exploit that service. Netcat is an extremely powerful application in itself and is usually part of any self-respecting hackers' tool-kit. Morally, you could look at this as hitting them back first.

    Conclusion
     
    I hope that I have drawn your attention to some of the more basic but often overlooked entry-points that a hacker may use to gain entry to your web applications, and highlighted the need for basic auditing of the security enforcement of your site. 

    This article is not intended to be a complete solution for defense against hacking, but more the starting point for your considerations. No site is completely hack-proof, but there are few sites that really need to be. As a web developer ,your main security concern is first to assess how much security you will actually need. The more secure you need to be, the more your aims will move toward hiring the services of a professional security solution. 


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · are you joking? 'netcat to crash their computer'?? lmao.
       · soundsl ike an article written by someone who did a quick intro to security tutorial...
       · Methinks if you implement the netcat and the"200 404" you will just interest a real...
       · No offence taken (well not much anyway), firstly tho, where in the article do I say...
       · the maxchar one was too simple,as (i think) anyone who knows html should know that...
       · Its a good point and well made. Apart from the section about netcat (which, as I...
       · Just in case anyone hadn't heard of this group before:...
       · Thanks for the overview of security. I dont care if some are so far into thier own...
       · I'm glad that some people at least are taking the article for what it is. It's a...
       · I think it was a good introductory article on web security.
       · "I know a little bit less about hacking and preventing hacking than a lot of people...
       · (i don't know any in english because i use chinese program)The worst Kind, tho we...
       · (i don't know any in english because i use chinese program) to shut down all your...
       · What do you have against hackers? some are very good people.my son is a hacker and...
       · i think he knows what hes talking about but he dosen't know how to describe it in...
       · can someone help me find a good & helpful site describing the vulnerabilities of a...
       · What makes you think your site is being hacked? Do you have a database connected to...
       · yes i do have databases and using classic asp. got a few forms on the site, as...
       · although the first comment by anonymous lozah was over a year ago i would like to...
       · <a href="{link1}">{text1}</a>, <a href="{link2}">{text2}</a>
       · Netcat CAN crash your computer(s).You can use it this way or the other.Your...
       · give him a break hes just trying to help people ot. damn haters
       · He says tons of times that not all hackers are bad, and what the good ones do. You...
       · ei... can u give me sites that teaches how to hack a computer...all about...
       · start at the hack faq (http://www.nmrc.org/pub/faq/hackfaq/index.html)
     

       

    SECURITY ARTICLES

    - An Epilogue to Cryptography
    - A Sequel to Cryptography
    - An Introduction to Cryptography
    - Security Overview
    - Network Security Assessment
    - Firewalls
    - What’s behind the curtain? Part II
    - What’s behind the curtain? Part I
    - Vectors
    - PKI: Looking at the Risks
    - A Quick Look at Cross Site Scripting
    - PKI Architectures: How to Choose One
    - Trust, Access Control, and Rights for Web Se...
    - Basic Concepts of Web Services Security
    - Safeguarding the Identity and Integrity of X...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway