Skip to content

Race Condition Between Deposits and Fee Changes #93

@freddyli7

Description

@freddyli7

A deposit could be charged with an unexpected fee if a fee change occurs shortly before the deposit is processed.

Location
Chainsafe_Sygma_Substrate_Pallets/bridge/src/lib.rs#L458

Remediation
only change bridge fees with long lead times, and after giving ample warnings to users.

Security audit team recommend passing the expected fee as a separate argument to the deposit function call, and also recommend refraining from processing the deposit if the actual fee differs from the expectation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions