Skip to content
XSS Audit finding Advanced

Notification templates interpolate an ENS label with no escaping: a third party can plant persistent text in another user's Manager inbox with no interaction by that user, and a

The api-worker's notification templates insert an ENS name into messages without escaping it, and the name is attacker-written on-chain and can be minted to any address. A third party can therefore place persistent attacker-authored text in another user's Manager notification inbox with no action by that user, and on Telegram the same string can become attacker-chosen Markdown markup.

zhouchungong Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

92283 w a insight notification templates interpolate an ens label with no escaping a third party can plant persistent text in another user s manager inbox with no interaction by that user and a

Submitted on Sep 8th 2026 at 18:36:32 UTC by @zhouchungong for Audit Competition | ENS

Description

Brief/Intro

The api-worker's notification templates interpolate an ENS name into their output with no escaping. That name is not the platform's own copy — it is a string an attacker writes, on-chain, and can direct into any address's account without that address doing anything.

Two consequences follow:

  1. The victim's in-app notification inbox stores and renders attacker-authored text, unsolicited and indefinitely. This half needs nothing from the victim: the row is written before any preference is consulted.
  2. On Telegram the same string becomes attacker-controlled markup — this half additionally requires the victim to have a verified Telegram channel and owned_name_expiry = true, which is not the default; the in-app half in point 1 requires neither. The template places the name inside a Markdown code span and sends with parse_mode: 'Markdown'. A label carrying a pair of backticks closes that span and re-opens it, and everything between them is parsed as Markdown — so the message ENS's own template composes carries a clickable link of the attacker's choosing. We measured this by sending the template's own output through the Bot API on our own throwaway bot, never ENS's; see part 5.

The second is not "the app displayed a name you own". It is the platform's own delivery code turning untrusted input into markup because it never escapes it. Over workers/api-worker/src/services and src/queues, grep -rn "ens_normalize|beautify|normalize|escapeMarkdown|MarkdownV2|escapeHtml|isValidName" --include=*.ts | grep -v test returns 10 hits, every one of them about cursors, e-mail rate-limit keys or PostHog counters — not one touches the name.

What was and was not measured is set out in "Stated against ourselves". The one link we could not execute at all is the SendGrid template, because its body is not in the audited code; everything else in the chain is run somewhere below, and each leg says what was stubbed.

Vulnerability Details

1. The attacker writes the string, and chooses whose account it lands in.

register(string label, address owner, bytes32 secret, address subregistry, address resolver, uint64 duration, address paymentToken, bytes32 referrer) on the v2 registrar 0xa88553F454b77203B0D036A05c894d555EAAa2Cc mints to owner, which need not be the sender. On an Anvil fork of Sepolia the attacker paid for and minted a name whose label was a 72-character attacker-written sentence to a victim address; the victim's registry balance went 0 → 1 while the victim's transaction nonce stayed 0 → 0.

The registrar's price oracle accepts labels containing backtick, *, [, ], (, ), space, newline, /, ., U+202E, ZWNJ, ZWSP and soft hyphen. The length gate is measured in codepoints, not bytes: out-b-charset.json shows a one-codepoint four-byte label (an emoji) rejected with the length selector 0xdbfa2886, as are one character and the empty string, while the smallest accepted labels are three codepoints. 255 accepted / 256 rejected are both ASCII, so that sweep cannot tell us whether the upper bound counts bytes or codepoints, and we do not claim which. 28 of 33 cases accepted; of the five rejections, emoji, single, empty and long-256 are length, while control-digits reverts 0x477707e8 because our own earlier run had taken that label — it is not evidence about digits.

2. The label reaches the app unaltered — measured on the fallback indexer host, because the production one was down.

