Skip to content
Access control Audit finding Advanced

ENS v1→v2 migration grants resolver authority over the migrated name to an unverified, never-displayed third party

The ENS Manager app's v1-to-v2 migration flow grants the ROLE_SET_RESOLVER permission to the v1 registry controller address without verifying it on chain or displaying it to the user. An attacker who previously owned a name can therefore repoint the migrated name's resolver to an address they control, redirecting funds sent to that name.

Naresh_Kandula Follow

Originally disclosed on Immunefi

Critical View original
  • Disclosed after under an hour

89363 w a critical ens v1 v2 migration grants resolver authority over the migrated name to an unverified never displayed third party

#89363 [W&A-Critical] ENS v1→v2 migration grants resolver authority over the migrated name to an unverified, never-displayed third party

Submitted on Aug 18th 2026 at 20:03:06 UTC by @Naresh_Kandula for Audit Competition | ENS

  • Report ID: #89363
  • Report Type: Websites & Apps
  • Report severity: Critical
  • Target: https://github.com/immunefi-team/audit-comp-ens/tree/audit-comp-ready/apps/manager
  • Impacts:
    • Hijacking or bricking an ENS name during a Manager flow (registration, v1 to v2 migration, or transfer), such as:
      • a registration or migration that assigns the name, its ownership, registry, or resolver to an attacker
      • redirecting the recipient of a name transfer
      • leaving a name permanently inaccessible after the flow

Description

ENS v1→v2 migration grants resolver authority over the migrated name to an unverified, never-displayed third party

Severity: Critical
Asset: apps/manager — Manager app
Revision tested: 63772fd872af472ced58b009499355f3430c2a86 (audit-comp-ready, repo HEAD 1c9b47f18fcddd2e864dfe385c4171061c9811ae)
Attacker: an ordinary previous owner of the name. No privileged address, no leaked key, no compromised infrastructure, and no action at all during the victim's flow.
Testing: entirely local — unit suites plus the repository's own Dockerised Anvil fork. No live, testnet or third-party system was touched.


1. Impact in scope

Quoted verbatim from the program's Impacts in Scope:

Critical — Hijacking or bricking an ENS name during a Manager flow (registration, v1 to v2 migration, or transfer), such as:

– a registration or migration that assigns the name, its ownership, registry, or resolver to an attacker

– redirecting the recipient of a name transfer
– leaving a name permanently inaccessible after the flow

The clause names this exact flow (v1→v2 migration), this exact object (the resolver), and this exact outcome (a party who is not the owner ends up controlling it). Section 12 proves each element, including on chain.

Two further Critical clauses are satisfied independently, so the finding does not rest on a single reading:

Critical — Malicious interactions with an already-connected wallet, such as: Modifying transaction arguments or parameters … Inducing a blanket token approval (for example setApprovalForAll on the registry or NameWrapper) to an attacker-controlled address

Critical — Causing the application to display or pre-fill an incorrect address, name, or transaction detail, so that a user sends funds or submits a transaction to an unintended recipient, such as: … showing the wrong recipient or amount on a transaction the user then approves


2. Executive summary

When a name is migrated from ENS v1 to v2, the Manager app reads the v1 registry controller and — whenever it differs from the .eth registrar NFT holder — appends ETHRegistry.grantRoles(resource, ROLE_SET_RESOLVER, <that address>) to the atomic batch the user signs. The app then verifies on chain that the grant landed.

That address is:

  • never verified on chain — although the same flow does re-verify the registrant on chain, in the same multicall, for the same reason (§6);
  • never displayed — it is rendered in no component of the Manager app (§9);
  • in the ordinary post-sale case, the previous owner of the name (§7, Case A);
  • and, when the indexer snapshot is stale, an address that holds no v1 authority at all — in which case the app is not preserving a relationship, it is creating one that does not exist on chain (§7, Case B).

ROLE_SET_RESOLVER authorizes setResolver. A party holding it can repoint the name at a resolver they control, making the name resolve to an address of their choosing. Section 12.3 demonstrates exactly that on a local fork: the name still belongs to the victim, and its resolver is the attacker's.


3. Background: the v1 registrant / controller split

v1 concept Contract Meaning
Registrant BaseRegistrarImplementation (ERC-721 owner of tokenId = labelhash) Owns the registration. Can transfer or renew it, and can call reclaim().
Controller ENSRegistry.owner(node) Day-to-day authority: sets the resolver, records and subnodes.

BaseRegistrarImplementation writes the registry owner in exactly two places — register(...) and reclaim(uint256 id, address owner) — and defines no ERC-721 transfer hook. Therefore any NFT transfer moves the token while leaving the previous owner as the registry controller until the buyer separately calls reclaim():

BaseRegistrar.ownerOf(tokenId)  = BUYER     (moved with the NFT)
ENSRegistry.owner(node)         = SELLER    (unchanged until BUYER calls reclaim())

This is the default outcome of a marketplace purchase, not an exotic state. The v1 manager surfaces “registrant” and “controller” as separate fields precisely because they routinely diverge.


4. Root cause — all in apps/manager

Every decision, encoding, authorization, verification and disclosure defect is in the Manager app, a listed in-scope asset.

4.1 The app grants a role to an address it never verifies

apps/manager/src/features/migration/service/buildRoleGrantCalls.ts:8-27:

TS
const ROLE_SET_RESOLVER = 1n << 24n

export const buildRoleGrantCall = (name: ClassifiedName): Call => {
  if (!name.managerAddress) {
    throw new Error(`No manager address for ${name.domain.name}`)
  }
  const resource = labelToCanonicalId(name.label)
  return {
    to: V2_CONTRACTS.ETHRegistry,
    data: encodeFunctionData({
      abi: ETH_REGISTRY_V2_ABI,
      functionName: 'grantRoles',
      args: [resource, ROLE_SET_RESOLVER, name.managerAddress],
    }),
    value: 0n,
  }
}

The role bit is confirmed against the pinned dependencies, not only the app's own constant:

  • @ensdomains/ensjs utils/v2/roles/registryRoles.ts:26 — ROLE_SET_RESOLVER = 1n << 24n, documented “Nybble 6 — authorizes changing a name's resolver. Root or token.”
  • @ensdomains/ensjs-abi v2/permissionedRegistry.ts — setResolver is a live, callable registry function.

4.2 The grant is unconditional, and the app treats it as a success criterion

apps/manager/src/features/migration/service/buildAtomicMigrationBatches.ts:608-624:

TS
if (classified.managerAddress) {
  innerExecutions.push({
    phase: 'manager-role-grant',
    name, names: [name],
    call: buildRoleGrantCall(classified),
  })
  verificationExpectations.push({
    id: expectationId(name, 'manager-role'),
    type: 'manager-role',
    name, label: classified.label,
    registry: V2_CONTRACTS.ETHRegistry,
    resource: labelToCanonicalId(classified.label),
    account: classified.managerAddress,
    roleBitmap: ROLE_SET_RESOLVER,
  })
}

4.3 The app authorizes the call and confirms it landed

  • Approval. The wallet signs ETHRegistry.setApprovalForAll(hcaAddress, true), gated exactly on requiresManagerRestoration (migrationApprovals.ts:116-122, :186, :320; encoding at :343-350). The comment at contracts/abis.ts:28-30 reads “Migration grants the wallet-owned HCA operator access that can be reused for later operations.” This authorizes the Hybrid Custody Account — the actual msg.sender, per packages/smart-account/src/providers/rhinestone/owner-execution.ts:22-40 — to call grantRoles.
  • Ordering. buildAtomicMigrationBatches.ts:774-780 returns, inside one atomic executeByOwner: resolver-deployment → wallet-co-admin-grant → migrate → manager-role-grant → profile-replay.
  • Post-verification. verifyAtomicMigrationBatch.ts:337-353 asserts hasRoles(resource, ROLE_SET_RESOLVER, managerAddress) === true after the batch.

The app therefore confirms to itself that the third party now holds resolver authority over the victim's name.

4.4 Provenance of the value

managerAddress is populated in the first-party workspace package @ens-apps/migration (packages/migration/src/service/classifyNames.ts:162-167) from the v1 subgraph's owner.id. The branch is reached only when the migrating wallet is the NFT holder (asserted at :150):

TS
const registryOwnerAddress = toAddress(domain.owner.id)      // v1 ENS registry controller
const managerAddress: Address | null =
  registryOwnerAddress &&
  registryOwnerAddress.toLowerCase() !== registrant.id.toLowerCase()
    ? registryOwnerAddress
    : null

The Manager app adopts this into its own service layer — apps/manager/src/features/migration/service/classifyNames.ts re-exports classifyName/classifyNames directly — and it is the Manager app that turns the value into an on-chain role grant. The fix may be applied in either location; the defective decision and the impact are in apps/manager.


5. What the grant is worth

ROLE_SET_RESOLVER is the authority to call setResolver on the name. Section 12.3 executes this end to end on the repository's own Anvil fork: an address that starts with no roles is granted ROLE_SET_RESOLVER, and then — with no involvement from the owner — repoints the name's resolver to a contract of its own choosing. Every record the name serves, including its address record, resolves through that contract from then on.


6. The verification asymmetry

The flow already establishes that indexer-sourced ownership must not be trusted for an authority decision. It applies that standard only to the field that protects the app, never to the field that hands out authority:

Field Consequence Re-verified on chain?
registrant.id / wrappedOwner.id decides whether the name may be migrated at all Yes — preflightChecks.ts:47-102 (checkOwnership) multicalls BaseRegistrar.ownerOf / NameWrapper.getData and drops any mismatch
owner.id → managerAddress receives an on-chain role on the migrated name No. ENSRegistry.owner(node) is never read.

The one address the app never verifies is the one address it grants a role to.

This is not a matter of the primitive being unavailable. The Explorer app in the same monorepo already performs exactly the required read and renders its result: apps/portal/src/features/ownership/components/V1NameManagerRecord.tsx:35-91 calls ensLegacyRegistry.owner(namehash(name)) via useReadContract and displays it under the label “Manager”. The codebase has the exact on-chain read needed both to verify and to display this grantee. The migration consent flow simply does not use it.

A naming disambiguation worth stating, since it is confusing: preflightChecks.ts:19-22 refers to a contract it calls ETH_REGISTRY_V2 via the ensjs key ensRegistry, which in this pinned build resolves to the v2 PermissionedRegistry. The v1 registry is a separate key, ensLegacyRegistry, which a repo-wide grep shows is referenced only in apps/portal and packages/transaction-manager — never in the migration path. The v1 controller is genuinely never re-read.


7. Attack scenarios

Case A — the unreclaimed sale (the common case)

The attacker takes no action during the victim's flow. Their only “action” is an omission they had every ordinary reason to make — and which is in fact the default.

{% stepper %} {% step %}

Mallory owns example.eth

Mallory owns example.eth in v1, as both registrant and controller. {% endstep %}

{% step %}

Mallory sells example.eth to Alice

The ERC-721 moves. Because BaseRegistrarImplementation has no transfer hook, ENSRegistry.owner(node) is still Mallory. Alice does not call reclaim() — nothing in the purchase flow requires or prompts it. {% endstep %}

{% step %}

Alice migrates her names in the Manager

Alice uses the ordinary “upgrade your names” flow. {% endstep %}

{% step %}

The app derives Mallory as the manager

The app sees owner.id = Mallory ≠ registrant.id = Alice, sets managerAddress = Mallory, never checks it on chain, and never shows Alice the address. {% endstep %}

{% step %}

Alice approves manager restoration

Alice approves a wallet step reading “Approve manager restoration — Restore the existing managers for your names.” She reasonably understands this as re-establishing her own configuration. {% endstep %}

{% step %}

The batch grants Mallory resolver authority

The migration contract reclaims the token and clears the resolver — wiping Mallory's stale v1 authority — and the app's manager-role-grant call then grants Mallory ROLE_SET_RESOLVER on Alice's v2 name. The app verifies the grant landed. {% endstep %}

{% step %}

Mallory redirects the resolver

At any later time Mallory calls setResolver, points the name at a resolver she controls, and sets the ETH address record to her own wallet. Funds sent to example.eth reach Mallory. {% endstep %} {% endstepper %}

The deliberate variant. A seller who knows this behaviour simply does not call reclaim() before selling. That is a no-op: zero cost, zero on-chain trace, indistinguishable from ordinary laziness — because it is the default. The attacker pre-positions by doing nothing. The attacker population is everyone who has ever sold a .eth name and left the controller slot behind.

Case B — the stale snapshot: the app creates authority that does not exist

Case A can be characterised by a defender as migration preserving an unwanted-but-real relationship. Case B cannot, and it is the stronger of the two.

Suppose the buyer does everything right: they buy the name and call reclaim(). On chain:

BaseRegistrar.ownerOf(tokenId)  = BUYER
ENSRegistry.owner(node)         = BUYER      ← the seller now controls nothing at all

The seller has zero on-chain authority. There is nothing to preserve. If the buyer migrates while the app's view of the v1 subgraph still reports the pre-reclaim() controller, the app grants ROLE_SET_RESOLVER to the seller anyway — manufacturing on-chain authority for a party that had none.

Three properties make that window real, all verifiable in the repository:

  1. No freshness guard at the query layer. v1SubgraphClient.ts issues its GraphQL query with no block: argument, no _meta { block { number } } probe, and no comparison against chain head. The Graph's standard mechanisms for pinning or asserting indexer freshness are not used.
  2. The app adds its own staleness on top. apps/manager/src/features/migration/hooks/useV1Names.ts:22 sets staleTime: 5 * 60 * 1000. Independently of any indexer lag, the Manager serves a snapshot up to five minutes old; invalidateMigrationQueries (MigrationPage.tsx:159-164) runs after migration, not before.
  3. The app never reconciles the grantee, and nothing in it prompts reclaim(). The string reclaim does not appear anywhere in apps/manager/src — the flow neither performs it, nor detects it, nor waits for it to be indexed.

Critically, the flow's only on-chain verification passes cleanly in this state, because it verifies the wrong field. This is proven by test in §12.2: preflight returns the name fully eligible, and the set of functions it actually calls is exactly {ownerOf, getStatus} — no owner call. The stale value is not merely unverified; it is unverifiable by the checks that run.

The user sequence that lands inside the window is not contrived: buy a name, reclaim it to take full control, then upgrade it to v2 in the same sitting.

Stated honestly: I did not measure the live v1 subgraph's replication lag, and did not probe it — that is a live third-party system and the program prohibits testing against those. What is demonstrated is that the application has no freshness guard at any layer and its own cache guarantees a stale window, so the indexer's lag determines how often this occurs, not whether it can.


8. Preconditions

Attacker Any previous owner / stale v1 controller. Unprivileged; no leaked credentials.
Attacker action during the victim's flow None.
Victim action The standard, promoted migration flow.
Precondition (Case A) ENSRegistry.owner(node) ≠ BaseRegistrar.ownerOf(tokenId) — the default post-sale state.
Precondition (Case B) The app's v1 snapshot is older than the buyer's reclaim() — guaranteed possible by a 5-minute client cache with no freshness guard.
Path gating Nothing gates the manager-role-grant path itself; it fires whenever managerAddress != null. The migration feature sits behind a remote flag (apps/manager/src/routes/migration.tsx beforeLoad), which is a beta-access gate on the feature, not on this code path.

9. Why the consent step does not cure this

A consent step exists, gated exactly on this condition. Stated plainly, because it is the strongest thing the defence has:

  • components/WalletConfirmationStepsDialog.tsx:81-89 — “Approve manager restoration” / “Restore the existing managers for your names.”
  • components/GameStep.tsx:135-138 — “Approve manager restoration in your wallet…”

It does not cure the defect:

  1. The address is never shown. A repo-wide grep of apps/manager for managerAddress returns zero non-test .tsx hits — only service files and test fixtures. The user consents to a category without ever seeing the identity.
  2. The copy is affirmatively false in the attack case. “Restore the existing managers for your names” asserts a trust relationship the code never verified — and cannot verify, because it never reads ENSRegistry.owner(node). For a buyer, the “existing manager” is the seller. In Case B there is no existing manager at all.
  3. The Critical clause is about a user-signed flow. Every registration, migration and transfer is initiated and signed by the user by construction. If a user signature defeated the clause, the clause would describe the empty set.
  4. The program has already priced this pattern. Its own Critical for “Inducing a blanket token approval (for example setApprovalForAll on the registry or NameWrapper) to an attacker-controlled address” is delivered through exactly this mechanism: a wallet prompt the app builds and the user approves.

10. Severity

Element of the Critical clause Status
Occurs during a Manager flow Yes — the v1→v2 migration, named in the clause
Assigns resolver authority Yes — ROLE_SET_RESOLVER, demonstrated on chain in §12.3
To an attacker Yes — a third party who is not the owner, with a direct financial motive and a one-call exploit
Attacker in scope Yes — unprivileged, no leaked keys, no privileged address
Demonstrated Yes — three PoCs: unit, stale-snapshot, and on-chain

