gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
76793 Posts in 13502 Topics by 1651 Members - Latest Member: Arnold99 November 25, 2024, 08:41:51 pm
*
gfx*gfx
gfx
WinMX World :: Forum  |  Discussion  |  WinMx World News  |  Dangerous coding errors revealed
gfx
gfxgfx
 

Author Topic: Dangerous coding errors revealed  (Read 679 times)

0 Members and 1 Guest are viewing this topic.

Offline DaBees-Knees

  • WMW Team
  • *****
Dangerous coding errors revealed
« on: January 14, 2009, 01:04:17 am »
http://news.bbc.co.uk/1/hi/technology/7824939.stm

Quote
The US National Security Agency has helped put together a list of the world's most dangerous coding mistakes.
The 25 entry list contains errors that can lead to security holes or vulnerable areas that can be targeted by cyber criminals.
Experts say many of these errors are not well understood by programmers. According to the SANS Institute in Maryland, just two of the errors led to more than 1.5m web site security breaches during 2008. It is thought that this is the first time the industry has reached agreement on the worst things that can creep into software as it is being written. More than 30 organisations, including the US National Security Agency, the Department of Homeland Security, Microsoft, and Symantec published the document.
   
THE TOP 25 MOST DANGEROUS PROGRAMMING ERRORS
CWE-20:Improper Input Validation
CWE-116:Improper Encoding or Escaping of Output
CWE-89:Failure to Preserve SQL Query Structure
CWE-79:Failure to Preserve Web Page Structure
CWE-78:Failure to Preserve OS Command Structure
CWE-319:Cleartext Transmission of Sensitive Information
CWE-352:Cross-Site Request Forgery
CWE-362:Race Condition
CWE-209:Error Message Information Leak
CWE-119:Failure to Constrain Operations within the Bounds of a Memory Buffer
CWE-642:External Control of Critical State Data
CWE-73:External Control of File Name or Path
CWE-426:Untrusted Search Path
CWE-94:Failure to Control Generation of Code
CWE-494:Download of Code Without Integrity Check
CWE-404:Improper Resource Shutdown or Release
CWE-665:Improper Initialization
CWE-682:Incorrect Calculation
CWE-285:Improper Access Control
CWE-327:Use of a Broken or Risky Cryptographic Algorithm
CWE-259:Hard-Coded Password
CWE-732:Insecure Permission Assignment for Critical Resource
CWE-330:Use of Insufficiently Random Values
CWE-250:Execution with Unnecessary Privileges
CWE-602:Client-Side Enforcement of Server-Side Security
Source: SANS Institute

"The top 25 list gives developers a minimum set of coding errors that must be eradicated before software is used by customers," said Chris Wysopal, chief technology officer with Veracode. "There appears to be broad agreement on the programming errors," says SANS director, Mason Brown, "Now it is time to fix them." "We need to make sure every programmer knows how to write code that is free of the top 25 errors." "Then we need to make sure every programming team has processes in place to find and fix these problems [in existing code] and has the tools needed to verify their code is as free of these errors," he said. Patrick Lincoln, director of the Computer Science Laboratory at SRI International, told the BBC that if programmers prevented these errors appearing in their code, it would deter the majority of hackers. "This list is primarily for people who have first responsibility for designing a system. Veteran programmers have probably learnt the hard way whereas a brand new programmer will be making more basic errors." "The real dedicated serial attacker will probably find a way in even if all these errors were removed. But a high school hacker with malicious intent - ankle-biters if you will - would be deterred from breaking in." Previously, most advice has focused on vulnerabilities that can result from programming errors. The top 25 list examines the actual programming errors themselves.

I thought long and hard before posting this as it's possibly only of any great interest to those that are writting code, but in the end decided that it was also of general interest.

Offline White Stripes

  • Core
  • *****
  • ***
  • Je suis aimé
Re: Dangerous coding errors revealed
« Reply #1 on: January 14, 2009, 02:29:31 am »
CWE-327:Use of a Broken or Risky Cryptographic Algorithm

like SSL or WEP?

CWE-20:Improper Input Validation

remember the story of the navy smartship that was left dead in the water cos of a divide by zero error that crashed windows NT?

CWE-119:Failure to Constrain Operations within the Bounds of a Memory Buffer

nearly every IIS and frontpage bug in exsistance....

CWE-73:External Control of File Name or Path

IIS / frontpage + cmd.exe

CWE-259:Hard-Coded Password

that oh so handy dandy 'shareware'

WinMX World :: Forum  |  Discussion  |  WinMx World News  |  Dangerous coding errors revealed
 

gfxgfx
gfx
©2005-2024 WinMXWorld.com. All Rights Reserved.
SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
Page created in 0.008 seconds with 22 queries.
Helios Multi © Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!