Skip to content
Business logic Audit finding Advanced

Renewal flow signs a paid transaction against a different ENS name than the one it resolves, gates and displays

The Manager renewal flow derives two different ENS names from a single URL parameter: reads (expiry, ownership) are normalized under ENSIP-15 while the signed renew() calldata uses the raw label. An attacker registers a look-alike label that normalizes onto a victim's name, so the victim's payment extends the attacker's registration while the app shows the victim's name and expiry.

tomX0 Follow

Originally disclosed on Immunefi

Critical View original
  • Disclosed after under an hour

93121 w a critical renewal flow signs a paid transaction against a different ens name than the one it resolves gates and displays

Submitted on Sep 14th 2026 at 10:14:20 UTC by @tomX0 for Audit Competition | ENS

  • Report ID: #93121
  • Report Type: Websites & Apps
  • Report severity: Critical
  • Target: https://github.com/immunefi-team/audit-comp-ens/tree/audit-comp-ready/apps/manager
  • 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

The Manager app's renewal route derives two different ENS names from one URL parameter. The chain reads normalize the parameter under ENSIP-15. The chain write does not.

An attacker who registers a label that normalizes onto a victim's label, for instance the victim's own name with a trailing soft hyphen (U+00AD, which renders as nothing), can send that victim a link that reads as their own name. The app resolves the victim's real name, reads the victim's real expiry, decides the victim owns it, suppresses its own "you are renewing someone else's name" warning on that basis, and displays a renewal date computed from the victim's genuine on-chain expiry. The renew() calldata behind the button carries the attacker's label instead.

The victim approves. Their payment extends the attacker's registration by a year. Their own name is untouched. The app then reports that the renewal succeeded and shows an expiry date that is not true of any name they own.

This is measured rather than argued. On a fork, the victim's expiry moves by 0 seconds and the attacker's by exactly the 31,536,000 purchased, both read from the same registry the app itself reads.

Vulnerability details

Root cause: two names derived from one route parameter

normalize from viem/ens is imported in exactly two files in the whole Manager app, profile/service/profileName.ts:1 and profile/service/setPrimaryName.ts:28. Every other name path goes through a homegrown parser.

The parser, at apps/manager/src/features/register-v2/utils/name-parser.ts:

