Skip to content
Access control Audit finding Beginner

Users unable to remove migration permission from migrator who had role revoked

The setMigrationPermit function checks that the target migrator has MIGRATOR_ROLE for both granting and revoking permission. Once an admin revokes that role, a user can no longer revoke their previously granted migration permit, leaving consent permanently true.

gesha17 Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

69396 sc low users unable to remove migration permission from migrator who had role revoked

Submitted on Mar 14th 2026 at 17:10:44 UTC by @gesha17 for Audit Comp | Folks Finance: Staking Contracts

Description

Brief/Intro

setMigrationPermit let's a user to manage consent for migrating their staked positions to a new contract version. The function guards both granting and revoking permission with an identical role check, making it impossible for a user to revoke a previously granted permit once the migrator's MIGRATOR_ROLE has been revoked by an admin. The user's consent is permanently frozen at true. It is likely that users attempt to revoke the permission "just in case" if the migrator is being changed for a new one. The transactions will revert to the users suprise, creating unnecessary confusion and concern.

Vulnerability Details

setMigrationPermit validates that the target address holds MIGRATOR_ROLE before writing to the migrationPermits mapping, regardless of whether the user is granting or revoking permission:

JavaScript
// Staking.sol:77-82
function setMigrationPermit(address _migrator, bool _isMigrationPermitted) external {
>   if (!hasRole(MIGRATOR_ROLE, _migrator)) revert MigratorNotFound(_migrator);

    migrationPermits[_migrator][msg.sender] = _isMigrationPermitted;
    emit MigrationPermitUpdated(_migrator, msg.sender, _isMigrationPermitted);
}

The role check makes sense for the granting direction, however, the same check incorrectly gates the revoking direction, which is a protective action whose validity should be independent of the migrator's current role status.

The sequence that permanently locks a user's consent (shown in the PoC):

  1. Admin grants MIGRATOR_ROLE to migrator M
  2. User calls setMigrationPermit(M, true) — succeeds, migrationPermits[M][user] = true
  3. Admin revokes MIGRATOR_ROLE from M (e.g. the migrator contract is found to be misconfigured, or upgraded)
  4. User calls setMigrationPermit(M, false) to revoke as a precaution — reverts with MigratorNotFound(M)

If MIGRATOR_ROLE is ever re-granted to M, it can immediately call migratePositionsFrom(user) using the stale permit without the user ever re-consenting.

Impact Details

A user who has granted migration permission to a migrator address cannot revoke that permission after the admin revokes the migrator's role, even if the user's intent is purely defensive.

References

Proof of Concept

Place the following unit test in Staking.t.sol and run with this command:

forge test --mt test_revokePermissionRevertsForOldMigrator

JavaScript
function test_revokePermissionRevertsForOldMigrator() public {
    // Step 1: user grants permission to a legitimate migrator
    vm.prank(alice);
    staking.setMigrationPermit(migrator, true);
    assertEq(staking.migrationPermits(migrator, alice), true);

    // Step 2: admin revokes the migrator's role (e.g. bad terms discovered)
    bytes32 migratorRole = staking.MIGRATOR_ROLE();
    vm.prank(admin);
    staking.revokeRole(migratorRole, migrator);
    assertEq(staking.hasRole(migratorRole, migrator), false);

    // Step 3: user tries to revoke their permission as a precaution — reverts
    vm.expectRevert(abi.encodeWithSelector(IStakingV1.MigratorNotFound.selector, migrator));
    vm.prank(alice);
    staking.setMigrationPermit(migrator, false);

    // Permit is still true despite the user's attempt to revoke it
    assertEq(staking.migrationPermits(migrator, alice), true);
}

The original report as published on Immunefi, by gesha17. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

The target is the staking contract of Folks Finance, specifically Staking.sol in the folks-staking-contracts repository. The contract supports migrating staked positions from the current version to a new contract version, and it gives users control over that migration through a per-user, per-migrator consent flag.

The consent is managed by setMigrationPermit, which writes to the migrationPermits mapping. A user calls it with a migrator address and a boolean: true grants the migrator permission to move that user's staked position, false revokes it. The migrator side of the flow is migratePositionsFrom, which reads migrationPermits to validate that the user consented before moving anything.

Setup

The report does not describe a deployment, network or toolchain beyond the Foundry test harness used for the proof of concept. The relevant actors are:

  • alice, a user with a staked position.
  • migrator, an address holding MIGRATOR_ROLE.
  • admin, an address able to grant and revoke roles.

The test is placed in Staking.t.sol and run with:

Bash
forge test --mt test_revokePermissionRevertsForOldMigrator

The preconditions for the bug are that a user has already granted a permit to a migrator, and that an admin later revokes MIGRATOR_ROLE from that same migrator.

Finding it

The researcher looked at how setMigrationPermit validates its input and noticed that a single role check guards both directions of the operation:

JavaScript
// Staking.sol:77-82
function setMigrationPermit(address _migrator, bool _isMigrationPermitted) external {
>   if (!hasRole(MIGRATOR_ROLE, _migrator)) revert MigratorNotFound(_migrator);

    migrationPermits[_migrator][msg.sender] = _isMigrationPermitted;
    emit MigrationPermitUpdated(_migrator, msg.sender, _isMigrationPermitted);
}

Requiring the target to hold MIGRATOR_ROLE makes sense when a user is granting permission: there is no point in authorising an address that cannot migrate anything. The same check, however, also gates the revoking direction. Revoking is a protective action, and its validity should not depend on whether the migrator currently holds the role. Once the admin removes the role, the user can no longer write false into the mapping, so their consent stays frozen at true.

The researcher also notes the practical scenario: users are likely to try to revoke a permit "just in case" when a migrator is being replaced by a new one. Those transactions revert, which is unexpected and creates unnecessary confusion and concern.

Exploitation

The proof of concept is a single Foundry test that walks through the full sequence.

Step 1: the user grants permission

JavaScript
function test_revokePermissionRevertsForOldMigrator() public {
    // Step 1: user grants permission to a legitimate migrator
    vm.prank(alice);
    staking.setMigrationPermit(migrator, true);
    assertEq(staking.migrationPermits(migrator, alice), true);

Alice calls setMigrationPermit(migrator, true). The migrator holds MIGRATOR_ROLE, so the role check passes and the mapping entry migrationPermits[migrator][alice] is set to true. The assertion confirms the stored value.

Step 2: the admin revokes the migrator role

JavaScript
    // Step 2: admin revokes the migrator's role (e.g. bad terms discovered)
    bytes32 migratorRole = staking.MIGRATOR_ROLE();
    vm.prank(admin);
    staking.revokeRole(migratorRole, migrator);
    assertEq(staking.hasRole(migratorRole, migrator), false);

The admin reads the role identifier from MIGRATOR_ROLE() and calls revokeRole for the migrator. The assertion confirms the migrator no longer holds the role. The comment gives an example operational reason: bad terms discovered.

Step 3: the user tries to revoke and the call reverts

JavaScript
    // Step 3: user tries to revoke their permission as a precaution — reverts
    vm.expectRevert(abi.encodeWithSelector(IStakingV1.MigratorNotFound.selector, migrator));
    vm.prank(alice);
    staking.setMigrationPermit(migrator, false);

    // Permit is still true despite the user's attempt to revoke it
    assertEq(staking.migrationPermits(migrator, alice), true);
}

Alice calls setMigrationPermit(migrator, false). Because the migrator no longer holds MIGRATOR_ROLE, the function reverts with MigratorNotFound(migrator) before it ever reaches the mapping write. The final assertion shows that migrationPermits[migrator][alice] is still true: the user's attempt to withdraw consent had no effect.

Root cause

The role check in setMigrationPermit is applied unconditionally, so it covers the revoke path as well as the grant path. The mapping write and the MigrationPermitUpdated event are only reached when the check passes, which means a revoked role makes the consent flag immutable from the user's side.

The report points to migratePositionsFrom (Staking.sol:166-199) as the consumer of migrationPermits: it reads the mapping to validate consent. Because the stale true remains in place, a later re-grant of MIGRATOR_ROLE to the same address would let that address call migratePositionsFrom(user) using the old permit, without the user ever consenting again. The report does not describe any other defence that would clear the permit when the role is revoked.

Impact

A user who has granted migration permission to a migrator address cannot revoke that permission after the admin revokes the migrator's role, even when the user's intent is purely defensive. The consent stays at true indefinitely.

The concrete risk appears if MIGRATOR_ROLE is ever re-granted to the same address: it can then immediately call migratePositionsFrom(user) on the strength of the stale permit. The report frames the impact as a contract failing to deliver promised returns without losing value, and rates it low severity.

Fix

The change it implies is to apply the MIGRATOR_ROLE check only when _isMigrationPermitted is true, so that a user can always write false for any migrator address and withdraw consent regardless of the migrator's current role status.

Variants to test

  • Other consent or approval setters. Look for functions that write an approval flag and validate the counterparty against a role or allowlist. A positive result is that the revoke direction reverts once the counterparty loses the role, while the stored approval remains set.
  • Role revocation without cleanup. Check whether revoking a role clears any state that references the revoked address, such as pending approvals, operator registrations or delegation entries. A positive result is stale state that still grants authority if the role is later re-granted.
  • Re-grant paths. Where an admin can re-grant a role to an address that previously held it, test whether old approvals become usable again without fresh user action. A positive result is a successful privileged call that relies on consent given before the revocation.
  • Pause and upgrade flows. Test whether pausing a contract or upgrading it leaves user consents in place that the user can no longer modify. A positive result is a consent flag that cannot be changed while the counterparty is inactive.

Hunting notes

This class of bug hides in access-control checks placed at the top of a setter that handles both granting and revoking. The signal during review is a single hasRole or allowlist check that runs before a boolean is written, with no branch on the boolean's value. Grep for setters that take a boolean and an address, then ask which direction is protective and whether the check is needed for it.

The researcher demonstrated impact with a self-contained Foundry test that shows the revert and the unchanged mapping value in the same run, which makes the stale-consent condition unambiguous without needing a live deployment. The report also names the downstream consumer, migratePositionsFrom, so the reader can see how the stale flag would be used if the role were re-granted.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 13 min read.

What happened, in plain words

Folks Finance runs a staking contract. Staking means you lock up some digital tokens in a program (the contract) for a while, and the program keeps track of how much each person has locked. The contract in question is written in Solidity, the language used for programs that run on the Ethereum-style blockchain, and its source code is public in a GitHub repository called folks-staking-contracts. The specific file is Staking.sol.

At some point the team wants to move everyone's staked positions from the current version of the contract to a new version. Rather than doing that silently, the contract lets each user say yes or no to a particular helper address, called a migrator, that is allowed to move that user's position. The user's answer is stored as a simple on/off flag: true means "yes, this migrator may move my position", false means "no".

The bug is small but real. The function that records the user's answer, setMigrationPermit, first checks that the migrator address currently holds a special permission called MIGRATOR_ROLE. That check makes sense when the user is saying yes. But the same check also runs when the user is saying no. So if an admin has taken the role away from the migrator, the user can no longer say no: the transaction fails. The user's earlier "yes" stays in place forever, and if the admin ever gives the role back to that same address, the old "yes" becomes usable again without the user being asked.

The researcher rated this low severity. The category is "contract fails to deliver promised returns, but doesn't lose value": the contract does not behave the way a user would reasonably expect, but no funds are reported as lost.

Background you need first

A few ideas come up again and again below, so here they are from zero.

Smart contract. A program that lives on a blockchain. Once deployed, anyone can call its functions by sending a transaction, and the code runs exactly as written. Nobody can quietly edit it afterwards. Think of a vending machine bolted to the wall: the buttons are public, the internals are fixed.

Function. A named action inside a program. setMigrationPermit(...) is a function: you call it with some inputs and it does something. Some functions only read data; others change stored data, and those changes cost a transaction.

Mapping. A lookup table inside a contract, like a two-column spreadsheet. migrationPermits[migrator][user] means: look up the row for this migrator, then the column for this user, and you get a stored value. Here the stored value is a boolean, true or false.

Boolean. A value that is either true or false. Nothing in between.

Role. A named permission inside a contract. Holding a role is like holding a key card that opens certain doors. The contract here has a role called MIGRATOR_ROLE, which setMigrationPermit checks for. An admin can hand the role out (grantRole) and take it back (revokeRole).

Admin. The address (account) with the power to grant and revoke roles. In the test it is simply called admin.

Revert. When a contract function decides the call is not allowed, it stops and undoes everything, and the caller gets an error. In everyday terms: the vending machine spits your coin back out and shows an error message. A revert means no stored data was changed by that call.

Consent flag. A stored true/false that records whether a user agreed to something. Here it records whether a user agreed that a given migrator may move their staked position.

Foundry and forge test. Foundry is a toolkit for writing and running tests against Solidity contracts on your own computer, without a real blockchain. forge is its command-line program. A test is a small program that sets up a situation, performs actions, and checks the results. Staking.t.sol is the test file used here.

vm.prank(address). A Foundry helper that makes the next call appear to come from the given address. Without it, every call in a test would look like it came from the same default account. It is how the test pretends to be Alice, then the admin, then Alice again.

assertEq(a, b). A Foundry check that fails the test unless a equals b. It is how the test proves what the contract actually stored.

vm.expectRevert(...). A Foundry instruction that says: the next call is expected to fail with this particular error. If the call succeeds instead, the test fails. It is how the test proves the bug rather than just describing it.

The feature being tested

Two functions matter.

setMigrationPermit is the user-facing switch. A user calls it with a migrator address and a boolean. true grants that migrator permission to move the user's staked position; false withdraws that permission. The answer is written into the migrationPermits mapping.

migratePositionsFrom is the migrator-facing action. It reads migrationPermits to validate that the user consented.

So the flag is the user's control over their own position, and the whole point of the bug is that this control can get stuck.

Setup

The report does not describe a deployment, a network or a toolchain beyond the Foundry test harness used for the proof of concept. Three actors appear:

  • alice, a user with a staked position.
  • migrator, an address holding MIGRATOR_ROLE.
  • admin, an address able to grant and revoke roles.

The test is placed in Staking.t.sol and run with:

Bash
forge test --mt test_revokePermissionRevertsForOldMigrator

Line by line: forge is the Foundry command-line program; test tells it to run tests; --mt means "match test", that is, run only tests whose name matches what follows; and test_revokePermissionRevertsForOldMigrator is the name of the single test to run. Running one test at a time keeps the output short and makes it obvious which scenario is being demonstrated.

The situation the bug needs is: a user has already granted a permit to a migrator, and an admin later takes MIGRATOR_ROLE away from that same migrator.

Finding it

The researcher read how setMigrationPermit checks its input and noticed that one single role check sits in front of both directions of the operation:

JavaScript
// Staking.sol:77-82
function setMigrationPermit(address _migrator, bool _isMigrationPermitted) external {
>   if (!hasRole(MIGRATOR_ROLE, _migrator)) revert MigratorNotFound(_migrator);

    migrationPermits[_migrator][msg.sender] = _isMigrationPermitted;
    emit MigrationPermitUpdated(_migrator, msg.sender, _isMigrationPermitted);
}

