Skip to content
Business logic Audit finding Advanced

Manager accepts an attacker controlled subregistry as a completed hca registration after the intended reveal fails

The ENS Manager registration flow can report a registration as complete even though the victim's own reveal transaction reverted, because the success check only compares registration status, owner and resolver. An attacker who pre-registers the label to the victim with a hostile subregistry can therefore control all child names under it while the victim sees a success message.

IronsideSec Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

92778 w a medium manager accepts an attacker controlled subregistry as a completed hca registration after the intended reveal fails

Submitted on Sep 12th 2026 at 07:49:19 UTC by @IronsideSec for Audit Competition | ENS

  • Report ID: #92778
  • Report Type: Websites & Apps
  • Report severity: Medium
  • 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

Brief/Intro

Manager can report a new .eth registration as complete while an attacker-selected subregistry controls its descendants. A prepared attacker registers the predicted label directly to the victim with Manager's expected resolver but a hostile subregistry; if it wins the post-construction/pre-fill order, the victim's signed HCA reveal reverts, yet Manager checks only registered status, victim ownership, and resolver address, accepts the attacker's different tuple, and renders Registration Complete!. A pinned-fork PoC uses the real Manager builder, an owner-authorized session, deployed Nexus/HCA validation and IntentExecutor, and victim-first same-block fee ordering to prove NameNotAvailable, shallow-verifier acceptance, no code at the intended resolver, and attacker-controlled child resolution. Public evidence independently binds an exact signed Warp reveal to its enabled session and a real registrar-level failed fill to production FAILED and the installed SDK's IntentFailedError. The reproduced post-state is the program's literal Critical impact 6286: during a Manager registration flow, the registration assigns its descendant registry to the attacker while Manager certifies the victim's reverted zero-subregistry operation as complete.

Vulnerability Details

Security invariant and violated postcondition

Manager constructs a registration whose security-relevant tuple includes:

(label, victim wallet, victim secret, subregistry = address(0),
 expected deterministic HCA resolver, requested duration, payment token, referrer)

After the submitted HCA operation fails, Manager must not certify success merely because some registration now has the same label, visible owner, and visible resolver. It must either bind success to the submitted successful fill/receipt and a NameRegistered event emitted by the expected ETHRegistrar, or compare every security-relevant postcondition of the intended tuple.

The vulnerable fallback instead accepts this attacker-created tuple:

(label, victim wallet, attacker secret, subregistry = attacker contract,
 expected deterministic HCA resolver, attacker-chosen duration, payment token, referrer)

The two tuples intentionally agree on the only three facts the verifier uses. They differ on transaction provenance, commitment/secret, subregistry, and potentially duration/expiry.

The deployed Manager route and frozen public source contain the same weak predicate

The affected route template is /register/{label}.eth; at the 2026-09-12 UTC capture, this live probe returned the registration application with HTTP 200. Its src-kKZQxHop.js asset was 77,876 bytes with SHA-256 5d5a8be78bdf7b8cd90d8fcb8811164f8dd98e57095f8ab4a5a4e0ec52320ff7. The minified asset contains both:

waitingForRhinestoneBundle ... onError:{target:`verifyingRegistration`}

and a verifier equivalent to:

verified = Number(state.status) === REGISTERED
        && state.latestOwner === wallet
        && registryResolver === expectedResolver

The public frozen revision resolves to these exact Git trees:

1c9b47f18fcddd2e864dfe385c4171061c9811ae:apps/manager                  64736c3d73864f8f82e5a44a657ff24668eaad03
1c9b47f18fcddd2e864dfe385c4171061c9811ae:packages/transaction-manager c3a3c3e2184787ac53063c9054c63d1bd7c433b7
1c9b47f18fcddd2e864dfe385c4171061c9811ae:packages/smart-account       ff6634fe543844a98db38b06f09c213fcc407ff8

The unminified source shows the full path:

  1. The reveal actor reads the current price, builds the exact reveal calls, starts the transaction, and returns its local transaction ID: registration.hca.actors.ts:955-1023.
  2. Warp calls sendTransaction, obtains an intent, and awaits waitForExecution: warp-transport.actor.ts:182-226.
  3. The poller rejects nested states such as error.submission and error.reverted: registration.actors.ts:963-999.
  4. Every polling error from waitingForRhinestoneBundle enters verifyingRegistration: registration.machine.ts:1225-1240.
  5. If the state-only verifier returns verified, the machine moves to success and erases the original error: registration.machine.ts:1448-1473.
  6. The HCA verifier reads only getState(id) and getResolver(label), then compares status, latestOwner, and resolver. It never reads getSubregistry: registration.hca.actors.ts:906-951.
  7. The mounted success component displays Registration Complete! and says the domain is active: RegistrationCompletionBanner.tsx:4-20.