Structural point. Across the program's 28 in-scope impacts, this is the only clause addressing ENS-name integrity. There is no High-tier bucket for a partial hijack of an ENS name. The alternative to Critical is not High — it is “no clause fits”, which is untenable once the impact is accepted.

Disclosed against my own interest

Four things a triager should weigh, raised here rather than left to be discovered.

1. The victim can revoke

I am not claiming this grant is permanent or irrevocable. The migrated name's owner is the victim's own wallet (buildAtomicMigrationBatches.ts:486-491, owner: wallet), and the repository documents empirically that the owner holds admin over this exact role — e2e/scripts/seed-managed-name.ts:57-63:

“Must be roles the NAME OWNER holds the *_ADMIN for — at registration the owner receives admin over ROLE_SET_RESOLVER and ROLE_SET_SUBREGISTRY (but NOT ROLE_RENEW), so granting ROLE_RENEW reverts with EACCannotGrantRoles.”

A working revoke path also ships: apps/portal/src/features/roles/helpers/revokeRoles.ts, surfaced as the Explorer's “Remove user” action (RolesSidebar.tsx:205,342).

That is a real mitigation. It does not reduce this below Critical:

  • Revocation presupposes knowledge, and the app is the only channel that could supply it. The grantee is never displayed at signing time and never surfaced afterwards; the Manager — the app that performs the migration and obtains the approval — has no role-management UI at all. The “Remove user” action lives in a different app and is reachable only per rendered row: a holder who is not listed cannot be selected, and therefore cannot be removed through the UI. (Per a separate report I am filing, that list can silently omit holders.)
  • The exposure window is unbounded and the payoff is single-block. One setResolver redirects the name; funds sent during the window are unrecoverable. Recovering the role does not undo the theft.
  • Revocability does not defeat Critical in this taxonomy. The program's own setApprovalForAll Critical describes a condition revocable at any time with a single transaction.

2. “One step removed”

A triager may argue the bullet says assigns … the resolver, whereas here ownership goes to the victim's wallet and the resolver is initially the victim's own. Three answers: the bullets are introduced by “such as” and are illustrative, not exhaustive — the operative text is “Hijacking or bricking an ENS name during a Manager flow”; in ENS v2 ROLE_SET_RESOLVER is the resolver-assignment authority, as §12.3 demonstrates by exercising it; and even under the narrow reading the other two Critical clauses in §1 still fire.

3. The grant is deliberate, tested behaviour

The project's own test at buildRoleGrantCalls.test.ts:11-31 asserts exactly grantRoles(resource, 1n << 24n, MANAGER), and buildAtomicMigrationBatches.test.ts asserts the manager-role-grant phase in the batch. My claim is not that the code does something its authors did not intend. It is that the feature is unsafe as specified — see §11.

4. Deployment stage

