Security agencies release Top 25 programming errors

 

Connecting state and local government leaders

Developers of the Top 25 list of programming errors include DHS, NSA, MITRE and the SANS Institute, and they hope to have the list included in standard contract language that would help make software developers accountable for the security of their products.

A coalition of government, academic and private-sector security organizations today released an updated version of their Top 25 list of programming errors considered to be responsible for the majority of security vulnerabilities plaguing software.

The project was managed by Mitre Corp. and the SANS Institute, but impetus came from the National Security Agency with funding from the Homeland Security Department’s National Cyber Security Division, and help from more than 30 organizations that volunteered time and effort. The list, first created last year, builds on the work done by Mitre and DHS in developing the Common Weakness Enumeration scheme, which provides a common language for identifying and discussing software errors that can create security vulnerabilities.


The List: Top 25 programming errors


“We’re trying to understand the fundamentals” of software errors, said Joe Jarzombek, director for software assurance in the DHS National Cyber Security Division. Before the CWE was developed, “we didn’t have a way of identifying explicitly exploitable software errors.”

This year’s Top 25 was selected from 41 common errors, and the list prioritizes and ranks the errors based on prevalence and severity. A set of mitigations and best practices also has been developed that addresses many of the problems. But one of the key efforts this year is to use the list as a basis for standard contract language that would require developers to test for and remediate the bugs.

“The purpose is to shift the responsibility for fixing errors to the vendor so that the vendor fixes it before it is delivered,” said Alan Paller, director of research for SANS.

New York State has produced draft procurement standards that includes errors specified in the list. Language is being developed by a working group with the state’s Cyber Security and Critical Infrastructure Coordination office and drafts will be posted at www.sans.org/appseccontract. The standards would be aimed at custom software developers who create programs under contract rather than retail vendors such as Microsoft. The goal would be to put responsibility for basic security on the vendor rather than the customer. By defining a set of minimum standards of due care, it also could help to give developers a legal safe harbor from liability.

“My guess is that the language will go through two more drafts” before it is finalized and begins showing up in government procurements, Paller said.

Use of the standardized language would be voluntary, but some security experts are not enthusiastic about tying the Top 25 list to contracts.

“There are some good points to lists like this,” said Gary McGraw, chief technology officer of Cigital and an outspoken critic of the scheme. “Making people aware that there are security bugs is good. But if you start tying this to liability and create safe harbors, I think that borders on silly and it worries me.”

McGraw last year published a list of 11 reasons why Top 10 (or Top 25) lists don’t work. The lists are too generic to fit all cases, he says, and cannot address all of the issues that need attention in managing risk.

“Instead of a popularity contest, I’d like to see some data used,” to quantify the importance of a given programming error, McGraw said.

This year’s list takes a step in that direction by ranking the 25 errors with numerical scores based on severity and prevalence. The errors, in order of importance, are:

1. CWE -79: Failure to Preserve Web Page Structure ('Cross-site Scripting').

2. CWE-89: Improper Sanitization of Special Elements used in an SQL Command ('SQL Injection').

3. CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow').

4. CWE-352: Cross-Site Request Forgery (CSRF).

5. CWE-295: Improper Access Control (Authorization).

6. CWE-807: Reliance on Untrusted Inputs in a Security Decision.

7. CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

8. CWE-434: Unrestricted Upload of File with Dangerous Type.

9. CWE-78: Improper Sanitization of Special Elements used in an OS Command ('OS Command Injection').

10. CWE-311: Missing Encryption of Sensitive Data.

11. CWE-798: Use of Hard-coded Credentials.

12. CWE-805: Buffer Access with Incorrect Length Value.

13. CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP File Inclusion').

14. CWE-129: Improper Validation of Array Index.

15. CWE-754: Improper Check for Unusual or Exceptional Conditions.

16. CWE-209: Information Exposure Through an Error Message.

17. CWE-190: Integer Overflow or Wraparound.

18. CWE-131: Incorrect Calculation of Buffer Size.

19. CWE-306: Missing Authentication for Critical Function.

20. CWE-494: Download of Code Without Integrity Check.

21. CWE-732: Incorrect Permission Assignment for Critical Resource.

22. CWE-770: Allocation of Resources Without Limits or Throttling.

23. CWE-601: URL Redirection to Untrusted Site ('Open Redirect').

24. CWE-327: Use of a Broken or Risky Cryptographic Algorithm.

25. CWE-362: Race Condition.

Despite his lack of enthusiasm for Top 25 lists, McGraw said that he believes the attention to software quality and security created by such efforts has contributed to the quality of software.

“I am optimistic we have made a lot of progress,” he said. “Ten years ago there was little attention being paid to it. Now I am aware of 58 large-scale software security initiatives by companies that produce a lot of software.”

Results are not always immediately visible, he said. “Product cycles take a long time. But if you look at Windows 7 compared to Windows 2000, things are a lot better.”

X
This website uses cookies to enhance user experience and to analyze performance and traffic on our website. We also share information about your use of our site with our social media, advertising and analytics partners. Learn More / Do Not Sell My Personal Information
Accept Cookies
X
Cookie Preferences Cookie List

Do Not Sell My Personal Information

When you visit our website, we store cookies on your browser to collect information. The information collected might relate to you, your preferences or your device, and is mostly used to make the site work as you expect it to and to provide a more personalized web experience. However, you can choose not to allow certain types of cookies, which may impact your experience of the site and the services we are able to offer. Click on the different category headings to find out more and change our default settings according to your preference. You cannot opt-out of our First Party Strictly Necessary Cookies as they are deployed in order to ensure the proper functioning of our website (such as prompting the cookie banner and remembering your settings, to log into your account, to redirect you when you log out, etc.). For more information about the First and Third Party Cookies used please follow this link.

Allow All Cookies

Manage Consent Preferences

Strictly Necessary Cookies - Always Active

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data, Targeting & Social Media Cookies

Under the California Consumer Privacy Act, you have the right to opt-out of the sale of your personal information to third parties. These cookies collect information for analytics and to personalize your experience with targeted ads. You may exercise your right to opt out of the sale of personal information by using this toggle switch. If you opt out we will not be able to offer you personalised ads and will not hand over your personal information to any third parties. Additionally, you may contact our legal department for further clarification about your rights as a California consumer by using this Exercise My Rights link

If you have enabled privacy controls on your browser (such as a plugin), we have to take that as a valid request to opt-out. Therefore we would not be able to track your activity through the web. This may affect our ability to personalize ads according to your preferences.

Targeting cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Social media cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.

If you want to opt out of all of our lead reports and lists, please submit a privacy request at our Do Not Sell page.

Save Settings
Cookie Preferences Cookie List

Cookie List

A cookie is a small piece of data (text file) that a website – when visited by a user – asks your browser to store on your device in order to remember information about you, such as your language preference or login information. Those cookies are set by us and called first-party cookies. We also use third-party cookies – which are cookies from a domain different than the domain of the website you are visiting – for our advertising and marketing efforts. More specifically, we use cookies and other tracking technologies for the following purposes:

Strictly Necessary Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Functional Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Performance Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Social Media Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Targeting Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.