The project used a vulnerable version of OpenZeppelin's ERC1155Supply contract where totalSupply was not updated before a callback during minting. An attacker could call build and then unwind in the same transaction to manipulate totalSupply-dependent calculations.
The `isUnderwater` function in Position.sol incorrectly flips the inequality for short positions, so it returns the opposite boolean. An attacker could potentially exploit this if the function were used in critical control flow, but currently it is not.
The pow() function in LogExpMath.sol lacks checks for zero inputs, unlike the Balancer original. This omission might lead to unexpected results, though no specific attack is described.
The disableCollateral function revokes roles but fails to set the collateralActive flag to false, so enableCollateral can never be called again because its require checks that the flag is false. This permanently prevents re-enabling a collateral type.
Two contracts cache the address of the OVL token as an immutable variable, but the mothership contract allows the governor to change that address. After a change, the caching contracts would still interact with the old token address.
The adjustGlobalParams function lacks upper and lower bounds on fee parameters, allowing values that are too large and cause reversions in critical functions. An attacker with governance control could set excessive fees, potentially rugging users.
The contract computed market liquidity using a token-ordering flag derived from the OVL price feed rather than the market feed the liquidity came from. If the two pools ordered ETH differently, the depth calculation was inverted, producing a wrong market depth and market cap.
The token contract's internal mint and burn helper functions do not update the total supply variable, unlike the standard mint and burn functions. This causes the reported total supply to be inaccurate, which could mislead external protocols, user interfaces, and analytics platforms that rely on it.
The burn function in OverlayToken.sol allowed any address with burner privileges to burn tokens from any user's balance without their consent. An attacker with burner permissions could destroy arbitrary amounts of other users' tokens.
The report notes that several administrative functions in the OverlayV1Mothership contract lack timelocks and events, meaning critical parameter changes can occur instantly without warning. An attacker who gains admin access could make immediate, unnoticed changes to the system.
The contract records fees before checking whether a position is underwater, so fees are counted even when the position's value is fully consumed by debt. This can cause fee withdrawal to burn or transfer more than the actual available fees, leading to failed withdrawals or fund leakage.
OP
Overlay Protocol contest
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.