Assessment reports>Orderly Network>Threat Model>receiveMessage

Function: receiveMessage(OrderlyCrossChainMessage.MessageV1 data, byte[] payload)

This allows receiving cross-chain messages — supposedly called by _blockingLzReceive.

Inputs

  • data

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: The cross-chain message that will be received.

  • payload

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: The cross-chain message that will be received.

Branches and code coverage

Intended branches

  • Should forward the payload and data to the appropriate contract.

  • Assumed that ping and pong are for testing purposes only.

Negative behavior

  • Should not be called directly, only by _blockingLzReceive. This is currently not enforced. Possible issues may arise here as the LZ checks are bypassed.

Zellic © 2024Back to top ↑