Saturday, January 24, 2009

coding errors

interesting article from ZDNet

Top 25 'most dangerous' coding errors revealed

By Tom Espiner, ZDNet UK
Wednesday, January 14, 2009 10:18 AM

Security experts from U.S. government agencies, multinational companies and academia have released a list of what they consider to be the 25 most critical errors made while coding software.

Participants from more than 30 organizations worked together to agree on the 25 "most dangerous" errors, the SANS Institute said in a statement on Monday. They included experts from the U.S. National Security Agency, the U.S. Computer Emergency Response Team (US-Cert), Mitre and the Sans Institute, as well as from Microsoft, Apple and Oracle.

The list was released so programmers can check their code for the most common errors that produce security vulnerabilities.

"[The list] is going to change the way organizations buy software, right away," Alan Paller, director of the Sans Institute, told ZDNet Asia sister's site ZDNet UK.

The top-two coding errors were improper input validation and improper encoding or escaping of output, according to Steven Christey of Mitre, who said those particular errors "earned the top rating for good reason".

"In 2008, hundreds of thousands of innocent, and generally trusted, Web pages were modified to serve malware by automated programs that burrowed into databases using SQL injection," Christey said in a statement. "The attack worked because countless programmers made the exact same [input validation and improper output encoding] mistakes in their software."

The full list of coding errors, and information on how to fix them, is available from the Sans Institute Web site.