Line by line:

  1. function setMigrationPermit(address _migrator, bool _isMigrationPermitted) external { declares a function anyone outside the contract may call (external). It takes two inputs: _migrator, an address, and _isMigrationPermitted, a boolean. The underscore is just a naming convention for inputs.
  2. if (!hasRole(MIGRATOR_ROLE, _migrator)) revert MigratorNotFound(_migrator); asks the contract whether _migrator holds MIGRATOR_ROLE. The ! means "not". So: if the migrator does not hold the role, stop the whole call and return the error MigratorNotFound with the migrator's address attached. The > in front is the report's way of pointing at the offending line.
  3. migrationPermits[_migrator][msg.sender] = _isMigrationPermitted; writes the boolean into the lookup table, in the row for this migrator and the column for the caller. msg.sender is the address that called the function, so each user has their own column.
  4. emit MigrationPermitUpdated(_migrator, msg.sender, _isMigrationPermitted); records a public log entry saying the permit changed, with the migrator, the user and the new value. Logs are how outside observers and dashboards see what happened.

Requiring the target to hold MIGRATOR_ROLE makes sense when a user is granting permission: there is no point in authorising an address that cannot migrate anything. The same check, however, also gates the revoking direction. Revoking is a protective action, and its validity should not depend on whether the migrator currently holds the role. Once the admin removes the role, the user can no longer write false into the mapping, so their consent stays frozen at true.

The researcher also notes the practical scenario: users are likely to try to revoke a permit "just in case" when a migrator is being replaced by a new one. Those transactions revert, which is unexpected and creates unnecessary confusion and concern.

Exploitation

The proof of concept is a single Foundry test that walks through the full sequence.

Step 1: the user grants permission

JavaScript
function test_revokePermissionRevertsForOldMigrator() public {
    // Step 1: user grants permission to a legitimate migrator
    vm.prank(alice);
    staking.setMigrationPermit(migrator, true);
    assertEq(staking.migrationPermits(migrator, alice), true);

Line by line:

  1. function test_revokePermissionRevertsForOldMigrator() public { starts the test function. Foundry treats any function whose name begins with test as a test to run.
  2. The comment marks the first stage of the story.
  3. vm.prank(alice); makes the next call look like it comes from Alice.
  4. staking.setMigrationPermit(migrator, true); is Alice saying yes: this migrator may move my position. At this point the migrator still holds the role, so the check passes.
  5. assertEq(staking.migrationPermits(migrator, alice), true); reads the stored flag back and checks it is true. This confirms the "yes" was actually saved, which matters because the rest of the test depends on it.

Step 2: the admin revokes the migrator role

JavaScript
    // Step 2: admin revokes the migrator's role (e.g. bad terms discovered)
    bytes32 migratorRole = staking.MIGRATOR_ROLE();
    vm.prank(admin);
    staking.revokeRole(migratorRole, migrator);
    assertEq(staking.hasRole(migratorRole, migrator), false);

Line by line:

  1. The comment gives an example operational reason: bad terms discovered.
  2. bytes32 migratorRole = staking.MIGRATOR_ROLE(); asks the contract for the identifier of the migrator role. Roles are identified by a fixed-length value (bytes32), not by a readable name, so the test fetches it once and reuses it.
  3. vm.prank(admin); makes the next call come from the admin.
  4. staking.revokeRole(migratorRole, migrator); takes the role away from the migrator address.
  5. assertEq(staking.hasRole(migratorRole, migrator), false); checks that the migrator really no longer holds the role. Without this, a later failure could be blamed on the role still being present.

Step 3: the user tries to revoke and the call reverts

JavaScript
    // Step 3: user tries to revoke their permission as a precaution — reverts
    vm.expectRevert(abi.encodeWithSelector(IStakingV1.MigratorNotFound.selector, migrator));
    vm.prank(alice);
    staking.setMigrationPermit(migrator, false);

    // Permit is still true despite the user's attempt to revoke it
    assertEq(staking.migrationPermits(migrator, alice), true);
}

Line by line:

  1. The comment sets up the moment of the bug: Alice, being cautious, wants to withdraw her earlier yes.
  2. vm.expectRevert(abi.encodeWithSelector(IStakingV1.MigratorNotFound.selector, migrator)); tells Foundry that the next call must fail, and must fail with exactly the MigratorNotFound error carrying the migrator's address. The abi.encodeWithSelector part is how the test builds the expected error in the same encoded form the contract would produce, so the match is exact rather than approximate.
  3. vm.prank(alice); makes the next call come from Alice.
  4. staking.setMigrationPermit(migrator, false); is Alice saying no. Because the migrator no longer holds MIGRATOR_ROLE, the function reverts with MigratorNotFound(migrator) before it ever reaches the mapping write. The revert undoes the call entirely.
  5. assertEq(staking.migrationPermits(migrator, alice), true); reads the flag again and confirms it is still true. The user's attempt to withdraw consent had no effect at all.
  6. } closes the test function.

Root cause

The role check in setMigrationPermit is applied unconditionally, so it covers the revoke path as well as the grant path. The mapping write and the MigrationPermitUpdated event are only reached when the check passes, which means a revoked role makes the consent flag immutable from the user's side.

The report points to migratePositionsFrom (Staking.sol:166-199) as the consumer of migrationPermits: it reads the mapping to validate consent. Because the stale true remains in place, a later re-grant of MIGRATOR_ROLE to the same address would let that address call migratePositionsFrom(user) using the old permit, without the user ever consenting again. The report does not describe any other defence that would clear the permit when the role is revoked.

Impact

A user who has granted migration permission to a migrator address cannot revoke that permission after the admin revokes the migrator's role, even when the user's intent is purely defensive. The consent stays at true indefinitely.

The concrete risk appears if MIGRATOR_ROLE is ever re-granted to the same address: it can then immediately call migratePositionsFrom(user) on the strength of the stale permit. The report frames the impact as a contract failing to deliver promised returns without losing value, and rates it low severity.

Fix

The change it implies is to apply the MIGRATOR_ROLE check only when _isMigrationPermitted is true, so that a user can always write false for any migrator address and withdraw consent regardless of the migrator's current role status.

Variants to test

  • Other consent or approval setters. Look for functions that write an approval flag and validate the counterparty against a role or allowlist. A positive result is that the revoke direction reverts once the counterparty loses the role, while the stored approval remains set.
  • Role revocation without cleanup. Check whether revoking a role clears any state that references the revoked address, such as pending approvals, operator registrations or delegation entries. A positive result is stale state that still grants authority if the role is later re-granted.
  • Re-grant paths. Where an admin can re-grant a role to an address that previously held it, test whether old approvals become usable again without fresh user action. A positive result is a successful privileged call that relies on consent given before the revocation.
  • Pause and upgrade flows. Test whether pausing a contract or upgrading it leaves user consents in place that the user can no longer modify. A positive result is a consent flag that cannot be changed while the counterparty is inactive.

Hunting notes

This class of bug hides in access-control checks placed at the top of a setter that handles both granting and revoking. The signal during review is a single hasRole or allowlist check that runs before a boolean is written, with no branch on the boolean's value. Grep for setters that take a boolean and an address, then ask which direction is protective and whether the check is needed for it.

The researcher demonstrated impact with a self-contained Foundry test that shows the revert and the unchanged mapping value in the same run, which makes the stale-consent condition unambiguous without needing a live deployment. The report also names the downstream consumer, migratePositionsFrom, so the reader can see how the stale flag would be used if the role were re-granted.

Glossary

  • Smart contract: a program deployed on a blockchain that anyone can call and that runs exactly as written.
  • Solidity: the programming language used to write the contract in this report.
  • Function: a named action inside a program that takes inputs and does something.
  • External function: a function that code outside the contract is allowed to call.
  • Mapping: a lookup table inside a contract, addressed by keys such as a migrator and a user.
  • Role: a named permission inside a contract that an admin can grant to or revoke from an address.
  • MIGRATOR_ROLE: the role that allows an address to move users' staked positions to a new contract version.
  • Admin: the address with the power to grant and revoke roles.
  • Migrator: an address that, with a user's consent, moves that user's staked position to a new contract version.
  • Consent flag / permit: a stored true/false recording whether a user allowed a given migrator to move their position.
  • setMigrationPermit: the function users call to grant or revoke a migrator's permission.
  • migratePositionsFrom: the function a migrator calls to move a user's position, after checking the stored permit.
  • msg.sender: the address that called the current function.
  • Revert: stopping a call and undoing its changes, returning an error to the caller.
  • MigratorNotFound: the error the contract returns when the target address does not hold MIGRATOR_ROLE.
  • Event / emit: a public log entry a contract writes to record that something happened.
  • bytes32: a fixed-length value type used, among other things, to identify roles.
  • Foundry: a toolkit for writing and running tests against Solidity contracts locally.
  • forge: the Foundry command-line program.
  • Staking.t.sol: the test file where the proof-of-concept test is placed.
  • assertEq(a, b): a Foundry check that fails the test unless the two values are equal.
  • vm.expectRevert(...): a Foundry instruction that requires the next call to fail with a specific error.
  • abi.encodeWithSelector: a way to build the exact encoded form of an error so it can be compared precisely.
  • Proof of concept (PoC): a small, runnable demonstration that a bug is real.
  • Severity: the rating of how serious a bug is; here, low.
  • Stale state: stored data that is out of date and no longer reflects the situation, such as a permit left at true after the migrator lost its role.
  • Access control: the rules deciding who is allowed to do what inside a contract.
  • Allowlist: a list of addresses that are permitted to do something.
  • Setter: a function whose job is to write a value into storage.
  • Grep: a command-line search tool for finding text, such as a pattern, across files.

More by gesha17

View all

4 more disclosed reports, best first.

More from Folks Finance: Staking Contracts

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.