CWE-1177 · Słabość
Use of Prohibited Code
- Abstrakcja
- Klasa
- Status
- Niekompletny
- Dodano
- 3 stycznia 2019
- Ostatnia zmiana
- 30 kwietnia 2026
Opis
The product uses a function, library, or third party component that has been explicitly prohibited, whether by the developer or the customer.
The developer - or customers - may wish to restrict or eliminate use of a function, library, or third party component for any number of reasons, including real or suspected vulnerabilities; difficulty to use securely; export controls or license requirements; obsolete or poorly-maintained code; internal code being scheduled for deprecation; etc.
To reduce risk of vulnerabilities, the developer might maintain a list of "banned" functions that programmers must avoid using because the functions are difficult or impossible to use securely. This issue can also make the product more costly and difficult to maintain.
Skutki
Other
Reduce Maintainability
Zapobieganie
Build and Compilation, Implementation
Identify a list of prohibited API functions and prohibit developers from using these functions, providing safer alternatives. In some cases, automatic code analysis tools or the compiler can be instructed to spot use of prohibited functions, such as the "banned.h" include file from Microsoft's SDL. [REF-554] [REF-1009] [REF-7]
Przykłady podatności
- CVE-2007-1470 Library has multiple buffer overflows using sprintf() and strcpy()
- CVE-2007-4004 FTP client uses inherently insecure gets() function and is setuid root on some systems, allowing buffer overflow
Słabość nadrzędna
Słabości podrzędne
Kiedy powstaje
- Implementation
Dotyczy
Not Language-Specific
Źródła
- Security Development Lifecycle (SDL) Banned Function Calls — Michael Howard, 2011
- Microsoft's Free Security Tools - banned.h — Tim Rains, 2012
- Writing Secure Code — Michael Howard, David LeBlanc, Microsoft Press, 2002
Wpis z katalogu CWE 4.20.