25 Most Dangerous Programming Errors.
Posted on January 13th, 2009 by Shibu BasheerThe US National Security Agency (SANS - www.sans.org) had recently put out a list of top 25 most dangerous programming errors that could expose your applications to cyber criminals.
Most of them can be prevented by following best practices in coding and design. Every development team should cross check their coding practices to ensure most basic of these errors are avoided. Here is the list not in order of importance.
- Improper Input Validation
- Improper Encoding or Escaping of Output
- Failure to Preserve SQL Query Structure
- Failure to Preserve Web Page Structure
- Failure to Preserve OS Command Structure
- Cleartext Transmission of Sensitive Information
- Cross-Site Request Forgery
- Race Condition
- Error Message Information Leak
- Failure to Constrain Operations within the Bounds of a Memory Buffer
- External Control of Critical State Data
- External Control of File Name or Path
- Untrusted Search Path
- Failure to Control Generation of Code
- Download of Code Without Integrity Check
- Improper Resource Shutdown or Release
- Improper Initialization
- Incorrect Calculation
- Improper Access Control
- Use of a Broken or Risky Cryptographic Algorithm
- Hard-Coded Password
- Insecure Permission Assignment for Critical Resource
- Use of Insufficiently Random Values
- Execution with Unnecessary Privileges
- Client-Side Enforcement of Server-Side Security
Source : SANS Institute, http://www.sans.org/top25errors/
Tags: programming, security
