Explorer's name page asserts "You are the owner of <name>" and a "Paid" figure taken verbatim from the URL query string, on any name for any visitor, beside an ownership-free button
The Explorer's name profile page trusted URL query parameters and displayed 'You are the owner of <name>' plus an attacker-chosen term and 'Paid' figure to any visitor, while the page's only call to action let that visitor pay to extend the attacker's registration. A victim following a crafted link could approve and submit renewal transactions from their own wallet, spending real funds on a name they do not own.
Originally disclosed on Immunefi
- Disclosed after under an hour
92544 w a low explorer s name page asserts you are the owner of name and a paid figure taken verbatim from the url query string on any name for any visitor beside an ownership free button
Submitted on Sep 10th 2026 at 15:31:38 UTC by @br0nz3p1ck4x3 for Audit Competition | ENS
- Report ID: #92544
- Report Type: Websites & Apps
- Report severity: Low
- Target: https://github.com/immunefi-team/audit-comp-ens/tree/audit-comp-ready/apps/portal
- Impacts:
- Malicious interactions with an already-connected wallet, such as: Modifying transaction arguments or parameters Substituting contract addresses Submitting malicious transactions Signing or submitting a transaction against the wrong chain (for example when the request's target chain is not validated) Inducing a blanket token approval (for example setApprovalForAll on the registry or NameWrapper) to an attacker-controlled address
Description
Summary
/$name/ is the Explorer's profile page and the landing page for every ENS name. It declares three search params and trusts all three:
// apps/portal/src/routes/$name/index.tsx:51-59
const validateNameSearch = (search: Record<string, unknown>): NameSearch => {
if (search.registered !== true && search.registered !== 'true') return {}
const duration = Number(search.duration)
return {
registered: true,
duration: Number.isFinite(duration) ? duration : undefined,
paid: typeof search.paid === 'string' ? search.paid : undefined,
}
}
The only test is that registered equals true; duration is any finite number and paid any string. Nothing checks that a registration occurred, that this visitor made it, or that this visitor owns the name. On that basis the page renders:
// apps/portal/src/features/register/components/RegistrationSuccessBanner.tsx:23-37
<p …>Congratulations!</p>
<p className="text-p">You are the owner of {name}</p>
<p className="text-h3">{formatRegistrationDuration(durationSeconds)}</p>
<p className="text-p">Registration</p>
<p className="text-h3">{paid}</p>
<p className="text-p">Paid</p>
So https://<explorer>/attacker.eth/?registered=true&duration=315360000&paid=$0.00%20(free) makes the Explorer tell the visitor, in the app's own voice and on the app's own origin, that they own a name they have never touched, for a term and a price the attacker chose.
Two facts turn that from a cosmetic lie into a funds-moving one:
- The app has the truth on the same screen and prints the opposite. In the executed capture below the page simultaneously reads
You are the owner of poc-ens-support.eth,Owner … 0x0000…11Ac(three rows lower, fromownerQuery.data.owner) and a connected wallet of0xf39…266. - The only call to action on that page spends the visitor's money on that name.
ExtendNameButtoncarries no ownership condition (routes/$name/index.tsx:374-379) anduseCanExtendno ownership term (useCanExtend.ts:67). Completing the flow sendsapprove()+renew()from the visitor's wallet and extends the attacker's registration.
Driven end to end through the real UI in headless Chromium against a local Anvil fork of Sepolia, starting from nothing but the attacker's link, the victim's wallet paid 8.021939 USDC and the attacker's name's expiry moved from Sep 10 2027 to Sep 10 2028. Ownership did not change.
What is false here, and what is not
Stated up front, because it decides which impact row applies.
Correct on every screen the victim sees: the recipient is the deployment's real ETHRegistrar (0xa885…a2Cc), the intended recipient of a renewal; the calldata is renew("poc-ens-support", …), exactly the name displayed; the amount is $8.02 on the confirmation screen and 16043878 in the approve(), the true price. No address is substituted and no field of the calldata diverges from what is rendered.
False: an ownership-status assertion about the visitor, made by the application in its own voice on its own origin — "You are the owner of X" — together with a term and a "Paid" figure the attacker chose. That assertion is the premise on which the victim approves an otherwise correctly-described transaction.
So this is not the "wrong recipient or amount" case. It is the already-connected-wallet case: the app induced a transaction out of a connected wallet on an attacker-authored premise. That is RULES.md:903-904, and that is what this report claims; the Critical row is argued as an alternative below, not as the claim.
Impact
Precondition on the victim: none beyond a wallet and opening a link. Precondition on the attacker: one ordinary .eth registration — 8.000021 USDC on the audited deployment — with no interaction with the victim, no approval, no NFT push and no on-chain relationship of any kind.
The chain: the attacker registers a plausible name (ens-support.eth, ens-refund.eth) and sends the victim https://<explorer>/ens-support.eth/?registered=true&duration=315360000&paid=%240.00%20(free) — the real Explorer, real domain, over TLS, nothing spoofed. Before any wallet is connected the page already reads "Congratulations! You are the owner of ens-support.eth", "9 years 11 months 27 days / Registration", "$0.00 (free) / Paid". Once the victim connects — or is already connected, since the Explorer persists the connection — the page also offers Extend, and completing that flow builds approve(ETHRegistrar, price × 2) and renew(label, duration, paymentToken, referrer), both from the victim. The victim's USDC is gone, the attacker's registration is a year longer, and the attacker's ownership is untouched.
What the page asserts against what is true, all four values read off the same rendered page in the executed capture:
| Rendered by the app | Source of that value | What is actually true |
|---|---|---|
You are the owner of poc-ens-support.eth |
?registered=true (index.tsx:83-87) |
The connected wallet owns nothing. Owner = 0x0000…11Ac |
9 years 11 months 27 days / Registration |
?duration=315360000 |
The registration is 1 year; the page's own Expires row says Sep 10, 2027 |
$0.00 (free) / Paid |
?paid=…, rendered verbatim |
Nothing was paid by this visitor. The attacker paid 8.000021 USDC |
Owner … 0x0000…11Ac |
getEnsOwner(name), on-chain |
correct — and it is the attacker, not the visitor |
The victim then submits two transactions the app builds itself: Approve USDC for v2 renewal → approve(0xa885…a2Cc, 16043878) on MockUSDC (useRenewalTransactions.ts:147-160 → intents.ts:42-58), and Extend poc-ens-support.eth → renew("poc-ens-support", 31622400, 0x768F…67a39, 0x00…00) on the ETHRegistrar (useRenewalTransactions.ts:190-217); both are decoded off the chain below. The victim's action is ordinary — the app produces this URL shape itself after a real registration (useRegistrationSuccessRedirect.ts:39-45), and clicking the page's one primary button is not an action outside a normal workflow.
Why RULES.md:999 (reflected plain text injection) does not close this
The program excludes "Reflected plain text injection (e.g. url parameters, path, etc.) — this does not exclude reflected HTML injection with or without JavaScript, or persistent plain text injection" (RULES.md:999) — the cleanest close available against a finding that starts with a query string, so it is answered head-on.
Conceded — paid and duration are the reflected half. $0.00 (free) is the attacker's own string, printed verbatim from ?paid= (RegistrationSuccessBanner.tsx:35), and ?duration=315360000 renders as 9 years 11 months 27 days. If they were the whole finding, RULES.md:999 would apply and this would not have been filed.
They are not the load-bearing half — registered is, and it is not text. It is a boolean flag: nothing an attacker writes is rendered from it, and it merely selects between two of the app's own rendering branches (index.tsx:83-87, :358-360). The sentence that does the damage — "You are the owner of {name}" — is authored in the app's source at RegistrationSuccessBanner.tsx:26, and {name} is the route path. What the attacker controls is whether the application makes its own ownership assertion about the visitor, not what characters land on the page: a missing authorization check in validateNameSearch, a state defect rather than injected content.
The exclusion's own boundary points the same way. By expressly not excluding reflected HTML or persistent plain text, it aims at the case where echoing a string back is the entire impact. Here the impact is approve() + renew() from an already-connected wallet and 8.021939 USDC gone, executed on chain. And if the banner is nonetheless read as content modification, the row that fits is in scope: "Injecting/modifying the static content … without JavaScript (reflected)", RULES.md:927, a Medium. Medium is the floor here, not zero.
The extend modal does warn, and this report does not argue that away
Before any funds move, the victim clicks I Understand on this sentence (ExtendNameDisclaimer.tsx:14-17, captured verbatim in the PoC):
Extending a name does not change the owner. Extending a name you do not own will not give you ownership of it.
That is a real warning: it states the exact proposition being exploited, it appears before the spend, and the victim dismisses it, after which four further screens display the name, term, recipient and amount correctly. This report does not claim the victim was unwarned. It rests on the display defect — the app asserted from an unauthenticated URL that the visitor owns the name, then submitted a transaction from that visitor's already-connected wallet.
One structural fact about that screen is worth stating anyway. ExtendNameModal treats the disclaimer as the app's own "you do not own this" signal and skips it for owners:
// apps/portal/src/features/renew/components/ExtendNameModal.tsx:60-72
const isOwner = !!(address && ownerData?.owner && isAddressEqual(address, ownerData.owner))
useEffect(() => {
if (open && isOwner) {
setStep((current) => (current === 'disclaimer' ? 'settings' : current))
}
}, [open, isOwner])
So one screen computes ownership correctly from chain state — and, finding the visitor is not the owner, shows the warning — while the screen behind it has already told that visitor from the URL that they are the owner. The warning is also generic: on none of the four screens does it say that this visitor is not the owner, or name the owner. Neither point is offered as proof the victim could not have known; both show the app holds the correct answer at the moment it prints the wrong one.
Root cause
The trusted branch: three values straight off the query string
| File:line | Code |
|---|---|
routes/$name/index.tsx:45-49, 64 |
type NameSearch = { registered?: boolean; duration?: number; paid?: string }; validateSearch: validateNameSearch |
routes/$name/index.tsx:51-59 |
validateNameSearch — the only check is search.registered !== true && search.registered !== 'true'; duration is any finite Number, paid any string |
routes/$name/index.tsx:83-87 |
<p><code>const { registered, duration, paid } = Route.useSearch()</code><br><code>const registrationBanner = registered === true && duration !== undefined && paid !== undefined ? { durationSeconds: duration, paid } : null</code></p> |
routes/$name/index.tsx:358-360 |
{registrationBanner && (<RegistrationSuccessBanner name={name} {...registrationBanner} />)} |
RegistrationSuccessBanner.tsx:26, 31, 35 |
You are the owner of {name}, {formatRegistrationDuration(durationSeconds)}, {paid} — quoted above; {paid} is the attacker's string rendered as the app's own "Paid" figure |
There is no producer-side authentication of any kind. The legitimate producer is a client-side navigation — useRegistrationSuccessRedirect.ts:39-45 calls navigate({ to: '/$name', params: { name }, search: { registered: true, duration: durationSeconds, paid }, replace: true }). search is the address bar. Anyone can type it.
The chain-derived branch, on the same page, in the same component
The same component holds the true owner at routes/$name/index.tsx:91 (useQuery(getEnsOwnerQueryOptions({ name }))) and the true visitor at :131 (useConnection()), and renders the owner as a row at :393-397 (Owner … 0x0000…11Ac). Both operands the banner needs are in scope where its props are computed, and both are on the same screen. The banner consults neither.
The unconditional spend button on the same page
| File:line | Code |
|---|---|
routes/$name/index.tsx:374-379 |
{resolvedProtocolVersion !== 'ENSv1' && (<ExtendNameButton … />)} — the only condition is the protocol version |
features/renew/components/ExtendNameButton.tsx:34,46 |
const { canExtend } = useCanExtend({ name, protocolVersion }) … if (!canExtend) return null |
features/renew/hooks/useCanExtend.ts:67 |
`const canExtend = isExtendable2LD(selectedName) && (isV2 |
features/renew/utils/nameExtension.ts:61-74 |
isExtendable2LD — a .eth 2LD inside its grace window. No ownership term. |
That the ENS contracts allow anyone to renew any name is correct and is not the defect. The defect is that the page pairs that permissionless spend with an attacker-authored assertion that the spender owns the name.
Preempting the likely closure arguments
"The extend modal warns non-owners." It does, and that is conceded in full above. The finding is not that the victim was unwarned; it is that the application asserted ownership it had not checked, from a URL, while holding the correct answer in the same component scope, and then submitted a transaction from the visitor's already-connected wallet.
"Renewal is permissionless; anyone can renew anyone's name." Correct, and that is the premise, not the defect. The registrar renewed the name it was told to and charged the caller. The defect is that apps/portal pairs that permissionless spend with its own attacker-supplied assertion that the name is the visitor's, while holding the contradicting on-chain owner in the same scope (index.tsx:91).
"It's only a display bug / no funds are stolen." Funds move: 8.021939 USDC left the victim's wallet in 0x68dc2584… and 0x3769e66c…, unrecoverably — renew() has no refund path. RULES.md:903-904 does not require the funds to reach the attacker, only a malicious transaction submitted from an already-connected wallet.
"The search params come from the app's own redirect, so they are trusted." useRegistrationSuccessRedirect.ts:39-45 navigates with search: { registered: true, duration, paid }, and search is the address bar: no token, nonce, signature, origin check or chain read between the URL and the assertion.
"The victim has to click." The false display costs zero clicks and needs no wallet — captured below with the header reading Connect — because nothing in index.tsx:83-87 or RegistrationSuccessBanner.tsx reads the connection. The click is how it becomes a transaction.
"Sepolia is a testnet." It is where the audited code runs, and nothing in the defect is network-dependent: validateNameSearch, the banner, useCanExtend and useRenewalTransactions have no such branch.
"An attacker could just build a phishing site." Not this one: the assertion is served by the genuine Explorer, on the genuine origin, over the genuine certificate, alongside genuinely-correct on-chain data, and the wallet prompt is the real app's.
The Critical row, and why this report does not lead with it
RULES.md:891-892 is "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", illustrated by "resolving or rendering an ENS name to an attacker-controlled address" and "showing the wrong recipient or amount on a transaction the user then approves". Neither example is met, and the report does not pretend otherwise: as conceded above, the displayed address, the displayed name, the recipient and the amount are all correct. What is incorrect is an ownership-status assertion about the visitor, plus a "Registration"/"Paid" pair describing a past registration.
The row is argued in the alternative only on this reading: those values are transaction details the application displays, they are false, and the user submits a transaction on the strength of them. A reviewer who accepts it lands on Critical; one who does not still lands on RULES.md:903-904 (High), and at worst on RULES.md:927 (Medium). None of the three readings is zero.
#91314 was closed on an objection that lands on this PoC verbatim — here is the answer
Report #91314 (apps/portal, a victim paying to renew a name they do not own) was closed, with this reason on the record:
The report correctly identifies that the V1 names reader omits an ownership check that its sibling readers include … However, the submitted proof stops short of showing the claimed impact: the USDC spend it measures is produced by the test harness itself driving the victim account through the renewal flow, not by demonstrating that a real user would be induced to select and approve payment for a name they don't own. The wallet prompt a victim would see displays the correct name and amount, so the gap between a misleading list entry and an actual financial loss to a real victim is not bridged by the evidence provided.
That objection applies to the mechanics here too: a harness drives the victim account, and the wallet prompt does display the correct name and amount — conceded, and precisely why this report claims RULES.md:903-904 rather than the wrong-recipient row. The difference is what the objection turns on: the inducement. In #91314 it was a list entry — a name in a "your names" table because of an ensjs relation default — and the user had to decide, unprompted, to renew a row they had no reason to act on. Here there is nothing to select: the victim arrives on one name's page from a link, and the app states in its own authored sentence (RegistrationSuccessBanner.tsx:26) "You are the owner of poc-ens-support.eth", above a fabricated term and "Paid" figure, with Extend as the only call to action.
The harness clicks the app's own buttons in the app's own order — no injected state, no console calls, no direct contract calls. Every click is one a user makes; what this report supplies that #91314 could not is the application's own sentence telling the user to make them.
This is the #91851/#91722/#91837 family — and it supplies the element ENS said was missing
ENS has treated #91851, #91722 and #91837 as one family and graded it Insight on a stated basis (fgeorgescu, on #91851, Sep 8):
On classification, we are applying the same reading we applied to #91722 and #91837, which reach the same end state. The transaction sets a reverse record on the victim's own address naming a third party's name. No funds move, no name changes owner, and forward resolution of the victim's names is unchanged.
and, on #91837:
No name changes owner, expiry or records. Not a hijack or brick. No funds move and no approval is granted. Forward resolution is unchanged.
Both statements are precise, and both are satisfied on the opposite side here:
| ENS's stated test | This finding |
|---|---|
| "No funds move" | 8.021939 USDC left the victim's wallet, in 0x68dc2584… and 0x3769e66c…. Executed and decoded from the chain, not narrated. Not recoverable: renew() has no refund path. |
| "No approval is granted" | An approve(ETHRegistrar, 16043878) was submitted from the victim's wallet — 0x5e33665b… / 0x29233252… — for exactly 2 × the charge, built by useRenewalTransactions.ts:147-160. |
| "No name changes owner, expiry or records" | The expiry of a third party's name moved +31 622 400 s, paid for by the victim. Ownership is indeed unchanged — which is why the attacker's gain is a free year rather than a stolen name. |
| "Forward resolution is unchanged" | Agreed, and irrelevant: nothing here depends on resolution. |
The family was discounted because the induced transaction had no cost to the victim and no effect on any name. Here it has both — which, on ENS's own reasoning, is the element whose absence produced the Insight grade.
Not a duplicate
Against the submissions already filed in this competition:
| Report | Why this is not it |
|---|---|
#91851 (/$name/address offers "Set primary name" for an unrelated name) |
A missing authorization predicate on a write: canSetPrimaryName (AddressResolutionSidebar.tsx:454-458) checks wallet-equality but not authority over the name, and the harm is a setName(). This is a fabricated read — validateNameSearch (routes/$name/index.tsx:51-59) accepts an unauthenticated URL claim of ownership — and the harm is approve() + renew(). Neither fix touches the other's files. |
#89441 (allowMismatch certifies an unverified reverse record) |
Read-path bug in features/reverse-resolution/, about ENSIP-3 verification. No search params, no banner, no spend. |
#91314 (useV1NamesForAddress includes resolvedAddress; closed — answered above) |
Closest in spirit, but its root cause is an over-broad ensjs relation filter in a dashboard query. Here nothing is queried, and its fix (resolvedAddress: false) leaves this fully live. |
| #92043 / #90190 / #90163 (renewal sends the wrong label) | Raw-vs-normalized divergences in the calldata. Here the label is correct — renew("poc-ens-support", …) is exactly the name displayed. |
| #90307 (uint64 expiry crashes the names page) | A crash on a read of on-chain data. Here duration comes from the URL and does not crash — it renders, which is worse. |
| #89270 / #90161 / #91837 / #91900 / #91306 / #89279 / #89444 / #89445 / #89460 / #89462 / #91838 / #91839 | Different apps (apps/manager), subsystems (workers, packages/migration, packages/smart-account, packages/transaction-manager), or files. None involve /$name/ search params, the banner, or the extend flow. |
Against the published Known Issues: QA-05 (RULES.md:786-790) is a liveness defect renewing your own name, where this renewal succeeds on someone else's; QA-10 (811-815, avatars in bulk renewal) and WEB-1304 (835, NameWrapper expiry staleness) touch neither ownership display nor search params; EXP-INPUT-003 concerns the persisted Zustand/xstate store rather than TanStack Router search params, and its stated consequence is a shape-parsing failure, where here the shapes are valid and the claim they encode is unauthenticated; EXP-INPUT-005 self-scopes to "homograph-style display confusion … rather than incorrect resolution", and no deceptive characters are involved; R2-02 (no CSP) is not the vector, since the banner comes from the app's own legitimate code path; SEC-MGR-008 / 011 are apps/manager debug routes and R3-01…R3-08 transaction-manager defects, while the transaction manager here reported both transactions accurately.
WEB-626 (RULES.md:826, a grace-period owner shown a modal implying the name is someone else's) deserves its own line: it is the exact inverse of this finding, and its fix — suppressing the disclaimer for grace-period owners — makes this one strictly worse, by removing the only caution the flow shows.
The known-issues document states its audits "focused on application source directories" and were not exhaustive. validateNameSearch and RegistrationSuccessBanner.tsx appear nowhere in it.
Recommendation
- Do not let the URL assert ownership. Both operands are already in scope. In
routes/$name/index.tsx:83-87:
- const registrationBanner =
- registered === true && duration !== undefined && paid !== undefined
- ? { durationSeconds: duration, paid }
- : null
+ // A URL cannot prove a registration. Only render the success banner when the
+ // connected wallet is in fact the on-chain owner of this name.
+ const isConnectedOwner =
+ !!connectedAddress &&
+ !!ownerQuery.data?.owner &&
+ isAddressEqual(connectedAddress, ownerQuery.data.owner)
+ const registrationBanner =
+ isConnectedOwner &&
+ registered === true && duration !== undefined && paid !== undefined
+ ? { durationSeconds: duration, paid }
+ : null
(connectedAddress is read at :131 and isAddressEqual imported at :3; move the useConnection() call above the banner computation.)
- Do not render an attacker-supplied string as a monetary figure.
paidshould be a number the page format
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 search-parameter validator accepted a client-supplied 'registered' flag, duration and paid string without checking them against chain state or the connected wallet, and the banner rendered an ownership claim from that unauthenticated input.
Impact
A victim following the link could be induced to approve and submit renewal transactions from their connected wallet, spending their own funds to extend an attacker's name, although a disclaimer warns that extending does not grant ownership and the transaction details shown are otherwise correct.
What the attacker needed
Attacker owns an ordinary .eth name; victim opens a crafted link; victim has a connected wallet; victim completes the extend flow
The fix
The page should derive the registration-success banner and ownership claim from verified chain state and the connected wallet rather than from URL query parameters, and should not present an ownership assertion it has not checked.
How it was found
- Attacker registers an ordinary .eth name and builds a link to the Explorer's name page with query parameters claiming a registration, a long duration and a free price.
- Victim opens the link and the page shows a congratulations banner asserting the victim owns the name, with the attacker's term and paid figure.
- Victim connects or already has a wallet connected, and the page offers an Extend button.
- Victim dismisses the disclaimer and completes the renewal flow, submitting an approval and a renew transaction from their own wallet.
- The victim's funds are spent and the attacker's name expiry is extended by a year, with ownership unchanged.
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 can read values from the address bar (the query string) and show them as if they were facts. Here the page showed a congratulations banner claiming the visitor owned a name, but that claim came only from a URL parameter anyone can type. The page also offered a button to extend that name, so a visitor could end up paying to renew someone else's name.
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.