This is not a generic “RPC error can look successful” claim. The specific invariant failure is accepting current state created by a different commitment and transaction while omitting the field that delegates the descendant namespace.

Deployed Sepolia semantics used by the proof

The primary PoC forks Sepolia block 11,685,895 (0xb25007), hash 0x2c6e2e8f5dcbfbc960903317b93ed7e02a3b9409c18ad2b05cb7bd5c9ea7fff5. It calls the frozen Manager source against these deployed contracts:

Component Address / pinned observation
ETHRegistrar 0xa88553F454b77203B0D036A05c894d555EAAa2Cc; runtime keccak256 0x7ac653f817e6bef6543d25ce97235b232430b1771ab5bcb27b936798fe38af1f
PermissionedRegistry 0xBDC85dD5b15D7ecb354cd7cb6f2c50b4f2c4F0E2; runtime keccak256 0x99a6ba74173ac220fd9d7a2000a8142cf52d98c7a17ac6abc6d74fa17d8f086c
deployed IntentExecutor proxy 0x00000000005aD9ce1f5035FD62CA96CEf16AdAAF; runtime keccak256 0xd23247796c75f502bb7b872631c55da669b2b167d874930f7d98bce2b1d615ba
HCA session validator 0x5f249FCa8bB4949105651146858c347E8BFb0F7E; runtime keccak256 0x3e7e34311353a7d3d9d6202735d3642b69ded6b49d1dfa4e8fef1efc14e1a364
standalone HCA implementation frozen manifest implementation; runtime keccak256 0x348dc95a362bf23633f8142e54e92dea48091d108d24c323bea50794c89351fd
MockUSDC 0x768F42455A2D082E23ceeF7d51e5787C82d67a39
StandaloneHCAFactory 0x10dC6333CDFe1FCEf624c6e0a8221b91804Cd7ef
Universal Resolver 0xeEeEEEeE14D718C2B47D9923Deab1335E144EeEe
commitment validity minimum 60 seconds; maximum 86,400 seconds
minimum registration duration 2,419,200 seconds (28 days)

Direct eth_getCode at the pinned block, followed by keccak256 of the returned bytes, produces the runtime hashes. ETH_REGISTRY() on the registrar returns the listed registry. The clean-checkout PoC also checks that the account ID is ens-standalone-hca.1.1.0, the deployed executor is installed, the owner-authorized permission is enabled, and the first session nonce is consumed before it tests the reveal.

Attack sequence

  1. The attacker chooses a target label and wallet. The standalone HCA address and expected resolver are deterministic from the wallet and public manifests.
  2. At least 60 seconds before the attack, the attacker submits its own commitment for (label, victim, attacker secret, attacker registry, expected resolver, duration, referrer). It is eligible while its age is in [60, 86,400) seconds. This requires advance knowledge of both label and victim wallet; this report does not claim reactive unknown-label front-running.
  3. The victim uses the ordinary /register/{label}.eth HCA flow and matures its distinct zero-subregistry commitment.
  4. The real Manager submitRevealBatchActor reads live availability and price and builds its five destination calls: deterministic resolver deployment, registrar approval, zero-subregistry register, and resolver text/address configuration.
  5. The victim session signs those calls plus the refund approval inside mode-0x02 execution. The outer transaction targets deployed IntentExecutor.executeSinglechainOpsWithGasRefund_ERC20 (0xf9225e8b); deployed Nexus/HCA validation checks the owner-authorized enabled permission.
  6. During the remaining handoff/inclusion interval, the attacker sends the ordinary direct registrar transaction. In the deterministic fee-order proof, the already-signed victim transaction is enqueued first. The hostile transaction is enqueued later with a higher tip. Anvil's explicit fee ordering mines the attacker at index 0 and the victim at index 1 in the same block.
  7. The hostile registration mints directly from zero to the victim with the expected resolver and a nonzero hostile subregistry. The victim session reaches the registrar's register call and reverts with 0x477707e8 = NameNotAvailable(label); the atomic revert also rolls back resolver deployment/configuration and the intent nonce.
  8. The production orchestrator returns FAILED for a real public IntentExecutor fill that terminated at the registrar. The installed competition-pinned @rhinestone/sdk polls that production record directly and constructs its genuine IntentFailedError. A separate mounted frozen-Manager test uses the same FAILED wire shape to prove Warp wraps it as TransactionSubmissionError, the nested poll rejects, and the unchanged waitingForRhinestoneBundle.onError -> verifyingRegistration branch runs.
  9. The attacker's state is REGISTERED, names the victim as latestOwner, and stores the expected resolver, so the incomplete verifier returns { verified: true } without reading the hostile subregistry, receipt, event, or resolver code. Manager clears the failure and renders Registration Complete! with no hostile-registry warning.
  10. Universal Resolver follows the hostile subregistry for descendants and resolves pay.<label>.eth to the attacker.