workers/api-worker/src/services/expiry-discovery/indexer.ts:13-28 queries the indexer for domains { name expiryDate owner { id } } (the name selection is line 21). Its where clause is { expiry_gt: $cursor, expiry_lte: $upper_bound } and nothing else — there is no filter on the label, on normalisation, or on who the owner is, so any name inside the expiry window is picked up whatever its label contains. indexer.ts:134-142 lower-cases owner.id and passes name through untouched. A name registered on live Sepolia to our own address for this report came back as name: "r51probe`x.eth" with U+0060 intact, labelName: "r51probex", isNormalized: false`.

A caveat about reproducing that reading today, which we would rather state than have discovered. That row was returned by staging-graphql.ens.dev on 2026-09-07 and the response is archived (out-r-confirm.json). Since then the production host graphql.ens.dev has returned 502 on every probe we kept, and the staging host has rolled back: its entire isNormalized: false listing is now 22 rows whose newest createdAt is 2026-08-20, eighteen days before either of our registrations. We checked with a positive control — the very name quoted above, which this same host served us on 2026-09-07, is also absent now. So the relay reading is archived rather than currently reproducible, and that is a property of ENS's indexing infrastructure, not of the label.

3. The app addresses the message to the victim on ownership alone.

workers/api-worker/src/queues/event-ingestion.ts:150 looks the event owners up with inArray(TABLE.users.address, ownerAddresses) and :177-178 builds the owner-to-user map; :75-105 (collectRecipientsForEvent) then consumes that map and marks the recipient 'owned'. event-ingestion.ts:223-233 builds payload: { name: event.name, … } verbatim, and :249-262 writes the row to the notifications table — before the preference gate at :341-349. No step in workers/api-worker/src/services or src/queues normalises, validates or escapes the name.

4. Four channels consume it.

  • workers/api-worker/src/services/delivery/templates/telegram.ts:28-49, sent at services/delivery/telegram.ts:66-73 with parseMode: 'Markdown' (templates/telegram.ts:39). Quoted verbatim from the source (both branches are single-line template literals):
TS
    const ownerText = payload.isOwner
      ? `Your domain \`${payload.name}\` will expire in *${daysLeft} days*.\n\nDon't forget to renew your domain!`
      : `The domain \`${payload.name}\` you're watching will expire in *${daysLeft} days*.`

A backtick in the label closes the code span; the remainder is parsed as Markdown.

  • workers/api-worker/src/services/delivery/templates/push.ts:22-39 — the raw label goes into body, tag, and data.url.
  • workers/api-worker/src/services/delivery/templates/email.ts:18-28 — the raw label is passed as SendGrid dynamicData.name.
  • apps/manager/src/features/notifications/inbox/notification-item.tsx → notifications/name-expiry.tsx → shared/templates.tsx (NameCardTemplate) → shared/primitives.tsx:82-90 (NameDisplay) — the raw label is rendered as the notification's name in the victim's inbox. The same NotificationItem is also mounted by the header dropdown (dropdown/notification-dropdown.tsx:66). The rendered card text is in Proof of Concept part 4.

5. Nothing in Manager clears it, and the server would not honour it if something did.

A "Remove notification" control does exist in the component library — apps/manager/src/features/notifications/shared/primitives.tsx:68-77 renders an X button with aria-label="Remove notification" — but it is rendered only when an onRemove handler is passed, and neither call site passes one: inbox/list.tsx:136-139 and dropdown/notification-dropdown.tsx:66-71 both mount NotificationItem without it. The button therefore never appears. This is visible in the rendered DOM captured in Proof of Concept part 4: out-r51-inbox-render.json's s1_html and s2_html contain no such button.

The worker does expose an archive endpoint — its doc-comment is at app/routes/notifications/index.ts:265-267 — but it has no caller in the repository. And if it were called, it would not remove the row from the inbox:

  • the listing the inbox reads is index.ts:74-79, and its whole where is user_id plus the pagination cursor:
TS
        where: and(
          eq(TABLE.notifications.user_id, userId),
          // Cursor-based pagination: get notifications older than cursor
          // Note: If cursor is invalid UUID, this will return no results (graceful degradation)
          cursor ? lt(TABLE.notifications.id, cursor) : undefined,
        ),
  • the projection at index.ts:62-73 does not return archived_at at all, so no client could filter on it either;
  • the unread-count read at index.ts:155-165 looks only at read_at.

Full enumeration of archived_at in the worker: written at :309 (personal) and in one upsert at :330/:340 (broadcasts); read in exactly one place, :316, which is the archive update's own isNull guard against re-archiving; declared in the schema at core/database/schema/notifications.ts:189,275. No listing query filters on it.

Nor is the row dropped client-side: apps/manager/src/features/notifications/data/selectors.ts:22-43 discards only unknown kinds and payloads that fail their schema, and name-expiry's payload declares name: v.string() (packages/shared-schema/src/notifications/kinds/name-expiry.ts:8) — no character constraint, so the attacker's string parses. That package is out of scope as an asset; we cite it only to show what the in-scope consumer is handed. This is what supports indefinitely in the Brief, and Proof of Concept part 7 executes it: against a real PostgreSQL engine built from the repository's own migrations, the production consumer writes the row, PATCH /notifications/archive returns 200 and really does set archived_at, and the same listing then returns the same row again — while a control that deletes the row outright makes the listing return nothing.

