Skip to content

Sherlock

Opyn Crab Netting

Every publicly disclosed report for Opyn Crab Netting and what kind of bugs they were.

disclosed reports
8
most reported class
Business logic
bug classes found
3
first disclosure
2022
Find Opyn Crab Netting on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Opyn Crab Netting chose to make public.

Business logic

Orders from other market makers can be invalidated

The checkOrder() function marks an order's nonce as used, so anyone can invalidate a pre-signed order by calling it. An attacker could front-run orders submitted to the auction functions and cause those auctions to fail.

Opyn Crab Netting

High
Audit finding

Precision is lost in depositAuction and withdrawAuction user amount due calculations

The depositAuction and withdrawAuction functions calculate user amounts by dividing before multiplying, causing integer truncation that can zero out small users' payouts. An attacker or ordinary user could lose funds in numerical corner cases where their amount is small relative to the total.

Opyn Crab Netting

Medium
DoS

Denial of Service - userDepositIndex and userWithdrawIndex growing indefinitely

The contract's user deposit and withdrawal index arrays grow indefinitely because deletions only zero out entries instead of removing them, causing every call to iterate over the entire array. This leads to increasingly expensive transactions and potential denial of service for users calling withdrawUSDC and dequeueCrabs.

Opyn Crab Netting

Medium
Access control

User withdrawals are dependent on admin actions

The contract owner can toggle a flag that prevents user withdrawals, and withdrawals only become possible again when the owner calls specific auction functions. If the owner loses their key or acts maliciously, users could have their funds permanently locked.

Opyn Crab Netting

Medium
Business logic

debtToMint incorrectly treats feeAdjustment decimals

The _debtToMint function incorrectly treats feeAdjustment as having no decimals, causing the calculated wSqueethToMint to be zero. This makes sqthToSell zero, so depositAuction cannot fill any market buy orders and the auction fails.

Opyn Crab Netting

High
DoS

Netting and withdraw auction can be frozen permanently

A withdrawal queue processed by the netting and withdraw auction functions required every USDC transfer to succeed, so a user whose address is blocked by USDC could queue a withdrawal and make those functions revert permanently. An attacker could therefore freeze netting and auctions at a moment of their choosing, causing losses to beneficiaries.

Opyn Crab Netting

High