The local ordering result is deterministic evidence that a builder can choose this order; production inclusion remains probabilistic. If the hostile registration lands before Manager's final availability/price construction, Manager fails before submission. If it lands after the victim fill, it loses. Commitment maturity makes the attacker eligible; it does not guarantee this final inclusion win.

Exact post-state and differential

The primary session proof produces this post-state after the same-block contest:

Field Clean signed-session control Hostile-first signed-session result
victim outer transaction succeeds reverts
inner registrar result succeeds NameNotAvailable("lead042-session-bundle-proof")
registry status REGISTERED REGISTERED
latestOwner victim 0xCB49…4C79 victim 0xCB49…4C79
resolver address expected 0x3f89…993B expected 0x3f89…993B
code at expected resolver deployed/configured none; victim batch rolled back
subregistry 0x0000…0000 attacker registry 0x7925…2415
failed session nonce not applicable unconsumed after rollback
Manager verifier valid clean result { verified: true }
child resolution intended resolver pay.lead042-session-bundle-proof.eth -> 0xCa74…b1b through attacker registry

The ordered block is 11,685,904. Hostile transaction 0x589e39e2aa21237b3f1ad1efae3086cf26567e47630430e74ed7795a62d38ce3 is index 0/success; victim session transaction 0x324523c2d8c1d5a26cee8ddecb9ff75c28c94c45c7a9d9d2999b8d4c18a8abf9 is index 1/reverted. debug_traceTransaction records IntentExecutor (0xf9225e8b) -> HCA (0xd691c964) -> ETHRegistrar.register (0xcff3e7c2) and the same 0x477707e8 return data at each failing level.

A supplementary mounted-state-machine proof uses a different deterministic victim and label to assert the fields omitted above: the registry mints from address(0) directly to the victim; victim roles equal the clean control; coordinator, helper, and attacker roles are all zero; no transfer or retained delegate is used; the installed SDK FAILED mapping rejects polling; and the mounted UI still reaches success and displays Registration Complete! with no subregistry/coordinator warning. It also proves the recovery described below. The clean control uses the same label and five Manager calls, succeeds, leaves subregistry zero, deploys the resolver, and resolves the parent to the victim.

Public Sepolia ordering observation and its boundary

Three independent observations bridge the local proof to live Warp/session behavior without any shared-network write.

1. Exact signed public reveal replay. Public Sepolia reveal transaction 0xb38b…7879 contains 4,474 signed bytes (SHA-256 a557860af07ec18cf99076d1691f5c1cae0d9f681799842955f5636d72e28ea6). It was sent by relayer 0x4656…A28e to deployed IntentExecutor for HCA 0xd637…58e3. On the block-11,682,690 fork, the HCA reports owner 0xBa70…0eFb and deployed validator 0x5f24…F0F7E reports permission ID 0x5963…6802 enabled. The unmodified raw transaction succeeds cleanly. After snapshot rollback, the same raw victim transaction enters the local pool first; a later hostile registration with priority fee 2,000,000 versus the victim's 1,000,000 is ordered first. Both mine in local block 11,682,696: hostile index 0 succeeds, identical victim bytes at index 1 revert with NameNotAvailable("hydroxamino"). This proves the exact enabled-session/executor consequence. The public transaction's Manager-app provenance is not independently established.

2. A real live terminal session fill and production status. Public Sepolia block 11,676,970 contains two adjacent fills from the same production relayer to the same deployed IntentExecutor and HCA. Transaction 0xce4b…961d, index 59, succeeds. Transaction 0xd7a9…1975, index 60, fails. Their session operation payloads are byte-identical (2,146 bytes; SHA-256 b1de88c2a81b6fd22579371f89ba0db32580c145fa000a24390e18928d38197b) and both reach the registrar. Exact raw-byte replay on a block-11,676,969 fork reproduces success then failure; the second decodes as CommitmentTooOld because the first consumed their shared commitment. Safe read-only GETs to the production SDK endpoint return HTTP 200 COMPLETED for public intent ID 4432482692933462003096786349150090565382649868015225675926211776048920053, with fill hash 0xce4b…961d, and HTTP 200 FAILED for public intent ID 42127326821927834843457600193509318702580032922730753082388002319588016. Exact response-body SHA-256 values are 5153aa439d336981d5040f448f77fa567a996cd76e13c397c74342f5538c0522 and 183b9b989c15c721d286276cfb3dadc40bea5304f4b56926de640f670d7a800d; the captured one-line bodies are:

JSON
{"status":"COMPLETED","claims":[],"destinationChainId":11155111,"fillTimestamp":1789068420,"fillTransactionHash":"0xce4b8331001976d672d02571f6d7846f847d09f7a2791c5aecebfc845da2961d","userAddress":"0x44bfbea6996c0d003fd1474c881e3a4f9f0eaf68"}
{"status":"FAILED","claims":[],"destinationChainId":11155111,"userAddress":"0x44bfbea6996c0d003fd1474c881e3a4f9f0eaf68"}

The requests used Manager's normal public browser client credential without printing or persisting it. This is not the hostile attack and not NameNotAvailable; it independently proves a real production-relayed session/executor registrar failure and its real FAILED status boundary.

3. Public pre-inclusion visibility. A passive eth_subscribe(newPendingTransactions) observer sent no transaction and received the same signed HCA registration pair from independent dRPC and PublicNode peers while immediate reads still returned blockNumber: null. The label-bearing reveal 0xa46e…80d5 was first observed 12.723 s before its eventual block timestamp. This establishes at least one publicly propagated label-bearing Warp-shaped reveal, but does not prove Manager provenance, universal propagation, or a later transaction winning.

Together, these facts show real signed HCA sessions, deployed IntentExecutor fills, public pre-inclusion visibility, a real on-chain terminal fill with production FAILED status, and the exact hostile-order consequence. They do not prove a hosted hostile NameNotAvailable fill, that every fill enters a public mempool, or a real-world success rate. The local hostile receipt adapter remains clearly local; the production FAILED body belongs to the separately identified public CommitmentTooOld fill. No credential was bypassed or disclosed, and no completed live exploit is claimed.

What the PoC models, and what it does not

The report separates four boundaries instead of claiming one synthetic run is the hosted production system:

Boundary Evidence Result and limitation
Manager construction + deployed session execution + ordering Primary clean-checkout bundle-session-e2e Real submitRevealBatchActor reads availability/price and creates the exact five calls; real owner authorization enables a session; deployed validator, HCA, refund-aware IntentExecutor, registrar, registry, factory, token, and Universal Resolver execute them. Victim is submitted first, attacker second/higher-tip, then fee-ordered hostile-first. Hosted SDK handoff is deliberately replaced by a local signed envelope.
Exact live signed bytes live-signed-replay.test.ts Replays an unmodified public relayer transaction through its real enabled HCA session, clean then hostile-first. This is a deterministic local fork, and Manager provenance is not claimed.
SDK and Manager failure handling production public-fill status, installed SDK, receipt-backed adapter, and mounted lead042-self-contained.test.tsx The real endpoint returns FAILED for an identified public failed fill, and the installed waitForExecution directly polls it and throws IntentFailedError. The mounted test uses the same status shape; real Warp transport wraps it, nested polling rejects, and unchanged verifier/machine/UI accepts the hostile state. IDs/local responses in that mounted test remain fabricated and clearly labeled; the remote body is attributed only to the real public fill.
Live reachability public raw transactions, production read-only statuses, and passive reads Proves production relayer/IntentExecutor/session fills, an on-chain terminal registrar failure with production FAILED, and at least one pre-inclusion label-bearing reveal. It does not prove hostile live ordering or builder frequency.

The primary proof no longer uses executeByOwner for the victim operation. It uses a deployed ens-standalone-hca.1.1.0, a real owner-authorized permission, session-key signature, Nexus ERC-1271 validation, gas-refund policy, and deployed IntentExecutor. The exact signed-live proof independently reaches the same executor and enabled session. The mounted UI supplement retains an owner-route on-chain consequence control only to keep its DOM/state-machine fixture compact; it is not the evidence for session reachability or ordering.