6. Why several different labels appear below, and what that costs us. Each leg proves one link, and the links compose because the label's character set is not leg-specific: the registrar's acceptance of backticks, brackets, parentheses and spaces is established once by the read-only getRegisterPrice sweep in part 1; the indexer's verbatim relay in part 2; the discovery stage that feeds the queue in part 6; the templates' behaviour in parts 3, 4 and 5; persistence and non-removability in part 7.

No single name has been carried from chain to inbox in one run, and we will not imply otherwise. We tried to close it: after the first registration used a single backtick — which the templates relay fine but Telegram rejects for unbalanced entities — we registered a second name on live Sepolia carrying a pair, r51b`x`y.eth (register tx 0x873bc3bdd467e5b515714d9ed6b079b1984dbd3abf4a09d80cc14460236915f5, block 11662417, token id in out-n-sepolia-register.json). The on-chain half is done and anyone can verify it. The next hop is where it stops: the indexer that would carry it into the pipeline is 502 on production and eighteen days stale on staging, as measured above. So the gap that remains is one hop wide, and we will describe the rest precisely rather than flatteringly: parts 3, 4, 6 and 7 are four separate executed runs on the same label, not one process carrying one object end to end. Each constructs its own input at its own entry point, and part 6 shows that the event the cron really produces is a superset of the one part 3 is given. What is missing between the on-chain name and those runs is the indexer hop, and it is missing because the indexer is down, not because we chose not to run it.

Impact Details

Claimed impact: Injecting/modifying the static content on the target application without JavaScript (persistent) (High). The pipeline persists attacker-authored content into another user's account and renders it, with no action by that user. Persistent is measured, not asserted: part 7 writes the row through the production consumer, archives it through the production endpoint, and reads it back. The out-of-scope list excludes reflected plain text injection and states verbatim that this "does not exclude … persistent plain text injection".

We rely on the head clause — injecting static content on the target application without JavaScript, persistent — and not on the three such as examples, none of which we claim: we do not inject HTML, we do not replace existing text, and we upload no files. We read the examples as illustrative rather than as a substitute for the clause; if the program reads them as exhaustive, that is a fair reason to place us lower and we would rather have that said than assumed.

We would rather argue the classification openly than have it argued for us:

"…on the target application." The in-app notification inbox is the target application, and the row there is created unconditionally. That half is plain text, because React escapes it. The markup half — the part that is unambiguously an escaping defect rather than a display of data — is delivered on Telegram, i.e. off-application. If a triager holds that the markup half therefore cannot count, what remains is the in-app persistent plain-text row, and we accept whatever band that merits. We are not claiming HTML injection or XSS anywhere.

What Telegram itself says. The production template's own output for the label a`[Renew now](https://ens-verify.example/claim)`b — generated by calling the template, not transcribed — returns "ok":true with entities bold (the heading), code, text_link → https://ens-verify.example/claim, code, bold; the visible text collapses to aRenew nowb.eth, and Telegram attaches a link preview for the attacker's domain. The same template with a benign label returns bold, a single code spanning the whole name, and bold — no text_link, and the name is not split. Only the label differed.

And the case that does not work, stated here rather than left in the appendix. A label with a single backtick — which is what our first live-Sepolia registration used — makes the message's backtick count odd, and Telegram rejects the whole send with 400 … can't parse entities. That is a delivery failure, not an injection. The markup result above needs a pair of backticks. We did mint a pair on Sepolia (the second registration, below), but the specific label carrying the markdown link was exercised on a fork and through the templates, not minted on chain. We say what this costs us in the self-limiting section below.

Why not Taking state-modifying authenticated actions … on behalf of other users without any interaction by that user (Critical). We read that impact narrowly — as acting as the victim, changing their registration information or their notification settings — and on that reading we do not qualify: we cause a row to be created for them rather than acting as them. The narrow reading is our own choice, not the program's stated one, and we are declining the higher band on it. We mention the impact only to say that we considered it and are not claiming it.

