Skip to content

Immunefi

Folks Finance: Staking Contracts

Every publicly disclosed report for Folks Finance: Staking Contracts and what kind of bugs they were.

disclosed reports
68
most reported class
Access control
bug classes found
5
first disclosure
2026
Find Folks Finance: Staking Contracts on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Folks Finance: Staking Contracts chose to make public.

Access control

Cannot Revoke Migration Permit After Role Revocation (Stale Permits Re-Activate on Re-Grant)

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.

Folks Finance: Staking Contracts

Low
Access control

Users cannot revoke migration permission during migrator role rotation window

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.

Folks Finance: Staking Contracts

Low
Access control

Users cannot revoke migration permits once the migrator s role has been revoked

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.

Folks Finance: Staking Contracts

Low
Access control

Inability to revoke migrationpermits for revoked migrators leads to permanent state persistence of user approvals

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.

Folks Finance: Staking Contracts

Low
Access control

Users cannot revoke migration permits after MIGRATOR_ROLE is removed, enabling fund migration without re-consent

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.

Folks Finance: Staking Contracts

Low
Access control

Stale migration approvals cannot be revoked after role revocation and automatically reactivate on role re grant

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.

Folks Finance: Staking Contracts

Low
Access control

Users won t be able to revoke migration permits from revoked migrators

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.

Folks Finance: Staking Contracts

Low
Audit finding

Events emitted after external calls in recovererc20 and migratepositionsfrom violate cei pattern

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.

Folks Finance: Staking Contracts

Informational
Access control

Stale migration permits cannot be revoked after migrator role removal

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.

Folks Finance: Staking Contracts

Low
Access control

User cannot revoke migration approval if migrator loses migrator role

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.

Folks Finance: Staking Contracts

Low
Business logic

Setmigrationpermit does not deliver on specified functionalities

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.

Folks Finance: Staking Contracts

Low
Business logic

After a revert, stakeWithPermit might be prevented

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.

Folks Finance: Staking Contracts

Informational
Access control

Staking.setMigrationPermit - Unnecessary hasRole Check on Revocation Blocks Users From Managing Own Permits

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.

Folks Finance: Staking Contracts

Low
Access control

Broken migration permit revocation allows stale user consent to reactivate after migrator role is re granted

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.

Folks Finance: Staking Contracts

Low
Access control

Setmigrationpermit prevents users from revoking stale permits after migrator role is revoked

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.

Folks Finance: Staking Contracts

Low
Access control

Users are unable to revoke migration permits for deprecated or demoted migrators

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.

Folks Finance: Staking Contracts

Low
Access control

Lack of conditional role check in setMigrationPermit prevents users from revoking permits, leading to unauthorized migration and theft of unclaimed yield

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.

Folks Finance: Staking Contracts

Low
Access control

Users cannot revoke a migration permit after role removal

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.

Folks Finance: Staking Contracts

Low
Access control

Users cannot revoke previously granted migration permit after migrator role is revoked

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.

Folks Finance: Staking Contracts

Low
Access control

SetMigrationPermit blocks revocation after role revoke, enabling stale consent reuse

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.

Folks Finance: Staking Contracts

Low
Business logic

Missing return value on withdraw and missing view function for withdrawable amount

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.

Folks Finance: Staking Contracts

Informational