|
Status: Draft Weakness ID: 546 (Weakness Variant)Description Summary The code contains comments that suggest the presence of bugs, incomplete functionality, or weaknesses. Extended Description 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. Potential Mitigations Remove comments that suggest the presence of bugs, incomplete functionality, or weaknesses, before deploying the application. Demonstrative Examples The following excerpt demonstrates the use of a suspicious comment in an imcomplete code block that may have security repercussions. Java Example: if (user == null) { // TODO: Handle null user condition. }
Relationships
Taxonomy Mappings
Time of Introduction ImplementationContent History Submissions Anonymous Tool Vendor (under NDA). (Externally Mined) Modifications Sean Eidemiller. Cigital. 2008-07-01. (External) added/updated demonstrative examples Eric Dalci. Cigital. 2008-07-01. (External) updated Potential_Mitigations, Time_of_Introduction CWE Content Team. MITRE. 2008-09-08. (Internal) updated Description, Relationships, Taxonomy_Mappings |
|
|
|||