"But the dashboard already shows any name you own." True, and worth stating plainly: apps/manager/src/features/dashboard/components/MyNamesList.tsx:333 renders name={row.name} for every owned name, so unsolicited ERC-1155 tokens already put attacker text on a victim's screen. That is a property of the token standard, and we are not reporting it. The difference is what the notification code does with the same string: it composes it into a message the platform authors and sends, in a channel where formatting is interpreted. A list that displays a name is not the same thing as a template that lets that name close a code span.

The out-of-scope clause we think is aimed at this shape, and why we think it misses. The list excludes UX and UI impacts that do not materially disrupt use of the platform. The natural reading is a presentation defect the user can undo. That is measurable, and section 5 above measures it: there is no clear, dismiss or archive control on the inbox at all, and the archive endpoint that does exist is not honoured by the listing. The attacker's text stays in the account with no user-reachable way to remove it. Relatedly, the clause excluding impacts that need un-prompted, in-app user actions that are not part of the normal app workflows does not apply either: the in-app half needs no action from the victim at all.

The likeliest downgrade, named in advance. A triager may reach for Changing non-sensitive details of other users … such as: Enabling/disabling notifications (Medium). We do not change any setting or preference. External delivery stays silent because owned_name_expiry is false by default — in part 7 the victim has no settings row at all and event-ingestion.ts:342-343 falls back to false — and what lands is content, not a configuration change. But we would rather name that band ourselves than have it look unconsidered.

This shape is already on chain, and not put there by us. While checking the indexer we found renew`-SECURITY-NOTICE-from-ENS-message-@ensrenewals-to-keep-this-name-`x.eth — a pair of backticks wrapping text that impersonates ENS support — owned by 0xa3bfe86e5d412bbf14461ea5323f375a7c42f654, createdAt 2026-08-18T14:47:36.000Z. The same address registered re`new.eth two minutes later. We did not create these names, have never interacted with them, and read them only from the public indexer. We also cannot tell you what they are, and the most likely reading is not the most flattering one to us: registered about seven hours after this competition opened, they are quite possibly another participant's proof of concept for this same finding. We are raising that possibility ourselves rather than letting it be inferred. What they do establish is that a label of exactly this shape is registrable, is registered, and is sitting in the data the notification pipeline reads — so this is not a shape we had to invent.

Not a contract or indexer bug. The registrar's arbitrary-owner parameter and the indexer's verbatim relay are each correct for their layer, and both are out of scope as components. The defect is that in-scope code consumes their output as trusted presentation copy.

Cost to the attacker: one registration per victim, and the sweep says this is the cheapest band, not the dearest. out-b-charset.json prices by codepoint count, not by byte length: three-codepoint labels cost 49.095891 test USDC, four-codepoint labels 12.273974, and everything from five codepoints upward — a 40-byte label and a 255-byte label alike — costs 0.613701. Attacker-written sentences are long, so they sit in that flat bottom band. The name we registered on Sepolia cost exactly that.

Stated against ourselves

  • templates/telegram.ts:44 also interpolates the raw label into the inline-keyboard button URL, and we expected that to be the weak point: a rejected sendMessage (e.g. BUTTON_URL_INVALID) would have made the markup half worthless, and queues/telegram.ts:44-45 retries on any error result, so the victim would simply never receive the notification. It is not the weak point — Telegram accepted the button, percent-encoding the space, and returned "ok":true. We record this because it was our own leading objection to this finding.
  • The e-mail channel: not measured, and not measurable by us. email.ts:18-28 hands the raw label to SendGrid as dynamicData.name, and the rendering happens in a dynamic template stored in ENS's SendGrid account (d-fb5409b2…, wrangler.jsonc:109). The template body is not in the audited code and never was: the id appears only in configuration, the repository has never tracked a .hbs/.mustache/.handlebars file and the worker source contains no Handlebars syntax at all. (We will not offer git history as evidence here: the published repository is three squashed commits and --diff-filter=D returns no deletions of any kind across all of it, so that check could not detect a removed template even if one had existed.) Retrieving it would require ENS's SendGrid API key, which we do not have and did not seek. What can be said from the audited code and SendGrid's documentation: the subject is a static string, and Handlebars escapes {{name}} by default — the docs say "If you don't want Handlebars to escape a value, use the "triple-stash", {{{". So under the default this channel is a text-injection site at most. Two qualifications we will not paper over: a template written with {{{name}}} would not escape, and HTML escaping would not sanitise the label if the template places it inside an href — which is exactly what the Telegram and push templates do with the same string.
  • What is stubbed in each executed leg. Part 6 runs the production runExpiryDiscoveryCron with the indexer.js module and the KV/queue bindings replaced; because the whole indexer module is replaced there, the mapping at indexer.ts:134-142 is not exercised by part 6 — that leg is part 2, against live Sepolia. Part 4 renders the real inbox components with @tanstack/react-router's Link stubbed, since that component tree expects a router the test does not provide. Part 7 runs the production consumer and route handlers against PGlite with only the database transport and the auth middleware replaced; PGlite lacks pg_uuidv7, so that extension is replaced by an equivalent SQL function and cursor pagination is not exercised. No production database was touched: every row above lives in an in-process engine created for the test.
  • The preconditions, stated together. The victim must already be a Manager user: collectRecipientsForEvent matches the event's owner against a users.address row, so the in-app row is created only for an address that already has an account — we are not claiming the attacker can create accounts. Beyond that the in-app row requires nothing from the victim: no click, no transaction, no acceptance of the token. The external channels additionally require a verified channel and owned_name_expiry = true, which is not the default (workers/api-worker/src/core/database/schema/notifications.ts:143), so "zero interaction" is not uniform across the four sites.
  • The indexer, in one place. https://graphql.ens.dev/, the worker's DEFAULT_INDEXER_URL, was unreachable on all 15 probes for which we kept output: 14 recorded an explicit 502 status code and the fifteenth kept the same Cloudflare 502 page without a recorded status (last re-probed 2026-09-08, out-u-indexer-reprobe.txt). The relay reading was therefore taken from https://staging-graphql.ens.dev/, the default/fallback host in packages/indexer/urql/client.ts:28,36; it serves the same schema, and we could not verify it applies the same normalisation policy. We then registered a second live name — r51b`x`y.eth, a pair of backticks, neutral text, our own address (out-n-sepolia-register.json) — specifically to close the end-to-end gap, and it did not close it: the name is on chain but not in the indexer, and neither is the first name any more. Full state with the positive control in out-e2e-indexer-state.json. We are reporting the attempt and its failure rather than quietly keeping the earlier reading.
  • We looked for a way to suppress the victim's genuine notifications and did not find one. event-ingestion.ts:68-73 builds the idempotency key by joining the name with : and no escaping, but the stage and expiry are appended after the name, so we could not construct a collision.
  • R2-04 (known issue) is the closest thing in the list to us and we would rather raise it ourselves: the Explorer's OG-image worker resolves a name's avatar text record — attacker-controlled for any name they own — and fetches it server-side with no host or IP allowlist, an SSRF primitive. Both findings involve a worker handling a string an attacker can choose. The root causes are not the same, and the test we would apply is whether either fix touches the other:
    • Different input. R2-04's is a resolver text record the owner sets after registration. Ours is the label itself, fixed at registration and carried by the name.
    • Different defect. R2-04 is a missing egress allowlist on a server-side fetch. Ours is missing output encoding at string interpolation. Add the host/IP allowlist R2-04 asks for and the Telegram code span still closes and the inbox row still says whatever the attacker wrote; encode our name and R2-04's SSRF is untouched.
    • Different code. R2-04 is the Explorer's OG-image worker; ours is the api-worker's notification delivery templates and the Manager inbox. We accept that "a worker trusted an attacker-controlled name" can be stated at a level of generality that covers both. At that level it would also cover any future injection anywhere in workers, which we do not think is what the rule is for. If you read it that way, we would rather be told.
  • R2-02 (known issue) records that the Manager app ships no CSP, and its own last sentence draws the line we rely on: "Findings that depend only on the absence of CSP are covered here; an actual injection sink is a separate finding." Nothing we claim depends on the absence of CSP. We read all 59 known issues, not only the ones matching a keyword.
  • EXP-INPUT-005 (known issue) covers ENS name validators accepting inputs that normalisation rejects, causing homograph-style display confusion in the UI. The in-app half of this report is adjacent to it. What we report is not display confusion from a lookalike name but the absence of escaping in a message-composition template, plus a third party choosing whose account the string lands in. If you judge the two to be one issue, we would rather know than have it inferred.
  • EXP-INPUT-009, quoted in full because its second sentence is about us: "The push service worker opens a URL taken from notification data without validating its scheme or origin. Requires control of, or injection into, the notification payload." We will not pretend that sentence is not there. Our position is that it describes a different root cause, and that the relationship runs one way:
    • 009's defect is in the service worker's URL handling — it opens a URL without validating scheme or origin. Ours is in the api-worker's message templates — they interpolate an untrusted string without encoding it. Different asset, different file, different fix: 009 is fixed by validating a URL at open time; ours is fixed by encoding the name at interpolation time, and doing only 009's fix would leave the Telegram markup and the in-app row exactly as they are.
    • 009 names payload injection as its precondition, not as its subject. A precondition being satisfiable is not the same defect as the thing it enables — otherwise every input-reaching-a-sink report would merge into the sink's own entry.
    • We do reach 009's sink, and will not pretend otherwise: apps/manager/public/push-sw.js:63,76 passes event.notification.data?.url straight to clients.openWindow, and templates/push.ts:34 builds that url as https://app.ens.domains/${payload.name} — the path segment is entirely attacker-written, and it is in our own artefact (out-r51-notification.json, p3_push.data.url). What we cannot control is the scheme and the origin, which are hardcoded, and those are exactly what 009 is about. So we supply the payload 009 names as its precondition, we reach its sink, and we still cannot do the thing 009 describes. We claim nothing about the service worker's URL handling, and rely on the push channel for no impact at all. If you nonetheless judge these one issue, we would rather be told than have it inferred.

References

  • SendGrid Handlebars documentation, for the escaping sentence quoted above: https://www.twilio.com/docs/sendgrid/for-developers/sending-email/using-handlebars (fetched 2026-09-08; the sentence is in the "Replacement with HTML" note)
  • workers/api-worker/src/services/expiry-discovery/indexer.ts:13-28 (name at :21), :134-142
  • workers/api-worker/src/queues/event-ingestion.ts:75-105, :223-233, :249-262, :341-349
  • workers/api-worker/src/app/routes/notifications/index.ts:74-79 (listing where: no archived_at predicate), :62-73 (projection: archived_at not returned), :309 and the :330/:340 upsert (the writes), :316 (the only read)
  • workers/api-worker/src/services/expiry-discovery/index.ts (runExpiryDiscoveryCron, executed in Proof of Concept part 6)
  • workers/api-worker/src/services/delivery/templates/telegram.ts:28-49, push.ts:22-39, email.ts:18-28
  • workers/api-worker/src/services/delivery/telegram.ts:66-73
  • apps/manager/src/features/notifications/inbox/notification-item.tsx; notifications/name-expiry.tsx; shared/templates.tsx; shared/primitives.tsx:82-90 (NameDisplay) and :68-77 (the never-rendered Remove control); inbox/list.tsx:136-139; dropdown/notification-dropdown.tsx:66-71
  • apps/manager/public/push-sw.js:63,76 (the service-worker sink discussed under EXP-INPUT-009)
  • Live Sepolia registrations, both to ou

The original report as published on Immunefi, by zhouchungong. 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 notification pipeline treats the ENS label as trusted presentation copy, storing and interpolating it verbatim into templates, including a Telegram message sent with Markdown parsing, without normalising or escaping it.

Impact

Attacker-authored text is stored and shown in another user's inbox indefinitely with no way to remove it, and on Telegram the label could become a clickable link of the attacker's choosing, though that half needs a verified channel and a non-default setting, and the end-to-end chain was not demonstrated because the indexer was down.

What the attacker needed

Victim already has a Manager account; attacker pays one registration fee; Telegram half: verified channel, non-default setting

The fix

The name should be normalised and escaped before storage and before interpolation into any template, and Markdown parsing should not be applied to untrusted values.

How it was found

  1. Register an ENS name whose label contains attacker-chosen text, minting it to the victim's address.
  2. The expiry-discovery indexer returns the name unaltered because its query filters only on expiry dates.
  3. The event ingestion queue builds the notification payload from the raw name and writes the row before checking preferences.
  4. The inbox renders the stored label as the notification's name, and the Telegram template sends it with Markdown parsing enabled.

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 a name is registered on ENS, the text of that name is chosen by whoever registers it, and the registration can be sent to someone else's address. The app then copies that text straight into notification messages without cleaning it, so a stranger's wording ends up in your notification list. On Telegram the same text is treated as formatting instructions, so it can turn into a link the attacker picked.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by zhouchungong

View all

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

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.