Skip to content

[Security] reentrancy — Potential reentrancy — external call before state update. If balances are... #26773

@aldiboncel49-lgtm

Description

@aldiboncel49-lgtm

I was reviewing MystenLabs/sui and found something in bridge/evm/contracts/BridgeVault.sol line 62 that might need attention.

(bool success,) = recipientAddress.call{value: amount}("");

Potential reentrancy — external call before state update. If balances are updated after the call, an attacker can drain funds via re-entrant calls.

Worth a look to see if this is accounted for elsewhere — could be a real issue depending on the surrounding context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions