Umbra Wiki weakness weakness/CWE-676
Back to wiki

CWE-676 — Use of Potentially Dangerous Function

provenance: imported · CWE: CWE-676

CWE-676: Use of Potentially Dangerous Function

MITRE CWE weakness

Kind Weakness
Abstraction Base
Status Draft
Likelihood of exploit High

Description

The product invokes a potentially dangerous function that could introduce a vulnerability if it is used incorrectly, but the function can also be used safely.

Common consequences

  • Other: Varies by Context, Quality Degradation, Unexpected State

Mitigations

Build and Compilation — 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]

References

  • CWE page: https://cwe.mitre.org/data/definitions/676.html
  • CWE list: https://cwe.mitre.org/data/index.html