Skip to content

Insecure Transaction Tracing

Description

Using built-in transaction tracers can be dangerous if measures are not taken to filter out reverted call frames. Review the related code to ensure that reverted call frames and their associated subtraces are filtered out from any analysis and the transaction being traced is from a finalized block.

Examples

Insecure Code

go
RECEIVER.TraceTransaction(CTX, FILTER, TRACECONF)

Secure Code

go
RECEIVER.TraceTransaction(CTX, FILTER, TRACECONF) with reverted call frames filtered out

Remediation

Implement logic to filter out reverted call frames and ensure the transaction is from a finalized block.

Rule Details

FieldValue
IDCODE-0190
CategoryBlockchain
SeverityHIGH
CWECWE-1284
ConfidenceLOW
ImpactHIGH
LikelihoodMEDIUM
ExploitabilityMODERATE
Tagssecurity, audit
OWASPN/A

References