Part of CertiK’s series
CertiK reviewed SquidGrow (SquidGrow Bridge) on 17 Oct 2023: 3 findings, 0 critical; none marked fixed.
Report hosted on skynet.certik.com.
Trustblock does not review code.
Statuses are the security firm’s own, from its report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 2 | 0 | 0 |
| Medium | 0 | 0 | 0 |
| Low | 1 | 0 | 0 |
In `SquidGrowBridge`'s parent contracts, the role `_owner` has authority over the following functions: - forceResumeReceive(): resume the message flow in blocking mode and clear the stored payload. - setConfig(): set the configuration of the LayerZero messaging library of the specified version. - setMinDstGas(): set the minimal fees. - setPayloadSizeLimit(): set `payloadSizeLimit`. - setPrecrime(): set `precrime`. - setReceiveVersion(): set the `lzReceive()` LayerZero messaging library version. - setSendVersion(): set the `send()` LayerZero messaging library version. - setTrustedRemote(): set the trusted path for the cross-chain communication. - setTrustedRemoteAddress(): set the trusted remote address. - setUseCustomAdapterParams(): set the `useCustomAdapterParams`. - transferOwnership(): transfer the ownership. - renounceOwnership(): renounce the ownership. Any compromise to the `_owner` account may allow a hacker to take advantage of this authority and disrupt the bridge's normal functioning.
The contracts `SquidGrowBridge` on Ethereum and BSC serve as a cross-chain bridge, which lets users move assets between the two blockchains. Users can lock tokens in the bridge contract on one blockchain, enabling a corresponding amount of tokens to be unlocked from the bridge contract on the other blockchain. Through the `emergencyWithdraw()` function, the `_owner` can transfer out all ERC20 tokens, including SquidGrow Token, from the bridge contracts. Any compromise to the `_owner` account may allow a hacker to take advantage of this authority and withdraw all tokens. As a result, users who deposit tokens on the source blockchain might be unable to withdraw them on the destination blockchain because of the insufficient balance in the bridge contract. ```solidity=1997 function emergencyWithdraw(address token) external onlyOwner { IERC20(token).safeTransfer(msg.sender, IERC20(token).balanceOf(address(this))); emit EmergencyWithdraw(token, IERC20(token).balanceOf(address(this))); } ```
A vast majority of the `SquidGrowBridge` contract is derived from [`OFTCore`](https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/token/oft/v1/OFTCore.sol) by "LayerZero." This falls outside the audit's scope. And the `SquidGrowBridge` contract relies on `lzEndpoint` for sending and receiving messages, which also falls outside the audit's scope. While our audit assumes the functional correctness of out-of-scope entities and treats them as black boxes, issues and privileged functions in `OFTCore` and `lzEndpoint` could impact the entire project. We are not responsible for any issue caused by them. ```solidity=1951 contract SquidGrowBridge is Ownable, OFTCore { ```
| Address | Chain | Source code |
|---|---|---|
| 0x44b9…2c6c0x44b9f1c5c9c233d8f21a4ef45b020037fedc2c6c | Chain: BNB Chain | Source code: Verified source |
| 0x44b9…2c6c0x44b9f1c5c9c233d8f21a4ef45b020037fedc2c6c | Chain: Ethereum | Source code: Verified source |
1,045 projects reviewed · 1,376 reports · latest May 2025
See CertiK’s auditsSomething 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