Explorer app fabricates a 'Resolved:' for recordless ENS names - silently substitutes the name's owner, sending name transfers and registry-wide role grants to an attacker's ad
The Explorer app's shared name-or-address helper silently substitutes a name's current owner when the typed ENS name has no addr record, and presents this as a successful resolution. An attacker who registers a recordless name can get a victim to type it into transfer, role-grant or subname inputs, causing the victim's name NFT or registry-wide roles to be sent to the attacker.
Originally disclosed on Immunefi
- Disclosed after under an hour
89728 w a critical explorer app fabricates a resolved for recordless ens names silently substitutes the name s owner sending name transfers and registry wide role grants to an attacker s ad
#89728 [W&A-Critical] Explorer app fabricates a 'Resolved:' for recordless ENS names - silently substitutes the name's owner, sending name transfers and registry-wide role grants to an attacker's ad...
Submitted on Aug 20th 2026 at 20:05:45 UTC by @pizzalover337 for Audit Competition | ENS
- Report ID: #89728
- Report Type: Websites & Apps
- Report severity: Critical
- Target: https://github.com/immunefi-team/audit-comp-ens/tree/audit-comp-ready/apps/portal
- 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
Description
Summary
Across the Explorer app, every "enter an address or ENS name" input resolves a typed ENS name through one helper, resolveAddressOrName. That helper reads the name's addr record. When the name has no addr record, it silently substitutes the name's current owner, and the UI presents the result as a successful resolution ("Resolved:" in the add-user sheets, a full-address recipient preview in the transfer form), with no indication anywhere that nothing actually resolved.
On-chain, this fabrication is directly visible: for these names the canonical resolution path fails — the real UniversalResolver reverts ResolverNotFound on a resolverless name, and viem's resolution of a resolver-set-but-recordless one returns null (the empty/zero record) — both executed in the PoC. A recordless name designates no address anywhere on-chain; the app fabricates one. The two semantics it conflates are distinct: an addr record is the address the name's controller designates to receive things; the owner is administrative control of the name. For legitimate names these routinely differ (hot payment wallet vs. cold holding wallet).
When a victim types such a name into one of these inputs (the normal workflow for each), the substituted address feeds irreversible transaction builders with no further review:
- Name-transfer recipient (
SendNameForm→transferToken→safeTransferFrom) — the victim's name NFT moves to the attacker's address. Irreversible. - Name-scoped role grants (
RolesAddUserSheet→grantRoles) — e.g.ROLE_SET_RESOLVERon the victim's name. - Registry-root role grants (
RegistryAddUserSheet→grantRootRoles) — roles over every name in the victim's registry. - Resolver role grants (
ResolverAddUserSheet, scope defaults to the ROOT node) — roles over every name on the victim's shared permissioned resolver. - Subname ownership (
create-subname) — the new subname is minted directly to the attacker's address.
In the two most dangerous flows (3) and (4), the final confirmation modal never displays the grantee address at all — it says only "Grant registry roles" / "Grant resolver roles for (root)" — so the victim has no opportunity, even in principle, to catch the substitution.
An attacker exploits this by registering any name (~$5/yr) and keeping its addr record unset (or setting no resolver at all — both shapes verified on the live deployment's fork), then getting the victim to type that name into one of these inputs — "send the name to payroll-acme.eth", "add our ops name ops-acme.eth as a manager". Without the fallback the app would fail closed: the input flips to its existing "unresolved" state ("Could not resolve an address for …", AddressNameInput.tsx:70-74) and submission is blocked, so the victim would ask for a raw address and the scam collapses — the attacker must hand over a bare 0x… that carries none of the ENS name's borrowed trust. With the fallback, the app itself presents the attacker's address as the successful resolution of the attacker's own ENS name. Typing a recipient name into the recipient field and clicking Transfer/Save is the normal app workflow; the program's exclusion list bars only impacts requiring in-app user actions "that are not part of the normal app workflows", and this one is the normal workflow.
The app's own behavior mass-produces the bait: its transfer flow defaults to detaching the resolver (SendNameForm.tsx:69-73, apps/portal/src/features/transfer/utils/buildTransferPlan.ts:33,40), so every routinely sold or moved name becomes a recordless name whose owner is its new holder: exactly the bait shape for any later typed-name interaction.
Every leg of this is executed in the PoC (below) against a fork of the live Sepolia deployment using the app's real, unmodified code: the fabricated resolution, all five sink encoders decoded byte-exact, and three complete on-chain kill chains, each with the victim's only input being the attacker's recordless ENS name.
Impact
Critical under the program's wrong-recipient impact title. Concretely, per victim, one typed name leads to one of:
- Loss of an ENS name (NFT) — the transfer sink executes
safeTransferFromto the substituted owner. Executed on-chain in the PoC:balanceOf(victim) 1→0,balanceOf(attacker) 0→1,getOwnerV2→ attacker, tx0xaf5df767…on the fork (example run — see Proof of concept). ENS names are ERC-1155 assets with real market value; the transfer is irreversible. - Attacker control over the resolution of every name in the victim's registry — the registry-root sink lands
grantRootRoles(ROLE_SET_RESOLVER, attacker)(executed, tx0xe8f3d8fe…). The attacker can then repoint every name's records, intercepting all future payments and traffic to those names, and rotate in a malicious resolver. This is effective takeover of the registry's names, revocable only if the victim notices and still holds admin. - Attacker control over records of every name on the victim's permissioned resolver — the resolver sink defaults to the ROOT node, so a routine "add a user" grant silently scopes to all names' records (
ROLE_SET_ADDRexecuted at the encoder level). - Name-scoped role theft —
grantRoles(ROLE_SET_RESOLVER, …)on the victim's name (executed, tx0xc3289782…): the attacker repoints the name's resolution and intercepts future payments to it. - Subname theft at birth — a subname the victim creates is minted directly to the attacker.
The attack is deterministic: no race, no staleness window, no error condition. Cost to the attacker is one ordinary registration — or zero, since any name they already hold (including one stripped of its resolver by the app's own transfer default) works as bait. There is no funds-send (ETH/ERC-20) flow consuming this helper — verified by enumeration; the harm is theft of names and of control over names, which converts to funds theft through resolution control.
Pre-empting the "equivalence" objection — "an attacker could just set their name's addr record to themselves and steal identically; the fallback adds no capability." It adds the capability that matters:
- With an addr record, the name genuinely designates the attacker's address: that is ENS working as designed, visible to anyone, and not an app bug. With no addr record the name designates nothing, yet the app fabricates a resolution and presents it as successful — silently swapping "address the name designates" for "the name's owner", two semantics that differ for legitimate names too (payment address vs. holding wallet). Clearing a name's addr record must make interactions with it fail, not silently redirect them to the owner. Unfaithful resolution is exactly what the program's Critical title names.
- The canonical ENS resolution path fails closed on recordless names — the UniversalResolver reverts and viem returns null — so users reasonably expect failure; the app violates that expectation silently. The developers themselves knew this resolution shape is deceptive:
isNameOrAddress.ts:18-21excludes single-label names precisely because they would — in the source's own scare quotes —'"resolve" via the owner fallback', yet the identical mechanism ships for multi-label names. - The app's own transfer flow defaults to stripping the resolver, so recordless names are commonplace — the fallback is a routine resolution path, not an exotic edge.
- In the registry-root and resolver flows the confirmation modal shows no address at all — "the user saw the address" is impossible there.
Pre-empting "the address is displayed": in the sheets the victim sees only Resolved: 0x1234…abcd — 8 of 40 hex chars (truncateAddress(address, 6, 4), AddressNameInput.tsx:60-69), repeated truncated in the tx modal. SendNameForm shows the full address — but the victim typed a name precisely because they don't know the expected address, so there is nothing to check it against. The form's forward-verified primary-name preview cannot display the bait name (a recordless name fails forward verification), so nothing warns "this name did not resolve". No string anywhere in the app distinguishes record-resolution from owner-fallback.
Honesty notes (bounds of the finding, verified): expired names fail closed — past expiry+grace the owner read hits the zero-address path and the helper returns null (apps/portal/src/utils/ens/resolveEnsOwner.ts:53; executed on the fork), so there is no transfer-to-zero bricking variant; no ETH/ERC-20 send flow consumes the helper; the Manager app (apps/manager) has no analogous fallback — this finding is specific to the Explorer app.
Root cause
One helper, one silent branch (apps/portal/src/features/roles/helpers/addUser.handlers.ts:11-40):
// Fallback for names that do not set an address record:
// use current ENS owner address so the role can still be granted.
When getEnsAddress returns null, the helper returns getEnsOwner(name) instead of failing. Every consumer inherits the substitution through two wrappers (apps/portal/src/features/address/queries/getResolvedAddress.ts:18-32, apps/portal/src/features/address/hooks/useAddressResolution.ts:47-90), and every consumer renders the result as a successful resolution:
- Transfer recipient:
apps/portal/src/features/transfer/components/SendNameForm.tsx:81-108→apps/portal/src/features/transfer/helpers/transferToken.ts:67-71(safeTransferFromto the substituted address). - Name roles:
apps/portal/src/features/roles/components/RolesAddUserSheet.tsx:102-119→apps/portal/src/features/roles/helpers/grantRoles.ts:58-95. - Registry-root roles:
apps/portal/src/features/registry/components/v2/RegistryAddUserSheet.tsx:100-119. - Resolver roles (ROOT-node default):
apps/portal/src/features/resolver/components/ResolverAddUserSheet.tsx:38-39,127. - Subname owner:
apps/portal/src/routes/$name/create-subname.tsx:161-170.
The comment's stated rationale is availability for role grants ("so the role can still be granted"). Its reuse as the transfer recipient and subname owner via the shared wrappers exceeds that rationale entirely — and even within the rationale, availability does not require deceptive presentation: nothing justifies presenting the substituted owner as a successful resolution.
On-chain, the fabricated nature of the "resolution" is executed in the PoC: the real UniversalResolver resolveWithGateways(dns, addr(namehash)) reverts 0x77209fe8 = ResolverNotFound(bytes) for the resolverless name while the app helper returns its owner.
This is not an accepted convention — the ecosystem fails closed everywhere
Silent owner-substitution exists in no mainstream ENS tool, and the foundational spec forbids the exact behavior:
- ENSIP-1 (normative): a resolver with no addr record for a node MUST return zero, and "clients resolving the
addrrecord MUST check for a zero return value, and treat this in the same manner as a name that does not have a resolver specified - that is, refuse to send funds to or interact with the address" (docs.ens.domains/ensip/1). The transfer sink here is precisely the scenario that text warns about. - viem (
getEnsAddress— "returnsnullif ENS name does not resolve to address"), ensjs (getAddressRecord— null if not found), and ethers all return null for recordless names; the on-chain UniversalResolver revertsResolverNotFoundfor resolverless ones (ENSIP-23; executed in the PoC). None of them ever reads the owner. - ENS's own official manager app (ens-app-v3) throws
No address foundin its add-manager role input when the typed name has no addr record (EditRoles/hooks/useSimpleSearch.ts) — i.e., ENS's flagship app fails closed in exactly the role-grant context the code comment cites as the fallback's rationale. - ENS's founder on resolution semantics: "clients … should not check or care about
ownervalues when resolving names" (discuss.ens.domains/t/11899).
The fallback also exceeds its own comment's scope: useAddressResolution.ts:38-46 documents the helper as shared by every "name or address" input in the app (transfer recipient, add-user sheets, …) — a deliberate generalization of a role-grant availability shortcut into irreversible transfer and ownership paths. There are no unit tests for the helper.
Why this is not a known issue
- EXP-INPUT-005 (name validators accept deceptive characters) is explicitly scoped to display confusion — the entry states the impact is "homograph-style display confusion … rather than incorrect resolution". This finding is incorrect resolution: no lookalike or deceptive character is involved; a perfectly ordinary name simply has no addr record, and the app resolves it to something it never designated. Different mechanism, different component, and — by the program's own rule that materially new consequences of a listed root cause are in scope — a materially different consequence (irreversible wrong-recipient transactions, not display confusion).
- Name-normalization issues (raw label vs. UTS-46 reads elsewhere in the competition) are mechanistically disjoint: this finding needs no non-normalized input; the name is normalized correctly, and the bug is the resolution semantics after parsing.
- QA-01 / WEB-1257 / WEB-1305 cover role-transfer flows erroring or hanging (functional breakage); here the transactions succeed exactly as built — the defect is which address they are built with.
- R3-05…R3-08 concern transaction-manager archive/history bookkeeping; unrelated.
- Nothing else in the Known Issues list covers resolution-fallback behavior in the Explorer's name-or-address inputs.
Scope note
The root cause is entirely in the in-scope Explorer app (apps/portal). The ENS contracts and UniversalResolver behave correctly — the UniversalResolver reverts ResolverNotFound on a resolverless name — and are not the subject of this report; no contract, subgraph/indexer, or metadata-service change is needed. The fix is wholly app-side (below). The on-chain kill chains are executed against the live Sepolia deployment's contracts only as the environment the in-scope app code runs against — the same arrangement as the program's own scope statement (apps in scope, contracts as deployment context).
Recommendation
- Fail closed. When a typed name has no addr record, recipient/grantee/subname-owner inputs must fail into the input's existing unresolved state ("Could not resolve an address for …") and block submission — matching what the canonical resolution path does.
- If the owner-fallback is retained for role grants per the code comment's rationale, make it explicit and opt-in ("No address record — use the name's owner 0x… instead?"), never presented as a successful resolution, and remove it from the transfer-recipient and subname-owner sinks unconditionally.
- Display the full grantee/recipient address in every final confirmation modal (the registry-root and resolver grant modals currently show none).
Proof of concept
Three self-contained vitest files (full contents and step-by-step instructions in the Proof of Concept field), run against the app's own vitest config with a local anvil fork of live Sepolia (public RPC, no keys). Mocks are confined to external system boundaries (the two RPC reads plus a capture-only transaction-submission boundary in the unit leg; nothing else) — everything under test is the real application code, and the fork legs mock nothing at all beyond pointing the app's own supported RPC override at the fork.
Unit leg (ownerFallbackResolution.unit.test.ts, 8/8 passing) — the substitution and all five sink encoders, byte-exact:
- Real
resolveAddressOrName: no addr record → returns the owner; with an addr record → returns the record (owner never read); raw0xinput passes through. - Real
prepareGrantRolesTransaction→ decodedgrantRoles(resource=labelToCanonicalId('victim'), bitmap=0x1000000 [ROLE_SET_RESOLVER], account=<substituted owner>). - Real
prepareGrantRegistryRolesTransaction→ decodedgrantRootRoles(bitmap, account=<substituted owner>)(ROOT_RESOURCE). - Real
prepareGrantResolverRolesTransactionwith the sheet's default ROOT scope → decodedgrantRootRoleson the resolver. - Real
transferToken→ decodedsafeTransferFrom(victim, <substituted owner>, tokenId, 1, 0x). - Real
prepareCreateSubnameTransaction→ decodedregister('payroll', owner=<substituted owner>, …).
Fork leg (ownerFallbackResolution.fork.test.ts, 9/9 passing, anvil fork of live Sepolia, zero mocks) — the mechanism and three complete kill chains executed on-chain against the real deployment (v2 ETHRegistrar 0xa88553F454b77203B0D036A05c894d555EAAa2Cc, registry 0xBDC85dD5b15D7ecb354cd7cb6f2c50b4f2c4F0E2). Block and transaction hashes quoted below are from one example run (fork block 11523301); the PoC registers fresh names on every run, so a re-run produces its own block and hashes with the same assertions:
- Seed: real registrations through the real registrar of recordless attacker names (resolver
0x0, and resolver-set-but-no-addr-record) and a victim name; real viemgetEnsAddressagainst the real UniversalResolver returns null for both bait shapes; the real UniversalResolver revertsResolverNotFound(bytes)for the resolverless one; the real app helper returns the attacker owner for both. - Kill chain 1 — transfer: the app's real
transferTokenpath, including its real transaction-manager submission, moves the victim's name NFT to the attacker (tx0xaf5df7672728fe5c1720fd9cd44d260cd4c330a4cfa18fd606b3e7483929b22e;balanceOf(victim) 1→0,balanceOf(attacker) 0→1,getOwnerV2(name)→ attacker). The victim's only input was the attacker's recordless ENS name. - Kill chain 2 — name role: real
prepareGrantRolesTransactionbroadcast as the victim landsROLE_SET_RESOLVERfor the attacker on the victim's name's resource (tx0xc3289782e57433bd0335186dd9bd2f27713ee25f8450340cfafa9d4bc03e1d7c;hasRolesfalse→true). - Kill chain 3 — registry-root: real subregistry deployment via the app's own
prepareDeploySubregistryTransaction, then realprepareGrantRegistryRolesTransactionbroadcast as the victim lands a ROOT role for the attacker (tx0xe8f3d8fea5a3031e56179085e4fd169aa3127aa01e1fc15eaf498831659ef8da;hasRoles(ROOT_RESOURCE, attacker, ROLE_SET_RESOLVER)false→true) — registry-wide control from one typed name. - Edge probe (
ownerFallbackExpiryEdge.fork.test.ts, 3/3, included in the Proof of Concept field): expired names fail closed (helper returns null after grace) — no zero-address bricking variant.
One harness accommodation, disclosed: the app's EOA transport node-signs (eth_sendTransaction with a bare address); on the fork the victim account is impersonated so the node can sign — the submitted from/to/data/value are entirely the app-produced bytes; in production the connected wallet holds the key. The resolution path itself uses no cheatcodes and no mocks.
Proof of Concept
PoC — Explorer app fabricates a resolution for recordless ENS names (silent owner fallback → wrong-recipient transactions)
What this demonstrates
Against a fork of the live Sepolia deployment and the real, unmodified app code at the audited revision:
- Fabricated resolution. The Explorer's shared name-or-address helper
resolveAddressOrName(apps/portal/src/features/roles/helpers/addUser.handlers.ts:11-40) reads a typed name's addr record through the UniversalResolver and, when the name has no addr record, silently returns the name's current owner — presented as a successful resolution everywhere downstream ("Resolved:" in the add-user sheets; a full-address recipient preview in the transfer form) with no indication that nothing resolved. On-chain, the real UniversalResolver revertsResolverNotFound(bytes)(selector0x77209fe8) for the resolverless bait name and returns an empty addr for the resolver-set-but-recordless one: a recordless name designates no address anywhere on-chain; the app invents one. Executed with real viemgetEnsAddressand the real app helper against the fork. - All five sink encoders, byte-exact (unit leg): the substituted owner flows through the app's real transaction builders —
transferToken→safeTransferFrom(victim, owner, tokenId, 1),prepareGrantRolesTransaction→grantRoles(resource, ROLE_SET_RESOLVER, owner),prepareGrantRegistryRolesTransaction→grantRootRoles(…, owner)onROOT_RESOURCE,prepareGrantResolverRolesTransaction→grantRootRoles(…, owner)on the resolver at the sheet's default ROOT scope, andprepareCreateSubnameTransaction→register(label, owner, …). Every calldata blob asserted is produced by unmodified app helpers and decoded in the test. - Three executed on-chain kill chains (fork leg, anvil fork of live Sepolia @ block 11523301), each with the victim's only input being the attacker's recordless ENS name:
- Transfer — the real
transferTokenpath (including the app's real transaction manager and EOA signer) moves the victim's name NFT to the attacker:balanceOf(victim) 1→0,balanceOf(attacker) 0→1on the real registry0xBDC85dD5b15D7ecb354cd7cb6f2c50b4f2c4F0E2,getOwnerV2(name)→ attacker. Tx0xaf5df7672728fe5c1720fd9cd44d260cd4c330a4cfa18fd606b3e7483929b22e. - Name role grant — real
prepareGrantRolesTransactionbroadcast as the victim landsROLE_SET_RESOLVERfor the attacker on the victim's name's resource:hasRolesfalse→true. Tx0xc3289782e57433bd0335186dd9bd2f27713ee25f8450340cfafa9d4bc03e1d7c. - Registry-root grant — a real subregistry deployed through the app's own
prepareDeploySubregistryTransaction(tx0x27aa66d7d42f80674e4f82f9448f6a6ef6a7cd3c7fe91e0f39a4cf48631fe01c), then realprepareGrantRegistryRolesTransactionbroadcast as the victim lands a ROOT role for the attacker:hasRoles(ROOT_RESOURCE, attacker, ROLE_SET_RESOLVER)false→true— registry-wide control from one typed name. Tx0xe8f3d8fea5a3031e56179085e4fd169aa3127aa01e1fc15eaf498831659ef8da.
- Transfer — the real
- Boundary honesty probe (shipped in this document, below):
apps/portal/poc/ownerFallbackExpiryEdge.fork.test.ts(3/3) executes the expired-name edge — after expiry (already within grace, and past grace) the owner reads0x0and the helper returnsnull, i.e. expired names fail closed and there is no transfer-to-zero bricking variant.
Mocks are confined to external system boundaries. The unit leg stubs exactly two RPC reads (viem/actions.getEnsAddress → null; the getEnsOwner owner read → attacker) and captures the tx-submission boundary — their real on-chain behavior is then proven in the fork leg. The fork leg mocks nothing at all: the only redirection is the app's own supported RPC override (VITE_SEPOLIA_RPC_URL, lib/wagmi.ts:27-28) pointed at the fork, so the app's real wagmiConfig, resolution helpers, ensjs reads, and transaction manager all execute unmodified against the real deployment's state.
Prerequisites
- Node v22+ and pnpm v10 (
corepack enable) - foundry's
anvilonPATH(or setANVIL_BINto its full path) - Network access to a public Sepolia RPC (default
https://ethereum-sepolia-rpc.publicnode.com, overridable in the file). No RPC keys, wallets, or funds needed — the Sepolia test DAI has a public mint, used on the fork to pay live registration prices. - The fork test spawns its own anvil on port 8556; make sure no other anvil is listening there (
lsof -iTCP:8556).
Steps
-
Clone the competition repository and check out the audited revision:
Bash git clone https://github.com/immunefi-team/audit-comp-ens cd audit-comp-ens git checkout cda79acaad59711b943fc68207ebb3f1d0ff8596 # tree identical to the competition's audited revision 63772fd872af472ced58b009499355f3430c2a86 pnpm install --frozen-lockfile -
Save the three PoC files below as
apps/portal/poc/ownerFallbackResolution.unit.test.ts,apps/portal/poc/ownerFallbackResolution.fork.test.tsandapps/portal/poc/ownerFallbackExpiryEdge.fork.test.ts— the three ```ts blocks at the bottom of this document, in that order, each under its own "PoC file" heading (they run with the app's own vitest config — no custom setup):Bash mkdir -p apps/portal/poc # the directory does not exist in a fresh clone -
Run the unit leg (deterministic, no network):
Bash cd apps/portal && node_modules/.bin/vitest run poc/ownerFallbackResolution.unitExpected output (timings omitted):
✓ poc/ownerFallbackResolution.unit.test.ts (8 tests) ✓ control: a raw 0x input passes through untouched (no resolution at all) ✓ control: a name WITH an addr record returns the record — the owner fallback is NOT consulted ✓ CORE: a name with NO addr record silently resolves to its CURRENT OWNER (the attacker) ✓ sink 2 (role grantee): prepareGrantRolesTransaction encodes grantRoles(…, attacker) with the ROLE_SET_RESOLVER bit ✓ sink 3 (registry-root grantee): prepareGrantRegistryRolesTransaction encodes grantRootRoles(…, attacker) on ROOT_RESOURCE ✓ sink 4 (resolver grantee, default ROOT scope): prepareGrantResolverRolesTransaction encodes grantRootRoles(…, attacker) on the resolver ✓ sink 1 (transfer recipient): transferToken encodes safeTransferFrom(victim, ATTACKER, tokenId, 1) — the name NFT itself ✓ sink 5 (subname owner): prepareCreateSubnameTransaction encodes register(label, ATTACKER, …) Test Files 1 passed (1) Tests 8 passed (8) -
Run the fork leg (spawns an anvil fork of live Sepolia; end-to-end a few minutes — registrations pay live prices through the real commit → reveal → register flow, and per-test timeouts are sized for slow public-RPC days):
Bash cd apps/portal && node_modules/.bin/vitest run poc/ownerFallbackResolution.forkExpected output (timings omitted; addresses, labels and tx hashes are freshly generated each run — the ones quoted in "What this demonstrates" are from the run at fork block 11523301):
✓ poc/ownerFallbackResolution.fork.test.ts (9 tests) ✓ setup: registers name A (resolver=0x0 — the app transfer flow’s detach default) and name B (official public resolver, no records) on the real v2 registrar ✓ boundary truth: REAL viem getEnsAddress against the REAL UniversalResolver returns null for BOTH names (no addr record) ✓ direct eth_call: UR resolveWithGateways(addr) REVERTS for name A while ensjs getOwnerV2 returns the attacker as owner ✓ CORE: the REAL resolveAddressOrName (app wagmiConfig → fork) returns the ATTACKER (owner) for the resolverless name A ✓ CORE: the REAL resolveAddressOrName returns the ATTACKER (owner) for the resolver-set-but-recordless name B ✓ victim setup: registers a real v2 name on the real registrar and holds ROLE_SET_RESOLVER(+_ADMIN) on it ✓ KILL CHAIN 1 (transfer): typed recordless name → REAL resolution → REAL transferToken → the ERC-1155 name token sits with the ATTACKER on-chain ✓ KILL CHAIN 2 (role grant): typed recordless name → REAL resolution → REAL prepareGrantRolesTransaction → broadcast → hasRoles(attacker, ROLE_SET_RESOLVER) true on-chain ✓ KILL CHAIN 3 (registry-root): deploy a REAL subregistry via the portal prepare path, then grantRootRoles to the fallback-resolved attacker → hasRoles(ROOT, attacker) true on-chain Test Files 1 passed (1) Tests 9 passed (9)(Noise to ignore: pino
core/relayerJSON log lines from the WalletConnect SDK on stdout; a Lit dev-mode warning and a Reown remote-config fetch failure on stderr; transientECONNREFUSED 127.0.0.1:8556while anvil boots; anIndexedDB unavailablewarning from the transaction manager's persistence, which falls back to localStorage by design; happy-domAbortErrorlines at teardown. None of these affect the result.) -
Run the expired-name edge probe (same pattern; its own anvil on port 8557):
Bash cd apps/portal && node_modules/.bin/vitest run poc/ownerFallbackExpiryEdge.forkExpected output (timings omitted):
✓ poc/ownerFallbackExpiryEdge.fork.test.ts (3 tests) ✓ registers a short-lived recordless n
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 a deliberate fallback in the shared resolution helper that returns the name's owner when the addr record lookup returns null, rather than failing closed.
Impact
A victim's ENS name NFT could be transferred to the attacker, or the attacker could gain roles over every name in the victim's registry or on a shared resolver; the registry-root and resolver confirmation modals show no grantee address at all, and expired names fail closed.
What the attacker needed
Attacker holds a recordless ENS name; victim types that name into an input; victim confirms the transaction
The fix
The app should fail closed when a typed name has no addr record, blocking submission with its existing unresolved state, and should show the full recipient address in every confirmation modal.
How it was found
- Register an ENS name and leave its addr record unset, or set no resolver at all.
- Persuade the victim to type that name into a name-or-address input, such as a transfer recipient or add-user sheet.
- The app shows the name as resolved to the attacker's owner address.
- The victim confirms, and the transaction is built with the attacker's address as recipient or grantee.
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.
ENS names can point to an address, like a contact entry. If a name has no address set, the app should say it cannot find one. Instead this app quietly uses the address that controls the name, shows it as if it resolved correctly, and then uses it as the recipient of a transfer or a permission grant.
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.