The pledge extension function did not verify that the reward token was still whitelisted, so a creator could extend an existing pledge indefinitely using a delisted token. This bypassed the whitelist, potentially allowing a malicious token to remain in use after removal.
The pledge function checks that the receiver's adjusted balance plus the pledged amount does not exceed targetVotes, but the actual votes received are less than the amount due to integer division precision loss. This means the receiver's balance may not reach targetVotes even though the check passes.
The fee for creating a pledge is calculated on the entire theoretical reward amount rather than the actual rewards used, so the protocol takes a fee even if the pledge expires with no pledgers. An attacker could create a pledge that is never matched and still pay a fee, but the report frames this as unfair fee collection rather than an exploit.
The pledge contract caches the number of missing votes when a pledge is created and reuses that stale value when the pledge is extended or its reward per vote is increased. If the receiver's voting balance has changed since creation, the total reward is miscalculated, so the creator can overpay for rewards that can never be claimed or underpay so the target is never reached.
The WardenPledge contract's pause function, callable by the owner, immediately blocks pledge creators from calling closePledge or retrievePledgeRewards, which use the whenNotPaused modifier. This can unexpectedly prevent creators from withdrawing their deposited reward tokens, potentially causing financial hardship.
The contract's owner-only recoverERC20 function lets the owner withdraw any token, including reward tokens meant for users. Because the owner can first remove a token from the whitelist, the safeguard fails and the owner can transfer all reserved reward tokens to themselves, causing loss of funds for pledge creators and rewards for users.
The pledge reward was calculated once at creation from the receiver's veCRV balance, but that balance decays over time, so the reward pool no longer matches the votes still needed to reach targetVotes. A booster could take all the allocated reward while the pledge never reaches its target, and later boosters would be reverted for insufficient rewards.
WardenPledge inherits from Ownable instead of the intended Owner contract, so the two-step ownership transfer safeguard is missing. The owner could accidentally transfer ownership to an inoperable address, losing control of the contract.
The custom ERC20 implementation used by HolyPaladinToken.sol updates the sender's allowance after calling _transfer, contrary to the checks-effects-interactions pattern. An attacker could potentially exploit this ordering to double-spend or reenter if the token were extended with external calls.
The contract's approvedSpenders mapping does not record which token a spender is approved for, so if a new token is added as a reward, existing approvals from a previous token carry over. An attacker already approved for one token could then call updateSpenderAllowance for the new token.
The emergency mode in a smart contract could be toggled on and off by the owner, allowing them to perform emergency withdrawals and then disable emergency mode, which gives them a privileged position. An attacker with owner privileges could exploit this to withdraw funds without restrictions and then revert the contract to normal operation.
An account with a large cooldown can increase the cooldown of another account by sending it a small amount of tokens, because the receiver's cooldown is recalculated as a weighted average that includes the sender's cooldown. This could delay the victim's ability to transfer or unstake their tokens.
A user whose cooldown has almost expired can receive freshly staked tokens from another user and then unstake them immediately, because the weighted-average cooldown calculation lets the receiver's old cooldown dominate. This lets the receiver help another user bypass the intended unstake waiting period.
The cooldown() function in the HolyPaladinToken contract lacks the emergency mode check that other major functions have. During emergency mode, users can still initiate cooldown, potentially allowing them to prepare for unstaking once the emergency is lifted.
The owner of the PaladinRewardReserve contract can approve and transfer any amount of tokens without limits. This centralisation risk means the owner could drain or move funds arbitrarily, which is not good for investors.
The emergency withdraw function fails to reset the user's bonus ratio and duration ratio, leaving stale values. An attacker could later claim funds with an incorrect ratio if the contract exits the emergency state.
During the contract's emergency (blocked) mode, the getUserLock function was meant to return empty lock information, but the getUserPastLock function lacked the same emergency check and still exposed the user's lock details. An attacker could therefore read the information the protocol intended to hide.
The emergency withdrawal feature is meant to freeze reward accrual, but a user can still update their rewards by transferring a small amount of unlocked tokens. This lets them keep earning rewards during the emergency, potentially claiming a larger share of allocated rewards.
The protocol stores multiple history entries with the same block number for some state types, so functions that query past states by block number can return an imprecise or attacker-chosen entry. A malicious user could manipulate the number of entries to make a binary search return a desired past state.
The token contract resets a user's cooldown to zero when they transfer their entire balance to themselves, which unintentionally extends the lock period. An attacker could exploit this to freeze a victim's funds for an additional period, though the funds are not permanently locked.
The ONE_YEAR constant in a smart contract was set to 31,557,600 seconds instead of the correct 31,536,000, making it slightly too long. This incorrect value was used in vote-related functions, which could negatively affect users.
Increasing the lock amount on an expired lock creates a new lock with the previous lock's bonus ratio, so the user receives no rewards for their active lock. The user must increase the lock duration to fix the bonus ratio.
The smart contract's reward emission rate update function suffers from precision loss when calculating elapsed months, causing the rate to decrease more slowly than intended. An attacker could exploit this to cause higher-than-expected total rewards emission.
The token's locking mechanism did not restrict which contracts could lock tokens, so anyone could build a wrapper contract that locks hPAL and then sells or tokenises ownership of that contract, making the locked tokens effectively liquid and transferable again. This undermines the intended design where locking is meant to make tokens illiquid in exchange for boosted voting power and rewards.
PW
Paladin - Warden Pledges contest
High
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.