The permit-setting function checks that the migrator holds the migrator role even when a user is trying to revoke a permit, so once the role is removed the user's revocation call reverts and the approval stays in storage. If the same address is later given the role again, the stale permit lets it migrate the user's positions without fresh consent.
The setMigrationPermit function requires the migrator to hold MIGRATOR_ROLE even when a user is revoking permission, so if the role is temporarily revoked the user cannot withdraw consent. If the role is later re-granted to the same address, the migrator can transfer the user's staked principal and rewards without renewed consent.
The setMigrationPermit function requires the migrator to have MIGRATOR_ROLE even when a user tries to revoke their permit. After the admin revokes the role, users cannot revoke, leaving stale permits that allow future migrations without fresh consent if the role is re-granted.
The setMigrationPermit function requires the migrator to currently hold MIGRATOR_ROLE even when a user is trying to revoke their own approval. Once an admin revokes that role, users can no longer clear their stale permit, leaving the approval permanently in place.
The setMigrationPermit function requires the migrator to still hold the MIGRATOR_ROLE even when a user is trying to revoke their own approval. Once an admin revokes that role, users can no longer clear their permit, so a stale approval stays in contract state and would silently reactivate if the role were ever granted again.
The setMigrationPermit function requires the migrator to have MIGRATOR_ROLE even when a user tries to revoke their permit, so after the admin removes the role users cannot revoke. If the role is later re-granted to the same address, the stale permit allows the migrator to transfer the user's unclaimed principal and rewards without the user's re-consent.
The setMigrationPermit function requires the target address to currently hold MIGRATOR_ROLE even when a user tries to revoke an old approval, so if the role is revoked first the user cannot clear the stale approval. If the same address later regains the role, the historical approval becomes active again without fresh user consent, allowing the migrator to move the user's positions.
A user's migration approval for a migrator address persists after the migrator loses its role, and the user cannot revoke it because the revoke call reverts. If the same address later regains the migrator role, it can move the user's positions without fresh consent.
The setMigrationPermit function requires the migrator address to currently hold the MIGRATOR_ROLE, so if an admin revokes that role, users who previously approved the migrator cannot revoke their approval. This leaves the approval active indefinitely, and if the role is later re-granted, the migrator could migrate user positions without fresh consent.
Two functions in a staking contract emit their event logs after making an external token transfer, breaking the checks-effects-interactions ordering used elsewhere in the same contract. The author states the functions are protected by a reentrancy guard or role gating, so the issue is not directly exploitable and only affects off-chain indexers that rely on event ordering.
The setMigrationPermit function checks that the target migrator has the MIGRATOR_ROLE even when a user tries to revoke their permission. If the admin revokes that role, the user can no longer set their permission to false, leaving it permanently true.
A user's approval of a migrator address cannot be withdrawn once that address loses its migrator role, because the revoke call reverts. If the role is granted again later, the old approval becomes usable again without any fresh consent from the user.
The setMigrationPermit function checks that the migrator still has MIGRATOR_ROLE even when a user is trying to revoke a previously granted approval. If the admin revokes that role, users can no longer clear their stale migration approvals.
The setMigrationPermit function requires the target migrator to hold the MIGRATOR_ROLE even when a user tries to revoke a previously granted migration permission. If the role is revoked, the user can no longer revoke the permission, so a later reintroduction of the same migrator would allow migration despite the user's attempted revocation.
A failed stakeWithPermit call leaves the permit signature valid because the nonce was not consumed, allowing an attacker to front-run a later call with the old permit. This sets a lower allowance and causes the second transaction to revert if the new amount is larger.
The setMigrationPermit function checks that the migrator holds the MIGRATOR_ROLE even when a user tries to revoke their consent, so if the role is revoked the user cannot clear their permit. A migrator who later regains the role could then migrate the user's position without their current consent.
The setMigrationPermit function in Staking.sol applies a hasRole check even when a user tries to revoke their own migration permit, so once the migrator's role is revoked the user cannot clear the permit. If the role is later re-granted, a stale permit lets any third party force-migrate the user's locked positions without their current consent.
The setMigrationPermit function requires the target migrator to currently hold MIGRATOR_ROLE even when a user tries to revoke a previously granted permit. If the migrator loses the role, the user cannot revoke the permit, and if the role is later re-granted, the stale approval becomes active again, allowing the migrator to migrate the user's positions without fresh consent.
The setMigrationPermit function checks that the migrator holds MIGRATOR_ROLE even when a user is trying to revoke their own permit, so once the admin revokes that role the user's revocation reverts and the stale permit stays in storage. If the role is later granted again to the same address, the old permit becomes active again and the migrator can move the user's staked principal and rewards without fresh consent.
The Staking contract's setMigrationPermit function requires the target migrator to currently hold the MIGRATOR_ROLE, so once an admin revokes that role from a deprecated migrator, users can no longer clear their existing approval for that address. An attacker cannot directly exploit this, but users are stuck with a stale permission that they cannot revoke.
The setMigrationPermit function always requires the target address to hold the migrator role, even when a user tries to revoke their approval. If the role is later removed and then re-granted, a stale permit allows the migrator to transfer the user's staked tokens and unclaimed rewards without current consent.
The setMigrationPermit function requires the target address to hold MIGRATOR_ROLE even when a user tries to disable a previously granted migration permit. After an admin revokes the migrator role, users can no longer revoke their approval, leaving stale permissions in storage.
The setMigrationPermit function in Staking.sol requires the migrator to hold MIGRATOR_ROLE even when a user tries to revoke a previously granted permit. If the admin revokes the migrator's role, users cannot clear their stale consent, and the permit becomes active again if the same address is later re-granted the role.
The staking contract only lets a user change a migration permit while the target migrator currently holds the migrator role, so once that role is revoked the user can no longer withdraw consent. If the same address is later re-granted the role, the old approval becomes effective again and positions can be migrated without fresh user consent.
The contract's setMigrationPermit function requires the migrator to currently hold MIGRATOR_ROLE even when a user tries to revoke a previously granted permit. If the role is later removed, the user cannot revoke, and if the role is granted again, the old permit becomes active without fresh user consent.
The Recovered event emitted by recoverERC20 records only the token and amount, not the manager who received the funds. With several addresses holding the manager role, an off-chain observer cannot tell from the event log which manager moved the tokens.
The staking contract's setMigrationPermit function rejects any address that does not currently hold the migrator role, so a user cannot clear an approval once that migrator is removed. The stored approval stays in place and becomes active again if the same address is later re-granted the role.
The withdraw function computes the amount and reward to claim but returns nothing, and there is no public view function to query how much a stake can currently withdraw. Users and integrators must parse events or replicate the accrual maths off-chain, which risks rounding differences and inaccurate displayed amounts.
FF
Folks Finance: Staking Contracts
Informational
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.