Skip to content
Access control Audit finding Advanced

Registration and migration grant resolver-global (not name-scoped) root roles that "Detach the resolver" never revokes, so a name's seller keeps redirecting the buyer's addr(6

The smart-account registration and manager migration flows grant a wallet full resolver roles at the resolver's root resource rather than scoped to the name being registered, so the grant applies to any name that resolver serves. After a name is sold, the transfer flow's 'Detach the resolver' option only clears the registry pointer and never revokes that grant, letting the previous owner still write records such as the address the name resolves to.

velikoros Follow

Originally disclosed on Immunefi

Critical View original
  • Disclosed after under an hour

92174 w a critical registration and migration grant resolver global not name scoped root roles that detach the resolver never revokes so a name s seller keeps redirecting the buyer s addr 6

Submitted on Sep 7th 2026 at 20:32:36 UTC by @velikoros for Audit Competition | ENS

  • Report ID: #92174
  • Report Type: Websites & Apps
  • Report severity: Critical
  • Target: https://github.com/immunefi-team/audit-comp-ens/tree/audit-comp-ready/packages/smart-account
  • Impacts:
    • 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: - resolving or rendering an ENS name to an attacker-controlled address - showing the wrong recipient or amount on a transaction the user then approves
    • 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

Brief/Intro

Every time packages/smart-account registers a name for a smart-account wallet (HCA), it deploys the wallet a PermissionedResolver and grants the wallet ROLES_ALL at the resolver's root resource (authorizeNameRoles(hex"00", ROLES_ALL, wallet, true)) — not scoped to the specific name being registered. apps/manager's migration flow makes the identical root grant for every co-admin wallet it adds. Root-scoped roles on this resolver are not per-name: they authorize the holder to write any record on any node whose registry entry happens to point at that resolver, including names the holder never registered. When a name is later sold, apps/portal's only resolver-related transfer safeguard — the "Detach the resolver" toggle, which defaults to checked — calls registry.setResolver(tokenId, 0x0). That is a pointer flip on the registry contract; it never touches the resolver contract's role storage. The seller's root grant is therefore never revoked by the transfer flow — which contains no revoke step of any kind — and the buyer cannot remove it afterwards: revokeRootRoles reverts for any account that does not already hold the matching admin role, and the app's one page that can revoke is gated on holding that role, which only the seller does. (The grant is not unrevocable in the absolute sense — the seller can revoke it at will, and our PoC proves that as a negative control. What no in-scope path does is revoke it as part of a transfer, and what the buyer cannot do is force it.) A name still points at the seller's resolver right after a sale — the precondition for the seller's surviving grant to actively redirect records — in at least three proven populations: names whose holder lacks ROLE_SET_RESOLVER, so the toggle never renders; every name registered or migrated through apps/manager, which has no transfer UI and so never runs the detach step at all; and any Explorer transfer where the user unchecks the pre-checked toggle. In every other Explorer-driven transfer the toggle fires by default and does flip the pointer away — but because that pointer flip never touches the resolver's role storage, the seller's authority merely goes dormant rather than disappearing, and a later re-point of the same resolver (an additional, hypothetical condition nothing in-scope facilitates) revives it instantly with no new grant required. We state the two cases separately rather than collapsing them: in populations 1 and 2 — names whose holder lacks ROLE_SET_RESOLVER, so the toggle is hidden, and names registered or migrated through apps/manager, which has no transfer UI at all — the ex-owner can redirect the name's addr(60) (or any other record) immediately, with no on-chain signal that this authority exists and no action the buyer can take to remove it. In the default Explorer path the same authority survives but lies dormant behind the cleared registry pointer, and becomes exploitable again only if the name is ever pointed back at that resolver. The severity argument below rests on the first two populations, not on the dormant case.

Vulnerability Details

Root cause 1 — the registration entry point grants root, not name-scoped, roles. PermissionedResolver.authorizeNameRoles(bytes toName, uint256 roleBitmap, address account, bool grant) takes a toName argument specifically so a grant can be scoped to one name's resource. The in-scope registration builder never uses that scoping — it always passes the root name:

TS
// packages/smart-account/src/providers/rhinestone/registration-calls.ts:321-330
// 6. authorizeNameRoles(hex"00", ROLES.ALL, wallet, true) -- every session registration
calls.push({
  to: params.resolver,
  value: 0n,
  data: encodeFunctionData({
    abi: permissionedResolverAuthorizeNameRolesSnippet,
    functionName: 'authorizeNameRoles',
    args: ['0x00', ROLES_ALL, params.wallet, true],
  }),
})

ROLES_ALL (packages/smart-account/src/providers/rhinestone/manifest.ts:171-172) is every nibble-packed role bit set, i.e. every permission (ROLE_SET_ADDR, ROLE_SET_ALIAS, and every other resolver role plus their admin bits — see apps/portal/src/lib/roles/resolverRoles.ts:24-46 for the bit layout). '0x00' is the resolver's root resource, not dnsEncode(name) for the name being registered.

Root cause 2 — migration repeats the exact same choice. apps/manager's migration flow builds the identical call for every wallet it adds as a co-admin:

TS
// apps/manager/src/features/migration/service/buildAtomicMigrationBatches.ts:422-433
const buildWalletCoAdminCall = (params: {
  readonly resolver: Address
  readonly wallet: Address
}): Call => ({
  to: params.resolver,
  data: encodeFunctionData({
    abi: permissionedResolverAuthorizeNameRolesSnippet,
    functionName: 'authorizeNameRoles',
    args: [ROOT_NAME, ROLES_ALL, params.wallet, true],   // ROOT_NAME = '0x00' :44
  }),
  value: 0n,
})

Scope framing. Resolver-global root roles are the PermissionedResolver contract's own designed access model — authorizeNameRoles supports a root-resource grant by design, and a root grant being writable against any name the resolver serves is how the contract is built to work. That design choice is not what this report claims is a bug, and the ENS smart contracts are out of scope regardless. What is in scope, and what this report is about, is the app's choices: packages/smart-account and apps/manager choose to call authorizeNameRoles with the root resource ('0x00' / ROOT_NAME) instead of the name-scoped resource the very same function accepts, and apps/portal's transfer flow then presents a remedy that — by its own file header docstring (detachNameResolver.ts:1-14, quoted below) — provably never removes that authority. Relatedly, "the buyer cannot self-remediate" below is a claim specifically about revokeRootRoles reverting for a fresh account, not a claim that no account could ever revoke the grant — the seller, or any existing holder of the matching admin role, still can.

This is resolver-global, not per-name — proven live. Root roles are read with hasRootRoles(uint256 roleBitmap, address account), which has no name/node parameter at all. On the fork, hasRootRoles(1 /* ROLE_SET_ADDR */, holder) and hasRootRoles(1<<28 /* ROLE_SET_ALIAS */, holder) both read true for the real per-HCA resolver 0x197d52be85bdaba259f35f09bc074b2562cb1610. Calling setAddr on namehash("totally-unrelated-xyz123.eth") — a node the holder never registered through any app flow — succeeds, and the node now resolves to the holder's chosen address. Membership in "names this wallet registered" is irrelevant; the only thing that matters is whether a name's registry entry currently points at this resolver contract.

apps/portal's transfer safeguard is a registry pointer flip, not a resolver-role revocation. The Explorer's "Detach the resolver" option is described to the user as making the recipient's name resolve cleanly, with no mention that any prior authority over the resolver itself survives:

TS
// apps/portal/src/features/transfer/components/SendNameForm.tsx:46-49 (OPTIONS entry)
key: 'detachResolver',
label: 'Detach the resolver',
description:
  'Detaches this name’s resolver so it stops resolving to your records entirely. The recipient starts clean and sets up their own.',

and its actual on-chain effect, per its own file header comment (apps/portal/src/features/transfer/helpers/detachNameResolver.ts:1-14):

Detach a v2 name from its resolver (registry.setResolver(tokenId, 0x0)). … It never touches the resolver contract itself, which may be shared by the sender's other names — it only clears the registry's resolver pointer.

The comment is accurate about what the code does, but the UI copy never tells the user that "clearing the registry's resolver pointer" leaves the seller's grant on that resolver fully intact — it is not a name-scoped grant that dies with the pointer, it is a standing root permission on a contract the seller (not the buyer) controls. buildTransferPlan.ts confirms detach-resolver is the only resolver-related step this app ever builds — the full step set is set-eth-addr | detach-resolver | detach-registry | transfer-token (buildTransferPlan.ts:18-42) — so there is no authorizeNameRoles(..., false) and no revokeRootRoles(...) anywhere in the transfer plan.

What the codebase-wide grep does and does not prove — stated precisely, because the obvious version of this claim is wrong. Grepping all five in-scope trees for revokeRootRoles returns zero matches. That proves only that the string is absent from in-scope source. It does not prove that no in-scope code path ever emits the call, because the calldata is assembled inside @ensdomains/ensjs (pinned at e96662c via the pnpm-workspace.yaml catalog), not in this repo:

TS
// @ensdomains/ensjs e96662c — src/actions/wallet/v2/revokeResolverRoles.ts:112-131
switch (params.scope) {
  case 'root':
    return { ...base, functionName: 'revokeRootRoles',
             args: [encodeResolverRoleBitmap(params.roles), params.targetAccount] }
  case 'name':
    return { ...base, functionName: 'authorizeNameRoles',
             args: [dnsEncode(params.name), encodeResolverRoleBitmap(params.roles),
                    params.targetAccount, false] }

apps/portal's resolver Roles table therefore does build both calls at runtime: its "Remove user" action (ResolverRolesSidebar.tsx:307-323 → revokeResolverRoles.ts:45-60) emits revokeRootRoles whenever the selected row resolves to the root scope, which is every root-only row — i.e. all 112 of the 112 role rows that exist on live Sepolia today (census below). So a revoke capability exists in-scope. The narrower claims this report actually rests on, each verified separately, are:

  • (a) The transfer flow never revokes. No revoke step exists in buildTransferPlan.ts, and detachNameResolver.ts's own docstring says the one step that runs "never touches the resolver contract itself."
  • (b) apps/manager has no transfer feature at all, so names registered or migrated there are sold outside both in-scope apps and no detach step runs either.
  • (c) The page that can revoke is gated on the role the buyer will never hold. canManageRoles = Boolean(hasRootRole) where hasRootRole is hasRootRoles(['ROLE_SET_ADDR'], connectedAccount) (routes/resolver/$address/roles/index.tsx:40-50). After the sale that predicate is true for the seller and false for the buyer. The roles UI renders read-only for the new owner: the party with the motive to revoke cannot, and the party who can has no prompt, no notification, and no reason to.

The buyer cannot self-remediate on-chain either. Calling revokeRootRoles(1, holder) from a fresh account with no roles reverts with EACCannotRevokeRoles(0, 1, ...) — root roles can only be revoked by an existing holder of the corresponding admin role, which the buyer is not. As a negative control we ran ourselves rather than leave for triage to find: the same call from the holder succeeds, hasRootRoles(1, holder) flips true → false, and our PoC asserts on that too (Section 4 of the transcript). We say so explicitly because "permanent and unrevocable" would be an overstatement, and the finding does not need it.

Precondition, stated honestly

This is not a bug that fires on every transfer unconditionally — it requires that the transferred name still point at the seller's per-HCA resolver after the transfer, because that is what lets the seller's surviving grant actively resolve records for that specific name going forward. The claim being made is that this precondition holds by default for specific, proven populations of names (points 1–3 below), and that even in the Explorer-driven case where the one toggle meant to prevent it defaults to on and fires (point 4), it does not revoke the underlying authority — it only defers the authority's exercise until the same resolver is pointed at again. Concretely:

  1. The detach toggle is hidden entirely when the owner lacks ROLE_SET_RESOLVER. Its visibility gate:

    TS
    // apps/portal/src/features/transfer/hooks/useTransferDetachTargets.ts:86-90
    detachResolver:
      resolverQuery.isSuccess &&
      hasResolver &&
      rolesQuery.isSuccess &&
      heldRoles.includes('ROLE_SET_RESOLVER'),
    

    The sibling helper's own docstring explains why a real, normally-transferred name can fail this gate — "This is a registry write, so the registry gates it on the owner holding ROLE_SET_RESOLVER for the token; a normally-registered owner auto-holds it, but a migrated/locked name can own the token yet lack it" (apps/portal/src/features/transfer/helpers/detachNameResolver.ts:9-11; the hook file quoted above only documents the parallel ROLE_SET_SUBREGISTRY case, for the sibling detachRegistry option, not this one). For the ROLE_SET_RESOLVER-lacking class of name the option never renders — the user is given no way to detach the resolver even if they wanted to, and no indication that anything was skipped.

  2. Where it is shown, it defaults to checked (SendNameForm.tsx:71, the initial useState for detachResolver is true) — it fires by default and does flip the registry pointer; unchecking it is the only way this specific toggle causes the pointer to persist. But the warning shown when it is off never mentions the persistent issue — that the resolver's root role grant survives regardless of the toggle's state — it only says the name "could still be listed as the primary name for an address that no longer controls it."

  3. apps/manager has no transfer feature at all. find apps/manager/src -iname '*transfer*' returns only a post-transfer notification component (apps/manager/src/features/notifications/notifications/name-transferred.tsx) — no transfer flow. Anyone transferring a Manager-registered name must do so outside both in-scope apps: directly on Etherscan, through a marketplace, or via the official ENS app. None of those paths execute this repo's detachNameResolver — the resolver pointer is untouched by default.

  4. Even when the toggle is shown, defaulted on, and exercised, the underlying grant is never revoked (Root cause / PoC Section 3 below) — so the precondition is not even a permanent shield for the one path that tries: the same resolver, still holding the seller's ROLES_ALL, remains deployed and re-attachable. Additional enabling condition, hypothetical, not facilitated in-scope: if a name is later pointed back at that resolver — the buyer re-attaching it, or a completely different name being pointed at it by anyone via an ordinary setResolver call — full seller authority over that name revives instantly, with no new grant required. Nothing in-scope suggests or automates this re-pointing; it is not a natural continuation of the transfer flow, and the finding does not depend on it for populations 1–3 above, where the pointer is never flipped away in the first place.

Impact Details

In-scope entry point: packages/smart-account's registration call builder (registration-calls.ts:321-330) and apps/manager's migration co-admin grant (buildAtomicMigrationBatches.ts:422-433) are where the app chooses to grant global root roles instead of a name-scoped grant; apps/portal's transfer flow (SendNameForm.tsx / useTransferDetachTargets.ts / detachNameResolver.ts) is where the app presents "Detach the resolver" as the safeguard against exactly this, while provably leaving the authority in place.

Selected impacts. Primary: "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" — specifically its own first sub-bullet, "resolving or rendering an ENS name to an attacker-controlled address." A name's addr(60) record is the address third parties send funds to when paying "alice.eth"; ROLE_SET_ADDR (bit 0 of ROLES_ALL) is exactly the permission that writes it, and a surviving root grant lets the ex-owner set it at will. Secondary: "Hijacking or bricking an ENS name during a Manager flow (registration, v1 to v2 migration, or transfer)" — its sub-bullet "a registration or migration that assigns the name, its ownership, registry, or resolver to an attacker" is root causes 1 and 2 exactly: the registration/migration is the step that hands out resolver-root ROLES_ALL. To be precise about the seam rather than paper over it: the grant is made inside a Manager flow, while the harm lands after a transfer that (per the precondition section) often happens outside both in-scope apps. The primary impact carries the report on its own; the secondary is named because the grant's origin is squarely a Manager flow. A seller who has sold "alice.eth" — believing (per the app's own UI copy) that they no longer control it, or never even seeing an option to relinquish anything — retains the ability to call setAddr on that name for as long as it points at their resolver, silently redirecting anyone who pays the buyer at that name.

Severity we are claiming: High. We are deliberately not claiming Critical. The unconditional populations (toggle hidden; Manager-registered names transferred outside the Explorer) carry the finding on their own, while the default Explorer path leaves the authority dormant rather than immediately exploitable — and we would rather anchor a defensible High on what is proven than have the whole report discounted for overclaiming on the conditional case.

Blast radius, measured against live data rather than asserted. We enumerated the v2 resolvers the staging indexer returns, de-duplicated them to unique resolver addresses, and read every role grant on each (resolvers(first:100) → resolver(id:<address>); transcript in evidence/role-scope-census.txt). Result, re-run on 2026-09-06: 112 role grants across 60 live per-HCA resolvers, 112 of them root-scoped — not one name-scoped grant exists. Every resolver the app has deployed has handed its wallet global authority over every name that resolver will ever serve. This is the design in registration-calls.ts:321-330 observable in production, not a theoretical branch. (The exact counts drift by a few rows between runs as the indexer's first-100 window moves; the 100%-root proportion has been stable across every run we have taken.)

Breakdown of production impact:

  • No expiry, and not revocable by the party who needs it revoked. Compare with R2-03 (session-key co-owner): that is an accepted design residual with a stated 7-day lifetime, and the carve-out explicitly excludes duplicates that merely restate the broad scope — "authority beyond its stated lifetime… would be a new finding." This finding is exactly that: there is no lifetime here at all. The grant never expires, nothing in the transfer flow revokes it, the one in-scope UI presented to the seller as the remedy ("Detach the resolver") does not revoke it, and the buyer is locked out of the only page that could — both by the contract (EACCannotRevokeRoles) and by the app's own canManageRoles gate. The seller can revoke it voluntarily; nothing ever asks them to, and the buyer cannot make them.
  • Silent — no signal to the buyer. Nothing in the buyer's UI communicates that the name's resolver carries a standing root grant to the previous owner. The buyer has no reason to check, and no in-scope tool to check with.
  • Full record control, not just addr. ROLES_ALL includes every resolver permission (text records, content hash, ABI, pubkey, alias, plus every admin bit) — addr(60) is the most directly fund-relevant one, but the seller's authority is total.
  • Applies to every HCA registration and every migration, not an edge case: the salt that determines the resolver's address is a pure function of the HCA address alone (manifest.ts:223-236, computeResolverSalt), and resolverDeployed (checked at registration-calls.ts:248) means the same resolver is reused for every subsequent registration by that HCA — this is the standard path, not a misconfiguration.
  • No privileges, no special timing. The seller does not need to race the transfer, monitor mempools, or hold any special role beyond the one every HCA registration and migration already grants it as a matter of course.

Why this is not a duplicate

  • QA-01 ("Certain role combinations when transferring a name… cause errors when later updating profile records or setting a primary name") is about functional errors, and its carve-out is explicit: "A demonstrated security consequence (e.g., a role combination that grants unintended authority) would be a new finding." This report is precisely that demonstrated security consequence — a role combination (root-scoped ROLES_ALL, surviving setResolver(0x0)) that grants unintended, continuing, buyer-unrevocable authority to the seller after transfer. Concretely, the combination is: the seller's surviving resolver-root ROLES_ALL grant coexisting with the buyer's new registry ownership of the same name — two authorities over the same name held by two different accounts at once, which is exactly the shape QA-01's own carve-out names. To be precise about the difference rather than paper over it: QA-01's own trigger is transferring a name (or a name with subnames) and its own symptom is functional errors on later profile-record or primary-name updates; this report's trigger is the same transfer step but its symptom is a security one — unauthorized write authority, not an error — so while both sit under "role combinations surfaced by a transfer," they are not the same observed behavior.
  • WEB-1257 ("After a parent name is transferred, its registry is not detached, and the previous owner can no longer set a subname they still hold as their primary name") is about the registry/subregistry side of a parent name and a functional consequence (a legitimate primary-name-setting action failing) — the opposite direction from this report, which is about the resolver's root role grant surviving on any name (parent or leaf) and giving the previous owner continued write authority, a security consequence, not a usability one.
  • WEB-1249 ("creating a new subname can replace the existing child registry… orphaning nested subnames") is a subregistry-replacement defect scoped to subname creation; it shares no mechanism with a resolver-level root-role grant surviving a name transfer.
  • R2-03 (session-key co-owner, accepted design residual) is a different authority object — an ephemeral ERC-4337 session-validator key, not a resolver role — with an explicit, accepted, stated 7-day lifetime, and the program's own carve-out for it is that authority beyond that lifetime is a new finding. This resolver root grant has no stated lifetime at all — it never expires and no transfer path removes it. It is also not the "co-owner" the R2-03 write-up describes; it is a resolver-contract role, orthogonal to smart account ownership.
  • R2-06 (Low) — "Session 'revocation' only clears browser storage; no on-chain revocation is performed, so the co-owner permission persists until it expires, making the 7-day lifetime the real bound." A triager could try to fold this report into R2-06 as another instance of the same shape — a "revoke"/"detach" step presented to the user that does not actually revoke. But R2-06's own text prices that residual as bounded: the 7-day expiry is what R2-06 itself calls "the real bound." The resolver root grant this report describes has no expiry of any kind — nothing in-scope ever times it out — so it falls outside R2-06's own priced residual even taking R2-06 entirely on its own terms.
  • F-2 (sibling report, report-2-package) is the resolver's other independently fixable defect and is not a duplicate of this one. F-2 is that a revoke path does exist — the Portal's resolver Roles table has a "Remove user" action — but it builds its revoke calldata against the wrong EAC resource: for an account holding both a root grant and a name grant, the helper always picks the name resource (resolvedNames.find((n) => n !== '(root)') ?? ''), never root, so "Remove user" reports success while the account's root authority survives untouched. F-3 (this report) is that the grant is made at registration/migration time and the transfer flow never attempts to revoke it at all — it has no "Remove user"-style step, only the registry-pointer-flipping "Detach the resolver" — while the one page that could revoke it is gated on a role only the seller holds. The two findings are complementary rather than overlapping: fixing F-2's resource argument makes "Remove user" correct for a seller who chooses to visit that page; it does nothing for a buyer who never can. Same subsystem (the PermissionedResolver's root-scoped role storage), different defects (F-2: a revoke attempt with the wrong resource argument; F-3: no revoke attempt exists in the flow that matters here), different fixes (F-2: correct the resource argument passed to an existing call; F-3: add a revoke step, or scope the grant to a name, where neither exists today) — we file both because each is independently fixable and neither report's fix subsumes the other's.
  • SEC-TXM-002 ("A configured or cached smart-account address is returned without confirming it matches the address the SDK derives live") is about address derivation/caching correctness in the transaction manager — a different component, a different mechanism, and a different consequence (wrong address used as owner/target due to a stale cache) from a resolver's own role-storage surviving a transfer.

References

Link to Proof of Concept

https://gist.github.com/yoptascript/89f2b2ae2b6fb0b22f3b4783163cdc05

Proof of Concept

Proof of Concept

Script: poc-F3.sh — https://gist.github.com/yoptascript/89f2b2ae2b6fb0b22f3b4783163cdc05. It starts its own anvil fork of live Sepolia, runs 22 assertions, and exits non-zero if any fails. Requires only foundry (anvil + cast) and a checkout of this repo at the audited commit. All addresses and transactions are the app's real Sepolia deployments and real, already-established on-chain history; every write runs only against the local fork, so nothing touches live state.

Bash
git clone https://github.com/immunefi-team/audit-comp-ens
git -C audit-comp-ens checkout 1c9b47f18fcddd2e864dfe385c4171061c9811ae
REPO=./audit-comp-ens bash poc-F3.sh
# => exit 0, 22/22 OK, 0 FAIL

# Optional overrides. FORK_URL must serve anvil's fork bootstrap; the archive endpoint
# must still serve the resolver's deploy-tx receipt at block 11638766. Public Sepolia
# endpoints rate-limit and rotate their retained history, so the script tries several in
# order (each twice) and falls back to the fork RPC — if one run reports "did not serve
# the receipt", re-run or point ARCHIVE_RPC at your own archive node.
FORK_

The original report as published on Immunefi, by velikoros. 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

Likely the app calls the resolver's role-granting function with the root resource instead of the name-scoped resource, and the transfer flow only flips the registry's resolver pointer without revoking the resolver-side grant.

Impact

A previous owner could silently redirect the address a sold name resolves to, so payments meant for the buyer go to the seller; this holds immediately where the detach option is hidden or absent, while in the default Explorer path the authority lies dormant behind the cleared pointer.

What the attacker needed

Name registered or migrated via the app; name still points at seller's resolver; seller acts after the sale

The fix

The registration and migration flows should grant roles scoped to the specific name, and the transfer flow should revoke the seller's resolver roles as part of the transfer.

How it was found

  1. Register a name through the smart-account flow, which grants the wallet root roles on the resolver.
  2. Transfer the name to a buyer, where the detach option either is hidden, is not run, or only clears the registry pointer.
  3. As the previous owner, call setAddr on the transferred name, which still points at the same resolver.
  4. Observe that the name now resolves to the address chosen by the previous owner.

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.

A name service lets a name like alice.eth point at an address, and a separate contract called a resolver stores those records. When the app set up a wallet it gave that wallet permission to edit records for every name on that resolver, not just its own. Selling a name only disconnects the name from the resolver, so the old owner's permission stays and they can still change where the name points.

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 velikoros

View all

1 more disclosed report, 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.