Magpie V2

QuillAuditsFiles named in the report

Audit · firm’s term: audit report

QuillAudits reviewed Magpie Protocol (Magpie V2) on 24 Sep 2024: 14 findings, 0 critical; 11 marked fixed, 3 open.

No open critical findings
Open the reportOpen Magpie Protocol’s security record

Report hosted on quillaudits.com.

Trustblock does not review code.

Findings14

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical000
High101
Medium105
Low105
HighMagpieStargateBridgeV3 Lacks Bridge SlippageOpen

In MagpieStargateBridgeV3, within the bridgeIn function, the quoteOFT is called to determine the expected amount of tokens received for the user after bridging (the minAmountLD variable). However, this amount is taken as is, without any extra check against the user's slippage. On the contrary, the MagpieCelerBridgeV2 has user supplied slippage implemented.

MediumSignature Replay Possible for swapWithMagpieSignatureOpen

Within the MagpieRouterV3 contract the swapWithMagpieSignature allows the user to trigger swap operation, if only the user has been given the valid signature signed by the internalCaller. However, this signature-based authorisation is flawed as it does not include nonce in the signed message. As a result, user can replay the signature multiple times triggering multiple swap operations.This state persists until the internalCaller is not revoked.

LowThe MagpieStargateBridgeV3 Lacks quoteSendOpen

The MagpieStargateBridgeV3 contract allows to perform swap and then bridge the obtained token to the Stargate. However, it does not check whether the provided bridge fee in native tokens is sufficient to fulfill the request. Thus, the transaction call can revert in the late processing consuming more Gas than required. Additionally, the contract does not expose any function to calculate the required amount of Gas off-chain.The Stargate implements LayerZero’s OFT standard. This protocol exposes quoteSend function, which can provide an amount of bridge fee required to fulfill the request. This function takes into account the size of  the SendParam.

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (28)

  • contracts/interfaces/celer/IMessageBus.sol
  • contracts/interfaces/IMagpieCCTPBridge.sol
  • MagpieCCTPBridge.sol
  • contracts/MagpieSymbiosisBridge.sol
  • contracts/interfaces/IMagpieCelerBridgeV2.sol
  • MagpieStargateBridgeV3.sol
  • contracts/interfaces/cctp/IReceiver.sol
  • contracts/interfaces/IMagpieSymbiosisBridge.sol
  • MagpieRouterV3.sol
  • contracts/libraries/LibBridge.sol
  • contracts/MagpieStargateBridgeV3.sol
  • contracts/libraries/LibAsset.sol
  • MagpieCelerBridgeV2.sol
  • contracts/interfaces/axelar/IAxelarGateway.sol
  • contracts/libraries/LibRouter.sol
  • contracts/interfaces/IBridge.sol
  • contracts/interfaces/IMagpieRouterV3.sol
  • contracts/interfaces/stargate/IStargate.sol
  • contracts/MagpieCelerBridgeV2.sol
  • contracts/interfaces/axelar/IAxelarGasService.sol
  • contracts/MagpieRouterV3.sol
  • MagpieSymbiosisBridge.sol
  • contracts/interfaces/IWETH.sol
  • contracts/interfaces/IMagpieStargateBridgeV3.sol
  • contracts/interfaces/stargate/IOFT.sol
  • magpie-contracts/contracts/MagpieRouterV3.sol
  • contracts/MagpieCCTPBridge.sol
  • contracts/interfaces/celer/ILiquidityBridge.sol

Part of Magpie Protocol’s security record

Magpie Protocol
Audits2 audits by 2 firmsLast audit Sep 2024, by QuillAudits.
Critical findingsNo open critical findingsAcross 2 reports.
Open Magpie Protocol’s security record

Security firm

QuillAudits

350 projects reviewed · 459 reports · latest Apr 2025

See QuillAudits’s audits

Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.

Tell us