CWE-1078: Inappropriate Source Code Style or Formatting
Description
The source code does not follow desired style or formatting for indentation, white space, comments, etc.
- Abstraction
- ClassAn abstract weakness, independent of any specific language or technology.
- Likelihood of exploit
- Not rated by MITRE
- Status
- Incomplete
Common consequences
- Other
Increase Analytical Complexity
Variations in indentation and other white space, comments, etc. can make it more difficult for human analysts to understand the actual behavior that is being implemented.
Related weaknesses
Parent weaknesses
Child weaknesses
- CWE-546Suspicious Comment
- CWE-547Use of Hard-coded, Security-relevant Constants
- CWE-1085Invokable Control Element with Excessive Volume of Commented-out Code
- CWE-1099Inconsistent Naming Conventions for Identifiers
- CWE-1106Insufficient Use of Symbolic Constants
- CWE-1107Insufficient Isolation of Symbolic Constant Definitions
- CWE-1109Use of Same Variable for Multiple Purposes
- CWE-1113Inappropriate Comment Style
- CWE-1114Inappropriate Whitespace Style
- CWE-1115Source Code Element without Standard Prologue
- CWE-1116Inaccurate Source Code Comments
- CWE-1117Callable with Insufficient Behavioral Summary
CAPEC attack patterns that exploit it
CWE 4.20 links no CAPEC attack pattern to this weakness.