All harmful writes occur only on private forks. The PoCs use test-only balances/tokens, local snapshots, time advancement, and deliberate local mining policy. They do not use victim accounts, shared-network hostile commitments, a hosted submission method, or a shared-network attack transaction. The sole production-service calls are normal browser-client GETs for already-public intent IDs. The result proves technical exploitability and builder-order feasibility, not guaranteed or measured production success.

Recovery and user-visible warning

The informed victim keeps the normal full registry bitmap and can remove attacker control with one authorized call:

Solidity
PermissionedRegistry.setSubregistry(labelId, address(0));

That first transaction makes Universal Resolver stop selecting the hostile registry, and the zero-role attacker cannot restore the pointer. It does not fully restore the intended registration: because the victim reveal reverted atomically, the deterministic resolver address still has no code. The supplementary fork proof restores the intended working state in a second victim-authorized HCA transaction that executes the original resolver deployment/configuration calls, then confirms resolver code exists and Universal Resolver resolves the parent address to the victim.

The report therefore does not claim permanent bricking, parent theft, or unavailable recovery. The Critical program wording expressly includes assigning the registration's registry to an attacker during a Manager flow. Manager declares completion without reading, showing, or warning about that attacker registry or the undeployed resolver. Its registration flow gives the victim no diagnostic that either repair is needed.

Recommended fix

  1. Treat a known terminal HCA submission, fill, or receipt failure as failure. Do not route it to a generic state-only success check.
  2. Reserve recovery verification for genuinely ambiguous observation failures such as an RPC timeout where transaction outcome is unknown.
  3. Bind any recovery success to the submitted intent/fill/transaction and a successful intended NameRegistered event emitted by the expected ETHRegistrar.
  4. Also compare the complete intended post-state, including zero/expected subregistry, expected owner, expected resolver, deployed/configured resolver code, intended duration/expiry, and clean expected authority.
  5. Preserve and display the nested failure instead of clearing it when only a lookalike state exists.
  6. Add a regression where another commitment registers the same label to the expected owner/resolver but a hostile subregistry; the verifier must reject it.

Public-overlap fence

The current recursive census of audit_workspace/reports contains all 26 Markdown/PDF artifacts (15 Markdown and 11 PDF), including evidence READMEs and the current report. Every available prior submitted/confirmed report family was reviewed: #90254, #90446, #92510, #92535, controlling reopened #92552, and submitted/escalated LEAD-044, plus the remaining local reports and research. No same causal root and reciprocal complete fix were found.

Comparator Why it is not a reciprocal complete-fix duplicate
#90254 stale V1 migration authority Refreshing migration authority does not bind a failed HCA reveal to its receipt/full tuple; 042's provenance fix does not refresh migration state.

The original report as published on Immunefi, by IronsideSec. 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 success verifier compares only registration status, latest owner and resolver address, ignoring the subregistry, transaction provenance and receipt, so a state created by a different commitment is accepted as the victim's own registration.

Impact

The attacker could control child names under the victim's registration and the victim would be told the registration succeeded, though the report notes production inclusion remains probabilistic and the local ordering is only deterministic evidence.

What the attacker needed

Attacker knows label and victim wallet in advance; attacker commitment aged 60s to 86400s; attacker transaction mined before victim's; victim uses the Manager registration flow

The fix

The verifier should bind success to the submitted fill receipt and a NameRegistered event from the expected registrar, or compare every security-relevant field including the subregistry.

How it was found

  1. The attacker picks a target label and victim wallet and submits its own commitment at least 60 seconds in advance.
  2. The victim goes through the normal registration flow and matures a separate commitment with a zero subregistry.
  3. The Manager builds the reveal calls and the victim session signs them.
  4. The attacker sends a direct registrar transaction with a higher tip so it is mined before the victim's transaction in the same block.
  5. The attacker's registration mints the name to the victim with the expected resolver but a hostile subregistry, and the victim's reveal reverts with NameNotAvailable.
  6. The Manager's verifier sees registered status, victim owner and expected resolver, clears the error and shows Registration Complete.

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 register a name, the app is supposed to confirm that your own transaction actually succeeded. Here it only checked that the name now exists, is owned by you, and points at the expected resolver, so a name set up earlier by someone else looked identical. The missing check was who controls subdomains of that name, which let the attacker keep control of anything placed underneath it.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by IronsideSec

View all

28 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.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.