After abandoning Alpha and switching Portal to Bravo, the surviving registration actor later submits register(Alpha, ...) while Portal displays Bravo
Portal's registration state machine is created without being keyed to the selected name, so after a user abandons an Alpha registration and navigates to Bravo, the old actor survives and later submits a registrar transaction for Alpha while the page shows Bravo. The user then authorises a wallet transaction for the wrong name and pays the Alpha price.
- Disclosed after under an hour
93116 w a critical after abandoning alpha and switching portal to bravo the surviving registration actor later submits register alpha while portal displays bravo
Submitted on Sep 14th 2026 at 09:56:43 UTC by @manvi for Audit Competition | ENS
- Report ID: #93116
- 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
Brief / Intro
I analysed the Portal registration lifecycle and found a deterministic cross-name actor-lifecycle bug that violates the registration-name / reviewed-resource integrity boundary.
Portal's /register page stores the selected name in a search parameter. RegisterName creates useRegistrationTransactions({ name, duration }), and that hook creates one XState registrationMachine actor with:
useActorRef(registrationMachine, {
input: { chainId },
})
The actor is not keyed by name.
When registration starts for Alpha, the machine snapshots:
context.name = Alpha
and independently progresses through resolver deployment, commitment, approval, commitment cooldown, and final registration.
While the machine is in commitmentCooldown, the user can close the transaction modal and use Portal's sidebar search to navigate from:
/register?name=Alpha
to:
/register?name=Bravo
Portal explicitly asks whether the user wants to leave the in-progress registration. If the user accepts, Portal updates the current registration page and checkout to Bravo.
However:
- the navigation path does not send
CANCELto the Alpha registration actor; - the app-wide route-reset hook only closes the transaction modal;
- closing the transaction modal does not cancel pending registration state;
- the registration actor still contains
context.name = Alpha; - after the commitment cooldown expires, the machine autonomously enters
registeringDomain; submitRegistrationActor()encodescontext.nameinto the actual registrar call;transactionManager.startTransaction()immediately starts the prebuilt request;- the connected wallet is therefore asked to submit
register(Alpha, ...)while Portal is displaying Bravo.
The browser-to-chain PoC reproduced the wrong-name transaction and its economic consequence:
[AUDIT SWITCH]
current=portal-bravo-mtwxqxch.eth
Bravo-total-usd=8.01
abandoned-Alpha-total-usd=160.11
[AUDIT STALE REQUEST]
current-ui=portal-bravo-mtwxqxch.eth
current-total-usd=8.01
pending-register-label=pxch
wallet-send-pending=1
[AUDIT POST]
Alpha=pxch.eth available=false
Bravo=portal-bravo-mtwxqxch.eth available=true
current-Bravo-total-usd=8.01
actual-USDC-debit=160.109598
The E2E completed with:
1 passed (1.3m)
POC RETURN CODE: 0
This Portal reproduction does not depend on delaying or reordering an RPC response. Once Alpha has reached its ordinary commitment cooldown, the stale actor survives normal Portal navigation and later wakes on its own.
Vulnerability Details
1. Portal represents the registration name as a search parameter on one stable /register/ route
Affected file:
apps/portal/src/routes/register/index.tsx
Frozen source:
15 const RegisterPage = () => {
16 const { name } = Route.useSearch()
...
39 ) : (
40 <RegisterName name={name} />
41 )}
...
48 export const Route = createFileRoute('/register/')({
49 component: RegisterPage,
50 validateSearch: (search: Record<string, unknown>): RegisterSearch => {
51 const rawName = typeof search.name === 'string' ? search.name : undefined
52 const name = rawName?.trim() && rawName !== '.eth' ? rawName : undefined
53 return {
54 name,
55 }
56 },
57 })
The resource identity is therefore:
route = /register/
name = search parameter
A name change does not inherently imply a different route component.
2. Portal's own search performs an in-app /register search-parameter transition
Affected file:
apps/portal/src/features/dashboard/components/HomeSearchInput.tsx
Frozen source:
76 const navigateToRegister = useCallback(
77 (name: string) => {
78 const nameWithEth = name.includes('.') ? name : `${name}.eth`
79 navigate({ to: '/register', search: { name: nameWithEth } })
80 },
81 [navigate],
82 )
This is the exact Alpha → Bravo navigation used by the PoC. It is not a full page reload.
3. useRegistrationTransactions creates the registration actor without binding its lifecycle to name
Affected file:
apps/portal/src/features/register/hooks/useRegistrationTransactions.ts
Frozen source:
66 export const useRegistrationTransactions = ({
67 name,
68 duration,
69 }: UseRegistrationTransactionsParams) => {
...
80 const actor: RegistrationMachineActor = useActorRef(registrationMachine, {
81 input: { chainId },
82 })
The actor input is:
chainId
not:
chainId + current registration name
There is also no effect in this hook that watches name and cancels/recreates the actor when the selected name changes.
This is the lifecycle root of the bug.
4. Alpha is snapshotted into authoritative registration-machine context only when the flow starts
The Portal hook sends:
167 actor.send({
168 type: 'START_REGISTRATION',
169 name,
170 duration: BigInt(duration),
171 token: savedParams.tokenSymbol,
172 price: savedParams.tokenPrice,
173 signer,
174 accountAddress: connection.address,
175 publicClient,
176 })
The shared registration machine permanently snapshots that resource:
packages/transaction-manager/src/machines/registration/registration.machine.ts
539 START_REGISTRATION: {
540 target: 'settingUpRegistration',
541 actions: assign({
542 name: ({ event }) => event.name,
543 duration: ({ event }) => event.duration,
...
For an Alpha registration:
context.name = Alpha
Changing the React name prop later does not mutate this context.
5. The commitment itself is built from the snapshotted Alpha context
The machine's commitment preparation consumes:
910 preparingCommitment: {
...
921 return {
922 name: context.name,
923 owner: context.ownerAddress ?? context.accountAddress!,
924 duration: context.duration,
...
The same context.name is therefore used to create Alpha's real commitment.
This matters because the later final Alpha registration is not malformed. The old actor has a valid Alpha commitment and can successfully reveal/register Alpha after the cooldown.
6. Portal explicitly allows the user to leave the in-progress Alpha flow
Affected file:
apps/portal/src/features/register/components/RegisterName.tsx
Frozen source:
67 // Prevent navigation during registration
68 useBlocker({
69 shouldBlockFn: () => {
70 if (!isRegistering) return false
71 const shouldLeave = confirm(
72 'Your registration is in progress. Leaving may interrupt it and you could lose your commitment. Are you sure you want to leave?',
73 )
74 return !shouldLeave
75 },
76 })
The warning establishes the intended user-facing meaning of accepting navigation:
leaving may INTERRUPT registration
and may LOSE the commitment
It does not say:
the abandoned registration will continue in the background
and may later submit its final purchase while another name is current
The successful PoC captured exactly this warning and accepted it:
[AUDIT BLOCKER] Your registration is in progress. Leaving may interrupt it and you could lose your commitment. Are you sure you want to leave?
7. Accepting the navigation warning does not cancel Alpha
The only explicit reset helper in the registration hook is:
315 const resetRegistration = useCallback(() => {
316 actor.send({ type: 'CANCEL' })
317 closeModal()
318 clearTransaction()
319 }, [actor, closeModal, clearTransaction])
But normal Alpha → Bravo navigation does not call this helper.
The source search shows resetRegistration is created/exported by the hook but is not used by the Portal name-navigation path.
So:
user accepts "leave registration"
!=
registration actor CANCEL
8. Portal's global route-reset logic closes only the modal, not the registration actor
Affected file:
apps/portal/src/features/transaction-manager/hooks/useTransactionModal.ts
Frozen source:
26 /**
27 * Closes the transaction modal whenever the route changes.
...
36 export const useTransactionModalRouteReset = () => {
37 const router = useRouter()
39 useEffect(
40 () => router.subscribe('onResolved', () => closeTransactionModal()),
41 [router],
42 )
43 }
This handler only changes the app-wide modal atom.
It does not:
- send
CANCELto the registration machine; - clear the machine's
context.name; - clear the Alpha commitment;
- invalidate the actor;
- bind the actor to the new search parameter.
9. Closing the transaction modal also intentionally preserves non-failed transaction state
Affected file:
apps/portal/src/features/transaction-manager/components/TransactionModal.tsx
Frozen source:
47 const handleClose = () => {
48 closeModal()
49 }
...
55 open={isOpen}
56 onOpenChange={(open) => {
57 if (!open) {
58 handleClose()
59 // Only clear when transaction has failed - don't clear pending (tx may still be in wallet)
60 // or success (user might want to reopen and see the result)
61 if (txState?.error) {
62 clearTransaction()
63 }
64 }
65 }}
The modal close operation is therefore presentation state, not registration cancellation.
The PoC closes the modal after Alpha reaches commitmentCooldown; the Alpha actor remains alive.
10. After navigation, Portal's visible registration form and checkout are rebuilt from current Bravo
RegisterName consumes the current route/search name prop:
153 return (
154 <main ...>
...
161 <RegisterNameForm
162 name={name}
163 duration={duration}
...
167 <RegisterNameCheckoutSummary name={name} duration={duration} />
168 <PaymentTokenSection
...
173 name={name}
174 duration={duration}
...
The checkout summary directly prices the current prop:
apps/portal/src/features/register/components/RegisterNameSummary.tsx
47 export const RegisterNameCheckoutSummary = ({
48 name,
49 duration,
50 }: RegisterNameCheckoutSummaryProps) => {
...
58 } = useQuery({
59 ...getRegistrationPriceQueryOptions({
60 name,
61 duration,
62 }),
...
and renders:
279 <SummaryRow
280 label="Total"
281 value={formatRegistrationTotal(
282 price.base,
283 price.premium,
284 price.decimals,
285 )}
...
Therefore, after Alpha → Bravo:
current route/search name = Bravo
current visible form name = Bravo
current checkout price = Bravo
old registration actor = Alpha
The successful run measured:
Alpha displayed total = $160.11
Bravo displayed total = $8.01
11. Portal's modal transaction descriptors also rebuild from the current Bravo prop
Within useRegistrationTransactions, the modal transaction descriptions and preview intent use the live React name:
192 const transactions: Transaction[] = useMemo(() => {
...
195 id: REGISTRATION_TX_IDS.deployResolver,
196 title: 'Deploy resolver',
197 transactionName: `Deploy resolver for ${name}`,
...
222 id: REGISTRATION_TX_IDS.commit,
223 title: 'Submit commitment',
224 transactionName: `Commit to register ${name}`,
...
256 steps.push({
257 id: REGISTRATION_TX_IDS.register,
258 title: 'Register name',
259 transactionName: `Register ${name}`,
...
268 ...encodeRegisterCall({
269 name,
...
After the search parameter becomes Bravo, these UI/preview descriptors are rebuilt around Bravo even though the running machine still holds Alpha.
This is a direct source-level split between:
CURRENT REVIEW DESCRIPTOR = Bravo
RUNNING EXECUTION ACTOR = Alpha
12. Alpha's registration actor autonomously wakes after commitment cooldown
Affected file:
packages/transaction-manager/src/machines/registration/registration.machine.ts
Frozen source:
1141 commitmentCooldown: {
1142 entry: ['logTransition'],
1143 invoke: {
1144 src: 'waitAfterCommitment',
...
1153 onDone: [
...
1160 { target: 'registeringDomain' },
1161 ],
For the Portal EOA path, when the cooldown finishes the machine transitions to:
registeringDomain
No new START_REGISTRATION event is required.
No new Portal "Register Bravo" button click is required.
No asynchronous Alpha callback has to race with Bravo.
The already-running Alpha actor simply continues.
13. registeringDomain explicitly feeds stale context.name into the final registration actor
Frozen source:
1379 registeringDomain: {
1380 entry: ['logTransition'],
1381 invoke: {
1382 src: 'submitRegistration',
1383 input: ({ context }) => ({
1384 name: context.name,
1385 commitment: context.commitment!,
1386 signer: context.signer!,
1387 duration: context.duration,
1388 selectedToken: context.selectedToken,
1389 owner: context.ownerAddress ?? context.accountAddress!,
1394 publicClient: context.publicClient!,
1396 resolverAddress: context.resolverAddress!,
1397 id: REGISTRATION_TX_IDS.register,
1398 }),
At the vulnerable point:
context.name = Alpha
Portal prop = Bravo
14. The actual registrar calldata directly encodes stale Alpha
Affected file:
packages/transaction-manager/src/machines/registration/registration.actors.ts
Shared encoder:
223 export function encodeRegisterCall({
224 name,
...
237 }): { to: Address; data: Hex; value: bigint } {
238 return {
239 to: ENS_SEPOLIA_CONTRACTS.ETHRegistrar,
240 data: encodeFunctionData({
241 abi: ethRegistrarRegisterSnippet,
242 functionName: 'register',
243 args: [
244 name.replace('.eth', ''),
245 owner,
246 secret,
247 zeroAddress,
248 resolverAddress,
249 duration,
250 paymentToken,
251 REFERER_ADDRESS,
252 ],
253 }),
254 value: 0n,
255 }
256 }
Final submission:
924 const registerCall = encodeRegisterCall({
925 name: input.name,
926 owner: input.owner,
927 secret: input.commitment.secret,
928 duration: input.duration,
929 paymentToken: normalizedPaymentToken,
930 resolverAddress: input.resolverAddress,
931 })
933 const request = createTransactionRequest({
934 signer: input.signer,
935 from: accountAddress,
936 chainId: input.publicClient.chain?.id ?? sepolia.id,
937 calls: [registerCall],
938 })
940 const txId = transactionManager.startTransaction(
941 {
942 type: 'custom',
943 request,
944 },
945 input.signer,
946 {
947 id: input.id,
948 description: `Register ${input.name}.eth`,
949 publicClient: input.publicClient,
950 timeout: 120_000,
951 },
952 )
For the reproduced stale actor:
input.name = pxch.eth
so the actual request encodes:
register("pxch", ...)
15. startTransaction() immediately starts the prebuilt stale request
Affected file:
packages/transaction-manager/src/providers/transactionManager.ts
Frozen source:
225 const txId = transactionOptions.id || generateTransactionId()
227 // Create and start the transaction actor
228 const actor = createActor(transactionMachine, {
229 input: {
230 intent,
231 request,
232 signer,
233 publicClient,
234 options: transactionOptions,
235 chainId,
236 useSmartAccount,
237 },
238 })
...
251 actor.start()
This is not merely a stale preview object saved somewhere.
The transaction actor is started immediately.
16. A prebuilt request transitions directly into transaction submission
Affected file:
packages/transaction-manager/src/machines/transaction.machine.ts
Frozen source:
349 idle: {
350 always: [
...
357 {
358 // If we have a pre-prepared request, skip to submitting
359 guard: ({ context }) => !!context.request && !!context.publicClient,
360 target: 'submitting',
361 },
362 ],
...
427 submitting: {
428 invoke: {
429 src: 'submitTransaction',
430 input: ({ context }) => ({
431 request: context.request,
432 signer: context.signer,
433 options: context.options,
434 publicClient: context.publicClient,
435 }),
The Alpha request therefore proceeds to the wallet without requiring Portal to reconstruct it from the current Bravo route.
17. Downstream EOA validation checks the signer, but cannot correct the wrong ENS name
Affected file:
packages/transaction-manager/src/actors/eoa-transport.actor.ts
Frozen source:
35 // Verify the request's declared `from` matches the account the wallet will
...
39 const walletAddress = walletClient.account?.address
40 if (!walletAddress || !isAddressEqual(walletAddress, eoaRequest.from)) {
...
48 }
50 // Build transaction params
52 const txParams: any = {
53 account: eoaRequest.from,
54 to: eoaRequest.to,
55 value: eoaRequest.value,
56 data: eoaRequest.data,
...
70 return safeSendTransaction(walletClient, txParams)
This correctly prevents a sender/account mismatch.
It does not know that the Portal UI has switched from Alpha to Bravo, and it does not decode/rebind the ENS label.
So no downstream transaction validation repairs the stale resource.
18. Runtime directly captured the exact stale registrar label before authorization
The PoC wraps the headless wallet's eth_sendTransaction request and decodes calls sent to the real ENS registrar.
The successful run observed:
[AUDIT STALE REQUEST]
current-ui=portal-bravo-mtwxqxch.eth
current-total-usd=8.01
pending-register-label=pxch
wallet-send-pending=1
This is the decisive transaction-integrity boundary:
CURRENT APPLICATION RESOURCE = Bravo
ACTUAL PENDING REGISTER CALL = Alpha
The PoC did not infer the label from UI text. It decoded the actual pending registrar calldata.
19. Authorizing the stale request causes real wrong-name chain state and the Alpha-sized debit
The same run then authorized the single pending wallet transaction and read direct local-chain state:
[AUDIT POST]
Alpha=pxch.eth available=false
Bravo=portal-bravo-mtwxqxch.eth available=true
current-Bravo-total-usd=8.01
actual-USDC-debit=160.109598
This establishes:
Alpha registration succeeded
Bravo was not registered
victim balance decreased by Alpha-sized amount
The result is authoritative contract/payment state, not presentation.
20. Success handling uses the current React name, creating a second source-level resource split
Affected file:
apps/portal/src/features/register/hooks/useRegistrationSuccessRedirect.ts
Frozen source:
33 useEffect(() => {
34 if (hasRedirectedRef.current) return
35 if (!isSuccess) return
...
39 const redirectToProfile = () =>
40 navigate({
41 to: '/$name',
42 params: { name },
43 search: { registered: true, duration: durationSeconds, paid },
44 replace: true,
45 })
...
73 }, [isSuccess, name, durationSeconds, paid, navigate, queryClient])
If the stale Alpha actor reports success after the route has become Bravo, this hook consumes the current Bravo prop.
That is consistent with the same underlying divergence:
machine success resource = Alpha
current React resource = Bravo
The core Critical impact does not rely on this redirect behavior, but it is additional evidence that registration state and route resource are not bound together.
Complete Data Flow
/register?name=Alpha
↓
RegisterName(name=Alpha)
↓
useRegistrationTransactions(name=Alpha)
↓
useActorRef(registrationMachine, { input: { chainId } })
↓
START_REGISTRATION(name=Alpha)
↓
registrationMachine.context.name = Alpha
↓
resolver deployment
↓
Alpha commitment generated + submitted
↓
token approval (if needed)
↓
commitmentCooldown
↓
user closes modal
↓
Portal sidebar search navigates:
/register?name=Alpha
→
/register?name=Bravo
↓
useBlocker warning accepted
↓
current React name = Bravo
current checkout = Bravo
current total = Bravo price
↓
NO CANCEL is sent to Alpha registration actor
↓
old actor still has:
context.name = Alpha
context.commitment = Alpha commitment
↓
cooldown expires
↓
registeringDomain
↓
submitRegistration(name=context.name)
↓
encodeRegisterCall(name=Alpha)
↓
ETHRegistrar.register("Alpha", ...)
↓
transactionManager.startTransaction()
↓
transaction machine immediately submits request
↓
Portal still displays Bravo
↓
victim authorizes pending wallet transaction
↓
Alpha REGISTERED
Bravo AVAILABLE
Alpha-sized USDC debit
Why This Is Not Merely a UI/UX Issue
The bug does not stop at a stale label.
The successful PoC decoded the actual pending wallet calldata:
pending-register-label=pxch
while the current Portal page was:
current-ui=portal-bravo-mtwxqxch.eth
After authorization, direct contract reads established:
Alpha available = false
Bravo available = true
and a direct ERC-20 balance read established:
actual USDC debit = 160.109598
Therefore the vulnerable consequence is real chain/payment state.
Why This Is Not Intended Design
Portal itself warns:
"Your registration is in progress. Leaving may interrupt it and you could lose your commitment. Are you sure you want to leave?"
That warning communicates that leaving may interrupt the registration and lose the commitment.
A design in which accepting that warning:
1. switches the application to Bravo;
2. displays Bravo's registration page;
3. keeps Alpha executing invisibly;
4. only afterward constructs a new real final register(Alpha) wallet transaction;
is inconsistent with the user-facing lifecycle semantics.
The $160.11 Alpha versus $8.01 Bravo price difference makes the consequence easier to see, but the lifecycle violation exists independently of that amount difference.
The intended invariant should be:
current Portal registration name
==
running registration actor name
==
name encoded in the next wallet transaction
or, at minimum:
if registration route/search name changes
then the previous registration actor must be cancelled or isolated
before any later wallet authorization can be generated
Why Earlier Alpha Actions Do Not Make the Final Stale Transaction Safe
The user legitimately performed earlier Alpha setup operations, including the Alpha commitment and the token allowance required for Alpha's checkout. Those earlier operations are not claimed to be unauthorized.
That distinction matters.
The bug occurs only after the user explicitly leaves Alpha and Portal has transitioned to Bravo:
Alpha commitment + token approval completed while Alpha is current
↓
machine reaches commitmentCooldown
↓
user explicitly accepts Portal's "leave registration" warning
↓
Portal becomes Bravo
↓
Portal displays Bravo and Bravo's $8.01 checkout
↓
old Alpha actor is still alive
↓
only now does it create the final register(Alpha) wallet transaction
A triager can fairly argue that the user knowingly granted Alpha's allowance earlier. That weakens any attempt to frame the amount itself as a separate wrong-amount authorization bug.
It does not answer the wrong-name issue.
The final registrar calldata is a new security-sensitive transaction generated after the application has moved away from Alpha. Immediately before that transaction is authorized:
current Portal resource = Bravo
encoded registrar label = Alpha
The navigation warning also tells the user that leaving may interrupt the flow or lose the commitment. It does not disclose that Portal will keep Alpha running invisibly and later generate the final Alpha registration transaction while a different name is current.
Accordingly, this report relies on the post-switch wrong-name transaction as the Critical invariant violation. The Alpha-sized debit is supporting evidence of the consequence of executing that wrong transaction.
Why the Amount Divergence Is Supporting Evidence, Not the Core Severity Claim
Portal's Alpha flow performs the token-approval step before the user abandons Alpha. The amount passed into that approval is derived from Alpha's saved checkout state:
savedParams.tokenPrice = Alpha price
and the registration steps progress through:
deployResolver
→ commit
→ approve
→ register
The successful PoC reaches commitmentCooldown only after the earlier Alpha approval has completed.
Therefore this report does not argue that the victim first authorizes Alpha's 160.109598 USDC amount while looking at Bravo. A reviewer could correctly say that the allowance for the Alpha amount was originally granted while Alpha and its $160.11 checkout were visible.
That does not repair the security bug.
The decisive transaction-integrity violation happens later:
Alpha approval/commitment already exists
↓
user accepts Portal's "leave registration" warning
↓
Portal transitions to Bravo
↓
current page/checkout = Bravo
↓
old Alpha actor later creates NEW registrar calldata
↓
pending wallet transaction = register(Alpha, ...)
The new post-switch security-sensitive object is the registrar transaction itself. Its encoded ENS label is Alpha even though the active Portal registration resource is Bravo.
The price spread is therefore used only to show that this stale-resource execution is materially consequential:
abandoned Alpha checkout = $160.11
current Bravo checkout = $8.01
actual stale Alpha debit = 160.109598 USDC
The Critical mapping stands on the wrong ENS name in the post-switch wallet transaction, even if the amount divergence is treated only as impact evidence.
Why the Wallet Authorization Does Not Repair the Application Error
The final EOA request contains encoded registrar calldata.
The transaction manager validates that the connected wallet's address matches request.from, which is correct and unrelated to the stale name.
No Portal layer revalidates:
encoded ENS label == currently displayed ENS name
before sending the request.
The application therefore reaches the wallet boundary with already-divergent security-sensitive transaction data.
A sophisticated wallet may expose raw calldata or decode the method; that does not remove the application vulnerability. The scoped impact concerns the application presenting/pre-filling incorrect transaction details and causing the user to submit an unintended transaction. Portal itself generated the stale calldata after it had transitioned to Bravo.
Why the PoC Does Not Manufacture the Bug
The PoC does not:
- delay or forge an RPC response;
- modify registrar responses;
- edit XState/React internals;
- change application state through devtools;
- substitute calldata;
- alter resolver state;
- change the wallet request;
- require a malicious RPC;
- require an attacker-controlled backend;
- require a race between Alpha and Bravo network requests.
It simply:
- runs Alpha through Portal's ordinary production registration flow;
- waits until the real Alpha actor reaches the real commitment cooldown;
- closes the modal through the UI;
- navigates through Portal's own search UI to Bravo;
- accepts Portal's real navigation warning;
- waits for the existing Alpha cooldown to expire;
- inspects the real wallet request generated by production code;
- authorizes it;
- reads real local-chain post-state.
The stale continuation is therefore deterministic from application lifecycle behavior.
E2E_MOCK_INDEXER=true Does Not Mock the Security-Sensitive Result
The local E2E run uses:
E2E_MOCK_INDEXER=true
The decisive assertions in this PoC are not derived from an indexer response.
The PoC directly performs local-chain reads against:
- the ENS registrar's
isAvailable(label); - the USDC token's
balanceOf(owner).
The critical transaction is the real production eth_sendTransaction request produced by Portal and decoded before authorization.
The final state:
Alpha available = false
Bravo available = true
victim USDC decreased by 160.109598
therefore comes from authoritative local contract state.
An indexer mock cannot create the decoded stale registrar label, make the registrar transaction succeed, or debit the ERC-20 balance.
Why This Is Different From the Previously Reported Portal Stale-Recipient Transfer
The previously reported Portal transfer issue has a different mechanism:
same transfer flow
recipient A captured during async preparation
user edits recipient to B
old preparation completes
transfer calldata still targets A
This registration issue is:
registration actor snapshots name A
commitment for A succeeds
user
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 registration state machine actor is created with only the chain ID as input and is never cancelled or recreated when the selected name changes, so it keeps the original name in its context.
Impact
The user could authorise a registrar transaction for a name they had abandoned, registering the wrong name and paying its price instead of the displayed one.
What the attacker needed
A connected wallet; user starts a registration; user switches to another name; user accepts the leave warning
The fix
The registration actor should be cancelled or recreated whenever the selected name changes, so the running registration always matches the displayed name.
How it was found
- Start a registration for one name and let it reach the commitment cooldown stage.
- Close the transaction modal.
- Use the sidebar search to navigate to a different name's registration page.
- Accept the warning about leaving the in-progress registration.
- Wait for the cooldown to expire so the old actor submits its registration.
- Authorise the pending wallet transaction, which registers the first name instead of the displayed one.
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 web page keeps a background 'worker' that remembers which name you started registering. When you switch to a different name, the page shows the new name but never tells the old worker to stop. Later the old worker wakes up and asks your wallet to buy the first name, even though the screen shows the second one.
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.