Top 7 mistakes that lead to prompt injection you must avoid
This article explains the most common engineering and security mistakes that increase prompt injection risk, and how to avoid them when building LLM-powered systems. […]
The rewards may have been partially stolen.
The DuctLock contract currently permits a new reward to be added to the next epoch when the notifyRewardAmount function is invoked. This allows individuals to create locks before the new epoch and subsequently claim a portion of the newly added reward. The potential for exploitation increases with larger reward amounts due to the ability to optimize the timing
and size of token locks.
Attackers can optimise the attack by initially creating small locks at the beginning of each epoch and subsequently increasing the amount of tokens in locks that are closest to expiration after a significant reward is added.
The attackers might take the following steps in sequence:
Note: Attackers may also create a new lock after step 2, but a 4-week waiting period is required to withdraw tokens.
MEDIUM – Part of the rewards are stolen.
RevenueReward contract.Meet Composable Security
Get throughly tested by the creators of Smart Contract Security Verification Standard
Let us help
Get throughly tested by the creators of Smart Contract Security Verification Standard