Umbra Wiki weakness weakness/CWE-546
Back to wiki

CWE-546 — Suspicious Comment

provenance: imported · CWE: CWE-546

CWE-546: Suspicious Comment

MITRE CWE weakness

Kind Weakness
Abstraction Variant
Status Draft
Likelihood of exploit

Description

The code contains comments that suggest the presence of bugs, incomplete functionality, or weaknesses.

Many suspicious comments, such as BUG, HACK, FIXME, LATER, LATER2, TODO, in the code indicate missing security functionality and checking. Others indicate code problems that programmers should fix, such as hard-coded variables, error handling, not using stored procedures, and performance issues.

Common consequences

  • Other: Quality Degradation

Mitigations

Documentation — Remove comments that suggest the presence of bugs, incomplete functionality, or weaknesses, before deploying the application.

References

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