The app currently targets Sepolia (packages/migration/src/chain.ts — extendChainWithEns(sepolia); the Manager's V2_CONTRACTS derive from getDestinationContracts(sepoliaWithEns.id)), and ENS v2 migration is pre-launch. I am not claiming live mainnet funds are at risk today. The severity argument rests on the program's impact taxonomy, which classifies the behaviour, and which was written with full knowledge of the project's deployment stage.


11. The strongest defence, and why it fails

“The v1 registrant/controller split is an intentional custodial pattern — a manager holds day-to-day control while the registrant sits in cold storage. Migration faithfully preserves that relationship, with the user's explicit approval. It is literally called 'manager restoration'.”

Two answers.

  1. The code cannot distinguish the intentional pattern from an unreclaimed sale. Both produce byte-identical on-chain state, and the unreclaimed sale is far more common, being the default outcome of every marketplace purchase. The app never reads ENSRegistry.owner(node) and never asks the user. A flow whose default on ambiguity is to grant, to an address it never names, is defective at any base rate.
  2. Case B is not preservation under any reading. When the buyer has already reclaimed, the seller holds nothing on chain and there is no relationship to preserve — yet the app still grants. Section 12.2 proves the flow's own on-chain checks pass while this happens. “Faithful preservation” cannot describe the creation of authority that did not exist.

There is also a structural point the defence has to answer: the migration contract deliberately performs a trust reset. The project's own design note for this exact case records, as steps 4 and 5 of the unwrapped migration, “Token is reclaimed on the BaseRegistrar” then “Resolver is cleared” (apps/manager/src/features/migration/MIGRATION_CASE_STUDY.md:74-75, under ## Unwrapped). The application then re-establishes the severed relationship in v2, against that deliberately cleared slate.


12. Reproduction

Local only. Nothing here touches any live, testnet or third-party system.

Prerequisites: Node.js 22, pnpm 10.27.0 (packageManager in the root package.json), and a clone of the competition repository at the audited revision. Section 12.3 additionally needs Docker.

Bash
git clone https://github.com/immunefi-team/audit-comp-ens.git
cd audit-comp-ens && git checkout audit-comp-ready
git rev-parse HEAD          # 1c9b47f18fcddd2e864dfe385c4171061c9811ae
pnpm install --frozen-lockfile
git diff --stat             # expect empty

Three tiers follow. No production line is modified at any point — the only additions are test/PoC files.

12.1 Tier 1 — the app builds the grant into the batch the user signs

Add apps/manager/src/features/migration/service/migrationManagerRoleGrant.poc.test.ts (full source in §13.1; also attached, and available as a git apply-able patch).

Bash
cd apps/manager
pnpm vitest run --reporter=verbose src/features/migration/service/migrationManagerRoleGrant.poc.test.ts

Result on unmodified code:

 ✓ grants ROLE_SET_RESOLVER on the buyer name to the stale v1 controller
 ✓ oracle: an untransferred name (controller == registrant) grants nothing
 ✓ places the grant to the stale controller inside the approved atomic batch

 Test Files  1 passed (1)
      Tests  3 passed (3)

What each test establishes:

  1. The grantee. Constructs a v1 domain in the exact post-sale state (registrant.id = BUYER, owner.id = SELLER), runs the Manager's own classifyNames and buildRoleGrantCall, decodes the calldata and asserts it is grantRoles(labelToCanonicalId('alice'), 1n << 24n, SELLER) to V2_CONTRACTS.ETHRegistry.
  2. Non-vacuity oracle. The same name with owner.id === registrant.id yields managerAddress === null and buildRoleGrantCall throws — no grant at all. The assertion distinguishes the vulnerable state from the benign one rather than passing unconditionally.
  3. It reaches the signed batch. Feeds the classified name through the real buildAtomicMigrationBatches, decodes the outer executeByOwner, and asserts exactly one grantRoles call to the ETHRegistry appears inside it with SELLER as grantee — and that the batch contains a manager-role-grant phase.

The v1Domain fixture reproduces all eleven fields of the real V1Domain type (packages/migration/src/service/v1SubgraphClient.ts:1-21), so the input is a faithful subgraph response.

Negative control. Replace the managerAddress derivation at `packages/migration/src/service/classifyNames.ts:163-167

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The app derives the grantee from an indexer-sourced v1 registry controller value and grants it ROLE_SET_RESOLVER without ever reading ENSRegistry.owner(node) on chain or displaying the address to the user.

Impact

An unprivileged previous owner could gain resolver authority over a migrated name and redirect its address record to their own wallet, though the victim can later revoke the role if they discover it.

What the attacker needed

Attacker previously owned the name; victim buys the name without reclaim; victim migrates via Manager; victim approves manager restoration

The fix

The app should read ENSRegistry.owner(node) on chain to verify the controller address and display it to the user before granting ROLE_SET_RESOLVER, or omit the grant when the address cannot be verified.

How it was found

  1. The attacker owns a name in v1 as both registrant and controller.
  2. The attacker sells the name; the ERC-721 moves but the registry controller stays with the attacker because no reclaim is called.
  3. The buyer migrates the name through the ordinary Manager upgrade flow.
  4. The app sees the controller differs from the registrant, sets it as the manager address, and never checks or shows it.
  5. The buyer approves the 'manager restoration' wallet step.
  6. The migration batch grants the attacker ROLE_SET_RESOLVER, and the attacker later calls setResolver to point the name at a resolver they control.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When you buy a name like example.eth, the old owner sometimes keeps a leftover permission on it because the sale only moves the ownership token, not the day-to-day control record. The ENS Manager app, when upgrading such a name to a newer version, hands that leftover permission to the old owner without checking or showing who it is. The old owner can then change where the name points, so money sent to it goes to them instead.

What is Access control?

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.

More by Naresh_Kandula

View all

13 more disclosed reports, best first.

More from ENS

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.