TS
// :11
const INVALID_LABEL_CHARS = /[&*@#$%^()[\]{}|\\:;"'<>?,=+~`!]/

// :46
const normalized = name.trim().toLowerCase()

toLowerCase() performs no UTS-46 mapping, no NFC composition, no label-extension check and no underscore-placement check. The filter beside it is an ASCII punctuation blocklist. The second validator, validateENSName at shared/registration/nameUtils.ts:90-143, repeats that same blocklist at line 132 and adds a three-code-point minimum at 124-130. Neither consults ENSIP-15. A label containing a NUL byte passes both.

In apps/manager/src/routes/renew/$name.tsx, line 20 calls parseRenewableName(name), which calls parseName and yields the raw label. Lines 26 to 28 call profileExpiryQuery(name), which reads expiry for the normalized name. Line 52 passes the raw label and the normalized expiry together into canRenewV2Name(name, expiryDate). Lines 60 to 63 then return both out of the same loader:

TS
return { label: parsedName.value.label, currentExpiry: expiryData.expiry }

profileExpiry.ts:77 calls normalizeEth2LdName(name) and lines 104 to 110 read the registry with that normalized name, so currentExpiry belongs to the victim's real name. renewableName.ts:25-36 returns parseName's label untouched, so label belongs to the attacker's twin. RenewalPage.tsx:22-26 hands both into the same UI context at renewalUi.context.tsx:54, and every screen and the state machine take whichever they need from there.

The write path never normalizes

The first screen renders one name while pricing the other. PricingSummaryCard.tsx:10 takes currentExpiry from that context, lines 17 to 22 add the selected duration via getDurationExpiryDateForDisplay, and lines 28, 39 and 42 render "Renewing for expiring on ". That sentence is true of the victim's name and of nothing else on the page, and it is on screen at the moment the victim decides.

The raw label is never reconciled with anything after that. ConfirmPurchase.tsx:14 takes label from the renewal context, line 22 prices that raw label, and lines 63 to 72 send it into the machine as renewal.start. renewalUi.machine.ts:148-159 stores it as submissionData.label and lines 346 to 355 pass it to submitRenewal. It arrives at registration.actors.ts:1020-1031:

TS
function encodeRenewData(
  label: string,
  duration: bigint,
  paymentToken: Address,
): Hash {
  const cleanLabel = label.replace('.eth', '')
  return encodeFunctionData({
    abi: ethRegistrarRenewSnippet,
    functionName: 'renew',
    args: [cleanLabel, duration, paymentToken, REFERER_ADDRESS],
  })
}

There is no normalize() call anywhere on that path.

The consent gate is evaluated against the wrong name

The Manager ships an interstitial for exactly the situation of paying to extend somebody else's registration. From ThirdPartyRenewalDialog.tsx:64-70:

Renewing this name will add time to the current owner's registration. You won't gain ownership of the name, but you will make someone's day.

It is gated on one predicate. This is renew/utils/thirdPartyRenewalWarning.ts:1-3 in full:

TS
export const shouldShowThirdPartyRenewalWarning = (
  isOwner: boolean | undefined,
) => isOwner === false

ProfileRenewAction.tsx:66-78 renders the dialog when that returns true, and lines 80 to 88 render a plain link straight into the paid flow when it does not.

isOwner comes from the normalizing read. ProfileView.tsx:99-101 calls profileOwnerQuery(name), and profileOwner.ts:25 normalizes before anything else:

TS
const ethName = normalizeEthName(params.name)

Lines 55 to 58 read ownership for that normalized name. ProfileView.tsx:119 compares the result against the connected wallet to produce isOwner, line 152 resolves it, line 230 hands it to ProfileActions.

So on the twin's profile page the ownership read returns the victim's ownership of their own real name, isOwner is true, the predicate returns false, and the one screen whose entire job is to say "you will not gain ownership of this name" never renders. The plain link rendered in its place carries the raw route parameter straight through, since ProfileRenewAction.tsx:83 passes params={{ name }}, so the twin reaches /renew/$name untouched. The consent gate and the money point at different names.

One limit on this argument, stated before someone else states it for me. The dialog is a profile-page gate, not a renewal-route gate. A link sent straight to /renew/<anything> skips it for any name at all, and I do not count that against this bug. My claim is narrower: on the profile route, which is the ordinary way a user reaches renewal and the link I would send, the gate is not skipped. It is evaluated, and answered wrongly, because the question it asks is about a different name than the one the button will renew.

The confirmation screen asserts a renewal that did not occur

SuccessStep.tsx:5-12 renders RenewalCompletionBanner and then RenewalDetails. The banner strings at RenewalCompletionBanner.tsx:13 and :16 are "Renewal Complete!" and "The ENS domain has been successfully renewed."

RenewalDetails.tsx:50 renders the name from the raw label:

TSX
domainName={`${submissionData.label}.eth`}

Lines 23 to 32 compute the date from the victim's expiry:

TS
expirationDate = getDurationExpiryDateForDisplay(
  Number(submissionData.duration),
  new Date(Number(currentExpiry) * 1000),
)

Lines 105 to 108 render that as the Expires date. Line 69 uses the same currentExpiry as the reference date for the Renewal Period label, so that line is wrong in the same way.

The screen therefore names the attacker's label and dates it from the victim's name. In the run below, the victim's real expiry does not move at all while the screen reports an expiry a year out.

Attack scenario

  1. The attacker registers the victim's label with a soft hyphen appended. U+00AD renders as nothing, so the name is visually identical. ENSIP-15 normalization maps it back to the victim's label. labelhash does not.
  2. The attacker sends the owner of the real name a link. Expiry dates are public, so the link can arrive in exactly the window when a renewal reminder would be plausible.
  3. The loader parses the raw parameter for the label it will transact with and separately normalizes it for the expiry and ownership reads. Those reads land on the victim's real name. Every eligibility gate passes and the consent dialog is suppressed.
  4. The pricing screen shows a renewal date computed from the victim's genuine on-chain expiry. The price beside it and the calldata behind the button are for the attacker's label.
  5. The victim approves. Their payment extends the attacker's name by a year. Their own name's expiry does not move.
  6. The success screen confirms the renewal, shows the raw twin label, and shows an Expires date computed from the victim's real expiry plus the purchased duration.

Relationship to the Known Issues entry on name validators

The Known Issues entry a triager will reach for is the one on lenient name validators, and the program's rule is strict: "Reports that describe the same root cause as an entry below will be treated as duplicates, even if the report describes a different exploitation path or entry point." So the argument has to be about root cause, not path. Two facts do that work.

First, that entry affirmatively disclaims this consequence. Its text, verbatim:

Our name validators accept inputs that ENS normalization later rejects or transforms, including homoglyphs, bidirectional-control and other control characters, and a single leading or trailing dot. The practical impact is homograph-style display confusion in our UI rather than incorrect resolution.

Severity Medium, status "open, fix ready (Manager and Explorer)". What is demonstrated here is not display confusion. It is a paid, signed, on-chain write executed against a different node than the one the application resolved, gated and displayed, followed by a confirmation screen affirming a renewal that did not occur. The entry names the opposite outcome as the reason for its rating. The program's carve-out is explicit about this situation, since "new consequences of a listed root cause that materially change its severity" are in scope. Even on the least generous reading, where the root-cause sentence is shared, that is what this is.

Second, the consent gate the project shipped proves it already treats this distinction as consequential. ThirdPartyRenewalDialog exists for one purpose, to tell a user they will not gain ownership before they pay to extend someone else's registration. A display-confusion defect does not suppress that dialog. This one does, structurally, because the gate keys on isOwner and isOwner comes from the normalizing read while the money follows the raw label. The project built the guard. The divergence removes it silently.

Supporting both points: the divergence does not require a deceptive character at all. 17 of the 51 accepted-and-divergent inputs measured in Part 1 of the PoC are neither homoglyphs, nor bidirectional-control or other control characters, nor a leading or trailing dot. Six are plain ASCII (fo_o, ab--cd, xn--a, 12--34, a_b_c, ab--) and eleven are fullwidth, circled, mathematical-bold, ligature or long-s characters that look nothing like the ASCII letters normalization maps them onto. A validator fix scoped to that entry's own enumeration does not close those.

One honest qualification so the argument is read correctly. In sibling raw-parameter cases elsewhere in the app the divergence fires on a bare capital letter, since with this repository's pinned viem normalize('Victim.eth') equals victim.eth while namehash('Victim.eth') does not equal namehash('victim.eth'). That case does not apply here, because parseName lowercases at name-parser.ts:46.

Two tracker entries sit closer than the rest and neither covers this. One concerns the same dialog firing when it should not, where renewing your own name in grace period shows a modal implying you are extending someone else's name. This is its mirror image: the modal staying silent when the name really does belong to someone else, and silent because of which name was read rather than because of grace. The other concerns a renewal extending the base-registrar expiry but not the NameWrapper expiry on a wrapped V1 name, which is one name with two expiry records out of step. Here there are two different names, and the v2 registrar behaves exactly as specified for the label it was handed. I also checked the renewal-blocked-after-registration QA item, which is unrelated.

Impact details

What the victim loses

The transaction detail the user approves, meaning which name is being renewed, is wrong on screen before the signature at PricingSummaryCard.tsx:42 and wrong again after it at RenewalDetails.tsx:50 and 105-108. That is the impact entry selected above, and both of its sub-bullets are satisfied.

The demonstrated loss is the renewal fee, 8.000021 USDC in the run below, plus a name the user believes is renewed and is not.

On the phrase "unintended recipient" in that entry. A reviewer may observe that the funds reach the registrar at the correct price, which is entirely intended, and conclude the clause is not met. The recipient of a renew() is not the contract collecting the rent. The registrar is a payment rail on every renewal, correct or not. The party that receives what was purchased is whoever owns the label in the calldata, and here that is the attacker rather than the user who approved. The value transferred is a year of registration, and it lands on a name the victim neither chose nor knows about.

The realistic attacker motive is the second half of the loss rather than the first, and this part is reasoned rather than demonstrated. A victim who sees "Renewal Complete!" and an expiry a year out has no reason to renew again. A name that is not renewed eventually enters grace and then release, at which point anyone, including the attacker, can register the real name. I did not run a fork forward through expiry, grace and re-registration, and I do not claim loss of the name as a demonstrated impact. I raise it because it explains why an attacker would pay for a twin that is worth nothing on its own.

Factors bearing on severity

I am submitting this at the severity the program assigns to the matched entry. Three factors bound the attack, and I would rather surface them than have a triager find them. If triage weighs them and lands on High, that is a reasonable outcome and I would accept it.

The attacker pays per victim, in advance. The twin must be registered before the link goes out, at full registration price for that specific name. There is no broadcast version of this attack. One twin buys one target.

Delivery is targeted and manual. The victim has to open a link the attacker chose for them. It reads as a routine link to their own name, but it is still one link to one person. Nothing fires on a user who reaches the Manager under their own steam.

The attacker's direct gain is close to zero. The registration the victim's money extends sits under a label that is not in ENSIP-15 normalized form, so no conformant client resolves to that node given the name as it renders. It cannot be sold or used as an ENS name. The attacker converts the victim's money into a year of an asset nobody can resolve, minus what they paid for the twin.

One factor cuts the other way. Timing is free, because expiry dates are public, so the link arrives exactly when a renewal reminder would be expected and the victim is least likely to question it.

Impacts I am not claiming

Direct theft of user funds: no. ETHRegistrar.renew pulls the rent from _msgSender(), as the transaction-manager comment at registration.actors.ts:1006-1010 says, and the balance delta below matches the quoted price exactly. The attacker receives an in-kind benefit, not the victim's money.

Direct theft of user NFTs: no. No token changes hands.

Hijacking or bricking an ENS name during a Manager flow: no. That entry enumerates registration, v1 to v2 migration and transfer. Renewal is not among them, and the victim's name is neither reassigned nor rendered permanently inaccessible by this transaction. It is simply not renewed.

Taking state-modifying authenticated actions on behalf of other users without any interaction by that user: no. The victim interacts, by approving.

Malicious interactions with an already-connected wallet: a triager may read it that way and I will not argue the point, since its first listed example, "Modifying transaction arguments or parameters", describes the mechanism exactly. I rest the claim on the display entry because that entry describes what the user sees before approving, which is the part I measured. I am not asking for the two to be counted twice.

Demonstrated versus reasoned

The consent-gate suppression is executed at the predicate and code-traced at the input. shouldShowThirdPartyRenewalWarning(true) === false is executed. That isOwner is true on the twin's page follows from profileOwner.ts:25 and ProfileView.tsx:99-152. I did not drive a browser to observe the missing dialog.

Both screens are reconstructed rather than screenshotted. The PoC calls the app's own getDurationExpiryDateForDisplay with the same two inputs RenewalDetails.tsx:23-32 gives it and formats with the same date-fns call at line 108. The banner strings are quoted from RenewalCompletionBanner.tsx:13 and :16. The pre-signature pricing line is the same computation, since PricingSummaryCard.tsx:17-22 calls that same function with the same currentExpiry, so the date shown for it is the date that screen would show. I did not render either component in a browser.

The name-lapse escalation is reasoned from the display, not demonstrated, as stated above.

The on-chain half is fully executed, including a before-and-after expiry control on both names and a negative control.

Proof of Concept

Proof of concept

Environment

Everything ran against a local anvil fork of Sepolia at chain id 11155111. No deployed ENS asset was contacted.

Node 22.18 or later is required, because the script relies on native TypeScript type stripping to import the app's own modules. My run was on Node v26.5.0. The script must sit in apps/manager/ so that the repository's pinned viem, @ensdomains/ensjs and date-fns, and the app's own source, all resolve from there.

Contracts read and written, all on the fork:

  • ETHRegistrar: 0xa88553F454b77203B0D036A05c894d555EAAa2Cc
  • Payment token (USDC): 0x768F42455A2D082E23ceeF7d51e5787C82d67a39
  • Resolver used at registration: 0x640294a2b2d87e7f522db3e3e3e876764bce170d
  • Registry: resolved through getChainContractAddress({ chain, contract: 'ensRegistry' }), the same registry the app reads expiry from at profileExpiry.ts:54-57

Accounts: the attacker is anvil's first default account, the victim is index 2 of the standard anvil test mnemonic. Both are funded and both approve the registrar for the payment token in the harness. The script first clears any EIP-7702 delegation squatted on those addresses on the forked chain, because such a delegation reverts inside onERC1155Received and would otherwise break registration for reasons unrelated to this bug. Duration in every case is one year, 31,536,000 seconds.

On what is and is not stubbed: the script imports the real in-scope exports rather than transcribed copies, namely parseName, validateENSName, parseRenewableName, canRenewV2Name, shouldShowThirdPartyRenewalWarning, normalizeEth2LdName, getDurationExpiryDateForDisplay, and the Explorer's isValidEnsName. The two module hooks at the top supply only what a bundler would supply: the @/* alias from tsconfig.json and vitest.config.ts, extensionless specifiers, and a null stand-in for the .tsx icon module that nameUtils.ts imports but never calls, since Node cannot strip JSX. No logic under test is stubbed. I chose this over transcribing the functions so that a reviewer is checking the shipped code rather than my copy of it.

Steps:

  1. anvil --fork-url <sepolia-rpc> --chain-id 11155111
  2. Save the script below as poc.mjs in apps/manager/
  3. node poc.mjs

Source

JavaScript
/**
 * PoC — Manager renewal: the app resolves, gates and displays one ENS node and
 *       signs a paid `renew()` against a different one.
 *
 * SETUP
 *   1. anvil --fork-url <sepolia-rpc> --chain-id 11155111
 *   2. Place this file in apps/manager/ (the repo's pinned viem, @ensdomains/ensjs,
 *      date-fns and the app's own source all resolve from there)
 *   3. node poc.mjs            (Node >= 22.18 — native TypeScript type stripping)
 *
 * PART 1  offline, run against the REAL in-scope apps/manager exports
 * PART 2  on chain, with a before/after expiry control on BOTH names
 * PART 3  appendix, no severity claimed
 */
import { readFileSync } from 'node:fs'
import { registerHooks } from 'node:module'
import { fileURLToPath, pathToFileURL } from 'node:url'

// ---------------------------------------------------------------------------
// Load the application's own modules — no transcription. Node strips the types;
// these two hooks only supply what a bundler would normally supply:
//   resolve: the `@/*` -> `src/*` alias from tsconfig.json / vitest.config.ts,
//            and extensionless / `.js`-spelled TypeScript specifiers
//   load:    a null stand-in for `.tsx` React components that a validator module
//            imports but never calls (nameUtils.ts -> StableCoinsIcons.tsx).
//            Node cannot strip JSX. No logic under test is stubbed.
// ---------------------------------------------------------------------------
const SRC = pathToFileURL(`${process.cwd()}/src/`).href
registerHooks({
  resolve(spec, ctx, next) {
    const cands = []
    const push = (s) =>
      cands.push(s, s.replace(/\.js$/, '.ts'), `${s}.ts`, `${s}.tsx`, `${s}/index.ts`)
    if (spec.startsWith('@/')) push(SRC + spec.slice(2))
    else push(spec)
    let lastErr
    for (const c of cands) {
      try { return next(c, ctx) } catch (e) { lastErr = e }
    }
    throw lastErr
  },
  load(url, ctx, next) {
    if (url.endsWith('.tsx')) {
      const src = readFileSync(fileURLToPath(url), 'utf8')
      const names = [...src.matchAll(/^export\s+(?:const|function|class)\s+([A-Za-z0-9_$]+)/gm)]
      const body = names.map(([, n]) => `export const ${n} = () => null;`).join('\n')
      return { format: 'module', shortCircuit: true, source: `${body}\nexport default null;\n` }
    }
    return next(url, ctx)
  },
})

// ===== the real, in-scope apps/manager exports =============================
const { parseName } =
  await import('./src/features/register-v2/utils/name-parser.ts')
const { validateENSName } =
  await import('./src/features/shared/registration/nameUtils.ts')
const { parseRenewableName, canRenewV2Name } =
  await import('./src/features/renew/utils/renewableName.ts')
const { shouldShowThirdPartyRenewalWarning } =
  await import('./src/features/renew/utils/thirdPartyRenewalWarning.ts')
const { normalizeEth2LdName } =
  await import('./src/features/profile/service/profileName.ts')
const { getDurationExpiryDateForDisplay } =
  await import('./src/features/register-v2/utils/time.ts')
// the Explorer's validator, for contrast (apps/portal, also in scope)
const { isValidEnsName } =
  await import('../portal/src/utils/token/isNormalized.ts')

const {
  createPublicClient, createWalletClient, http, encodeFunctionData, parseAbi, labelhash,
} = await import('viem')
const { privateKeyToAccount, mnemonicToAccount } = await import('viem/accounts')
const { sepolia } = await import('viem/chains')
const { normalize } = await import('viem/ens')
const { extendChainWithEns, getChainContractAddress } = await import('@ensdomains/ensjs/chain')
const { getOwner: getOwnerV2 } = await import('@ensdomains/ensjs/public/v2')
const { format } = await import('date-fns')

const cp = (n) => String.fromCodePoint(n)
const esc = (s) => {
  if (s == null) return String(s)
  let out = ''
  for (const ch of String(s)) {
    const c = ch.codePointAt(0)
    out += c >= 0x20 && c <= 0x7e ? ch : `\\u{${c.toString(16)}}`
  }
  return `"${out}"`
}
// the app's two validators, called exactly as the register/renew paths call them
const managerAccepts = (name) => parseName(name).isOk() && validateENSName(name) === null

// ===========================================================================
console.log('=== PART 1 — offline, against the REAL apps/manager exports ===\n')
// ===========================================================================

// --- 1.1 how wide the raw-vs-normalized divergence is ----------------------
// Each entry is tagged with the category a triager needs in order to decide
// whether it falls inside EXP-INPUT-005's enumeration ("homoglyphs,
// bidirectional-control and other control characters, and a single leading or
// trailing dot"). `ascii-structural` and `compat-mapping` fall outside it.
const corpus = new Map() // label -> category
const add = (label, cat) => { if (!corpus.has(label)) corpus.set(label, cat) }

// pure ASCII. ENSIP-15 underscore-placement and label-extension rules.
for (const s of ['fo_o', 'a_b_c', 'ab--cd', 'xn--a', '12--34', 'ab--']) add(s, 'ascii-structural')
// invisible / format / control characters
for (const n of [0x00ad, 0x200b, 0x200c, 0x200d, 0x2060, 0xfeff, 0xfe0f, 0xfe0e,
  0x034f, 0x180e, 0x061c, 0x200e, 0x200f, 0x202a, 0x202b, 0x202c, 0x202d, 0x202e,
  0x2066, 0x2067, 0x2068, 0x2069, 0x0000]) add(`ali${cp(n)}ce`, 'invisible/control')
// characters that LOOK like their ASCII target
for (const [from, to] of [['i', cp(0x0130)], ['l', cp(0x217c)], ['v', cp(0x2174)],
  ['o', cp(0x03bf)], ['e', cp(0x0435)], ['a', cp(0x0430)], ['i', cp(0x0131)]]) {
  if ('alice'.includes(from)) add('alice'.replace(from, to), 'homoglyph')
  add(to + 'alice', 'homoglyph')
}
// characters that DO NOT look like their ASCII target but normalization maps
// onto it anyway: fullwidth, circled, mathematical-bold, ligatures, long s.
for (const [from, to] of [['a', cp(0xff41)], ['c', cp(0xff43)], ['s', cp(0x017f)]]) {
  if ('alice'.includes(from)) add('alice'.replace(from, to), 'compat-mapping')
  add(to + 'alice', 'compat-mapping')
}
for (const n of [0x2460, 0x24b6, 0x1d400, 0x1d41a, 0x0132, 0xfb00]) {
  add(cp(n) + 'alice', 'compat-mapping')
}

const classA = [] // accepted, but ENSIP-15 rejects the label outright
const classB = [] // accepted, but ENSIP-15 maps it onto a DIFFERENT label
for (const [label, cat] of corpus) {
  const input = `${label}.eth`
  const parsed = parseName(input)
  if (parsed.isErr() || validateENSName(input) !== null) continue // Manager rejects it
  const writes = parsed.value.label
  let norm
  try { norm = normalize(input).split('.')[0] }
  catch { classA.push({ label, cat, writes, portalRejects: !isValidEnsName(input) }); continue }
  if (writes !== norm) classB.push({ label, cat, writes, norm, portalRejects: !isValidEnsName(input) })
}
const all = [...classA, ...classB]

console.log(`corpus: ${corpus.size}   accepted-and-divergent: ${all.length}\n`)
console.log(`CLASS A - buys a name no conformant client can resolve: ${classA.length}`)
for (const r of classA) console.log(`   ${esc(r.label).padEnd(30)} registers ${esc(r.writes)}`)
console.log(`\nCLASS B - transacts on a different node than displayed: ${classB.length}`)
for (const r of classB) {
  console.log(`   ${esc(r.label).padEnd(26)} registers ${esc(r.writes).padEnd(26)} displayed-as ${esc(r.norm)}`)
}
console.log(`\nOf these ${all.length}, the Explorer's validator would have rejected ` +
  `${all.filter((r) => r.portalRejects).length}.`)

const byCat = {}
for (const r of all) byCat[r.cat] = (byCat[r.cat] ?? 0) + 1
console.log('\nBy input category (which of these are inside EXP-INPUT-005\'s enumeration?):')
for (const [cat, n] of Object.entries(byCat)) console.log(`   ${cat.padEnd(20)} ${n}`)
const outside = all.filter((r) => r.cat === 'ascii-structural' || r.cat === 'compat-mapping')
console.log(`   -> ${outside.length} of ${all.length} are neither homoglyphs, nor bidirectional-control`)
console.log('      or other control characters, nor a leading/trailing dot.')

// --- 1.2 the renewal twin, through the real route-loader functions ---------
console.log('\n\n--- 1.2 renew/$name loader, real functions, on the twin ---\n')
const VLABEL = 'victim'
const TWIN = `victim${cp(0x00ad)}` // U+00AD SOFT HYPHEN: renders as nothing
const twinName = `${TWIN}.eth`
const farFuture = new Date(Date.now() + 200 * 86400_000)
console.log(`  route param                              ${esc(twinName)}`)
console.log(`  parseRenewableName(param).label      ->  ${esc(parseRenewableName(twinName)._unsafeUnwrap().label)}   <- RAW, goes to renew() calldata`)
console.log(`  normalizeEth2LdName(param).name      ->  ${esc(normalizeEth2LdName(twinName).name)}   <- NORMALIZED, what the expiry read + display use`)
console.log(`  canRenewV2Name(param, expiry)        ->  ${canRenewV2Name(twinName, farFuture)}   <- eligibility gate passes`)
console.log(`  labelhash(raw)    ${labelhash(TWIN)}`)
console.log(`  labelhash(normal) ${labelhash(VLABEL)}`)

// --- 1.3 the consent gate the project itself shipped ----------------------
console.log('\n--- 1.3 ThirdPartyRenewalDialog consent gate ---\n')
con

The original report as published on Immunefi, by tomX0. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the renewal route parses the raw URL label for the transaction while normalizing the same parameter for expiry and ownership reads, so the two never reconcile.

Impact

The victim pays the renewal fee and extends an attacker-controlled look-alike name while their own name is not renewed, and the app wrongly confirms success; the attacker must pre-register the twin per victim and gains little directly.

What the attacker needed

Attacker pre-registers a look-alike label; victim opens an attacker-sent link; victim approves the transaction

The fix

The renewal flow should normalize the route parameter once and use that single normalized name for the ownership check, the expiry read, the display and the renew() calldata.

How it was found

  1. The attacker registers the victim's label with a soft hyphen appended, which normalizes back to the victim's label.
  2. The attacker sends the real owner a link to that twin name's profile page.
  3. The loader parses the raw parameter for the label to transact with and normalizes it for expiry and ownership reads.
  4. The pricing screen shows a renewal date from the victim's genuine expiry while the calldata targets the attacker's label.
  5. The victim approves and the payment extends the attacker's registration by a year.
  6. The success screen confirms the renewal and shows an expiry computed from the victim's real expiry.

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 are looked up by a hashed form of the name, and a normalisation step decides which characters count as the same name. Here the app checked the victim's real name to decide ownership and expiry, but built the payment for a different, visually identical name. So the victim paid to extend a stranger's name while the screen said their own name was renewed.

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 tomX0

View all

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