Hunt prep
Before you test Connext Amarok contest
What 33 disclosed reports say about Connext Amarok contest: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 24 | 0 | – | – | $0 |
| Access control lesson | 4 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Crypto lesson | 1 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
BridgeFacet’s _executePortalTransfer ignores underlying token amount withdrawn from Aave pool
The issue was fixed by checking that the full amount is withdrawn and reverting if not.
Disclosed
-
Tokens with decimals larger than 18 are not supported
The code was fixed by checking if decimals > 18 and normalising the value by dividing the decimals difference.
Disclosed
-
Attacker can perform griefing for process() in PromiseRouter by reverting calls to callback() in callbackAddress
The code should be changed to use a try/catch around the callback call so that a revert in the callback does not revert the whole process() transaction.
Disclosed
-
Swaps done internally will be not be possible
The issue was fixed by a commit in the project repository, according to the maintainer's comment.
Disclosed
-
Missing whenNotPaused modifier
The issue was fixed by adding the whenNotPaused modifier to all functions that perform swaps or liquidity additions.
Disclosed
-
Router Owner Could Steal All The Funds Within SponsorVault
The report recommends reconsidering the need for a sponsor in Connext, as extreme care must be taken in its design to prevent exploitation.
Disclosed
-
PortcalFacet.repayAavePortal() can trigger an underflow of routerBalances
The project added a check after the swap call that requires the router balance to cover the amount subtracted when the local asset equals the adopted asset, and the issue was resolved.
Disclosed
-
Malicious Relayer can Replay Execute Calldata on Different Chains Causing Double-Spend Issue
The bridge should check that the execute calldata's destination domain matches the current chain's domain in `_executeSanityChecks`; this was fixed in a commit.
Disclosed
-
LibDiamond.diamondCut() should check diamondStorage().acceptanceTimes[keccak256(abi.encode(_diamondCut))] != 0
The diamondCut function should also require that the acceptance time is not zero.
Disclosed
-
Diamond upgrade proposition can be falsified
The issue was fixed by including `_init` and `_calldata` in the proposition hash.
Disclosed
-
Router Owner Could Be Rugged By Admin
The contract should allow the router owner to withdraw their liquidity even after removal, for example by sending funds to the recipient regardless of caller.
Disclosed
-
Malicious Relayer Could Cause A Router To Provide More Liquidity Than It Should
The suggested fix of including the routers array in the hash is invalid because the hash is generated before router selection; instead, the code should check for duplicate routers in the array, though this incurs gas costs.
Disclosed
-
division rounding error in _handleExecuteLiquidity() and _reconcile() make routerBalances and contract fund balance to get out of sync and cause fund lose
The judge suggested making the last router pay the swept balance and then be reconciled this amount once the bridge transfer is complete.
Disclosed
-
Single Error Within SponsorVault Contract Could Cause Entire Cross-Chain Communication To Break Down
The issue was fixed by wrapping the external SponsorVault calls in try-catch blocks so that a failure does not disrupt cross-chain communication.
Disclosed
-
Malicious Relayers Could Favor Their Routers
The destination bridge should verify that the execute calldata has not been altered, for example by having the sequencer sign the calldata and checking that signature on-chain.
Disclosed