Skip to content

Improper Input Validation in Superfluid Context

Description

A specially crafted calldata may be used to impersonate other accounts due to improper input validation in the Superfluid context.

Examples

Insecure Code

solidity
$T.decodeCtx(ctx);

Secure Code

solidity
require($T.isCtxValid(ctx), "Invalid context");
$T.decodeCtx(ctx);

Remediation

Add input validation using require($T.isCtxValid(...), "..."); before calling $T.decodeCtx(ctx);

Rule Details

FieldValue
IDCODE-0658
CategoryInjection
SeverityCRITICAL
CWECWE-20
ConfidenceHIGH
ImpactHIGH
LikelihoodHIGH
ExploitabilityMODERATE
Tagsinput validation, superfluid
OWASPN/A

References