Skip to content

Meaningless Statement

Description

A meaningless statement that does not change any values could be a sign of missed security checks or other important changes.

Examples

Insecure Code

solidity
x;

Secure Code

solidity
x = 5;

Remediation

Review the code to ensure all statements have a purpose and are not redundant or missing important security checks.

Rule Details

FieldValue
IDCODE-0438
CategoryGeneric
SeverityMEDIUM
CWECWE-1164
ConfidenceHIGH
ImpactMEDIUM
LikelihoodHIGH
ExploitabilityMODERATE
Tagssecurity, vuln
OWASPN/A