Error correcting software from the beginning

 

Connecting state and local government leaders

Top 25 list of coding errors could be used to require more secure, reliable software from vendors and developers.

A coalition of government, academic and private-sector security organizations have announced a list of the top 25 programming errors that are responsible for the majority of security vulnerabilities plaguing applications.

The list, which is available online, represents a consensus of the most significant errors on which the IT community should concentrate to improve the security and reliability of software. Developers hope the list will be used by universities in programming curriculum, by vendors and developers as a standard for proper coding, and as a specification when acquiring software.

The initiative was managed by the Sans Institute and Mitre Corp., with support from the National Security Agency and the Homeland Security Department’s National Cyber Security Division.

Konrad Vesey of NSA’s Information Assurance Directorate said the list will help shift software security away from a reactive posture by system administrators, and make it more proactive by putting more responsibility with software developers.

"When consumers see that most vulnerabilities are caused by a mere twenty-five weaknesses, a new standard for due diligence in product development is likely to emerge,” Vesey said. “The vocabulary of software security is expanded from what the vendor tested against to what the vendor built in."

Contributors to the program include major software and security companies, along with universities, independent organizations and individuals, as well as U.S. and foreign government agencies.

The errors included in the list are not newly discovered; they are drawn from the Common Weakness Enumeration database, a standardized listing of more than 700 recognized programming weaknesses that is maintained by Mitre with support from DHS.

A weakness is an error or condition in software code that, under certain circumstances, can create a vulnerability that can be exploited maliciously. Automated tools exist to look for many of these weaknesses, but finding and eliminating them is not a simple task.

“No tool can correctly determine in every conceivable case whether or not a piece of code has a vulnerability,” the National Institute of Standards and Technology wrote in Special Publication 500-268 when it developed specifications for source code analysis tools. “A weakness may result in a vulnerability in one environment, but not in another.” There also are mathematical and practical limits to the ability of algorithms to detect weaknesses in software, and not all weaknesses result in vulnerabilities.

NIST specified a list of 21 source-code weaknesses from the CWE database that source code analysis tools should be able to identify. There is little overlap between that list and the top 25 list released today by Sans and Mitre. Only three weaknesses appear on both lists.

Developers of the list, which will be updated regularly, expect that it will be used as a standard for evaluating coding and software development. Customers could use it as a specification in acquiring software from vendors, requiring that the software be certified free of the errors; testing and analysis tools used by programmers and customers could be designed to focus on the errors; colleges could teach against them in programming courses, and employers could require an understanding of them by their programmers and application developers.

The top 25 errors fall into three categories: Insecure interaction between components, with nine errors; risky resource management, also with nine errors; and porous defenses, with seven errors. Full details of the weaknesses are available online from Sans and Mitre. Those included in the list, along with their CWE identification, are:

Insecure Interaction Between Components:

  • Improper Input Validation (CWE-20)
  • Improper Encoding or Escaping of Output (CWE-116)
  • Failure to Preserve SQL Query Structure, or SQL Injection (CWE-89)
  • Failure to Preserve Web Page Structure, or Cross-site Scripting (CWE-79)
  • Failure to Preserve OS Command Structure, or OS Command Injection (CWE-78)
  • Cleartext Transmission of Sensitive Information (CWE-319)
  • Cross-site Request Forgery (CWE-352)
  • Race Condition (CWE-362)
  •  Error Message Information Leak (CWE-209)

Risky Resource Management:

  • Failure to Constrain Operations Within the Bounds of a Memory Buffer (CWE-119)
  • External Control of Critical State Data (CWE-642)
  • External Control of File Name or Path (CWE-73)
  • Untrusted Search Path (CWE-426)
  • Failure to Control Generation of Code, or Code Injection (CWE-94)
  • Download of Code Without Integrity Check (CWE-494)
  • Improper Resource Shutdown or Release (CWE-404)
  • Improper Initialization (CWE-665)
  • Incorrect Calculation (CWE-682)

Porous Defenses:

  • Improper Access Control (CWE-285)
  • Use of a Broken or Risky Cryptographic Algorithm (CWE-327)
  • Hard-coded Password (CWE-259)
  • Insecure Permission Assignment for Critical Resource (CWE-732)
  • Use of Insufficiently Random Values (CWE-330)
  • Execution with Unnecessary Privileges (CWE-250)
  • Client-side Enforcement of Server-Side Security (CWE-602)

NEXT STORY: We feel your data management pains

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.