Skip to content
XSS Audit finding Advanced

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 bu

The ENS notifications worker builds Telegram messages by inserting an on-chain ENS label into a Markdown-formatted template without escaping it, so a label containing backticks can close the template's code span and inject attacker-chosen markup. An attacker can register such a label, transfer the token to a victim, and the expiry cron then sends the victim a forged-looking alert from the ENS bot containing attacker text and links.

br0nz3p1ck4x3 Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

92546 w a insight 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 bu

Submitted on Sep 10th 2026 at 15:36:21 UTC by @br0nz3p1ck4x3 for Audit Competition | ENS

Description

Summary

workers/api-worker builds Telegram notifications by string-interpolating an ENS name into a message it then asks Telegram to parse as markup:

TSX
// services/delivery/templates/telegram.ts:34
`Your domain \`${payload.name}\` will expire in *${daysLeft} days*.\n\nDon't forget to renew your domain!`
// :39
parseMode: 'Markdown',

payload.name is not a user-supplied string a validator could reject. It is the on-chain label, read verbatim from the ENS indexer (expiry-discovery/indexer.ts:46,138), carried through an event schema that declares it v.string() (types/events/index.ts:8), stored in the notification payload (queues/event-ingestion.ts:227), and handed to sendMessage with parse_mode: 'Markdown' (services/delivery/telegram.ts:71). No escaping helper exists anywhere in workers/ or packages/ (grep under Root cause).

The ENS v2 ETHRegistrar does not restrict label bytes. An attacker registers a label containing a backtick, pushes the resulting ERC-1155 to the victim (no consent required), and the expiry cron sends the victim a message from the ENS Notifications bot whose body text has been rewritten by the attacker: the backtick closes the template's own code span, and everything after it is emitted as markup rather than as the name.

The recipient is not chosen from a watch-list. The cron enumerates every domain in the expiry window globally (expiry-discovery/indexer.ts:13-27) and the recipient is derived from on-chain ownership alone (queues/event-ingestion.ts:82-87), so the victim performs no action at all between receiving the token and receiving the forged message.

The same unescaped label also reaches the push and email templates (templates/push.ts:31-35, templates/email.ts:21). The Manager's own React UI is safe — NameCardTemplate renders {name} as a text node — which is why this defect lives only on the outbound-delivery side and was not caught by a UI review.


Impact

The impact row, and why it is that row

RULES.md:907-911 — Injecting/modifying the static content on the target application without JavaScript (persistent) … Replacing existing text with arbitrary text (High).

  • The in-scope asset is workers (RULES.md:567-568, "Workers, 13 August 2026"), and the known-issues document names workers/api-worker among the assets it applies to (RULES.md:579). What the ENS Notifications backend emits is that asset's content.
  • The attacker replaces part of that content with text of their choosing: the template intends to emit one code-span-delimited name; what it emits is <attacker prefix>` <attacker markup> `<attacker suffix>.
  • No JavaScript is involved anywhere in the chain, and it is persistent, not reflected — see the next subsection.

A secondary, lesser row follows from the same root cause: an odd-backtick label makes the delivery fail permanently, so the victim never receives the alert for that name — Temporarily disabling user to access target site (RULES.md:947, Low). Executed below.

On the "HTML injection / XSS through metadata" (Critical) argument: I do not claim it, because nothing HTML is emitted by ENS's code, no script executes anywhere, and the only surface in this project that actually renders HTML (the Manager's React notification UI) is safe, which this report proves below rather than glosses over.

Realistic downside: a triager who reads "the target application" as the Manager/Explorer web app rather than the ENS Notifications bot will park this on Redirecting users to malicious websites (open redirect) (RULES.md:932, Medium) — a poor fit, since nothing redirects, but it is the likely floor.

Why this is not the excluded "reflected plain text injection"

RULES.md:999 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." This finding is on the right side of that line on both counts:

  1. It is not plain text. The injected run is parsed as markup: it closes the template's code span and opens attacker-chosen bold/link entities, so the message the user sees is structurally different from the one the template wrote.
  2. It is persistent, not reflected. Nothing is echoed back from a request the victim made. The payload is stored on-chain, re-read by ENS's cron on a schedule the victim does not control, persisted server-side in notifications.payload (queues/event-ingestion.ts:227) and re-templated at every stage (stages.ts:9-30 defines 30d, 7d, 1d, expired). One gifted name produces multiple forged messages, each landing permanently in the victim's chat history.

The attack

# Step Cost / precondition / timing
1 Attacker registers a backtick-bearing label through ETHRegistrar.register one ordinary registration fee; the registrar applies no ENSIP-15 or character validation (executed below)
2 Attacker safeTransferFroms the ERC-1155 to the victim free, unsolicited, ERC-1155 push — no victim interaction (executed below)
3 The expiry cron's global sweep returns the name, maps owner → the victim's users row, writes a name-expiry notification automatic, but not immediate — see Timing below
4 The Telegram delivery queue sends the message with parse_mode: 'Markdown' automatic

Timing: this is not an immediate send, and I am not going to imply that it is

  • services/expiry-discovery/stages.ts:9-30 defines four stages with offsetDays 30, 7, 1 and 0; getUpperBoundForStage (stages.ts:33-42) returns nowSec + offsetDays * 86400 (or nowSec for expired). Each stage keeps its own KV cursor (cursors.ts), the query is expiry_gt: cursor, expiry_lte: upperBound (indexer.ts:13-27), and the cursor advances to the last expiry date returned (index.ts:136), so it moves monotonically forward and trails just under that stage's upper bound; a stage whose cursor has caught up is skipped (index.ts:55-62).
  • The minimum registration duration is 28 days (apps/portal/src/lib/constants/duration.ts:10, MIN_REGISTRATION_DURATION = 28 * SECONDS_PER_DAY). A name registered for that minimum has expiry = now + 28d, below the 30d stage's cursor, so that stage never returns it.

So the realistic sequence for a minimum-duration registration is: register, wait until the 7d window sweeps far enough forward to cover the name — roughly three weeks — then it is picked up at the 7d, 1d and expired stages, yielding three forged messages, at roughly day 21, day 27 and day 28. A longer registration is picked up by all four stages instead, at a proportionally longer wait; gifting can happen any time before the first pickup. None of this limits exploitability — the attacker pays one registration fee and waits — but an unqualified "automatic" would be concealment, so it is stated up front.

What the victim sees vs what the code sent

Part 2 captures the exact bytes the worker POSTs and Part 3 renders them. With the marquee payload the bot's own alert reads ⚠️ Domain Expiration Alert / Your domain ens-billing ACTION-REQUIRED:RENEW-AT-ens-domains x.eth will expire in 3 days., where that bold run is a blue, clickable link to https://ens-renewa1.example/restore — attacker text, attacker href, inside the bot's own message. With variant B the same position carries arbitrary bold text and no link at all.

The victim is looking at an authenticated message from the bot they themselves connected, on the subject they themselves subscribed to, and the body of that message now says whatever the attacker wants. That is the project's own stated top priority ("anything that could direct users to transfer funds to the wrong address, reveal a private key, or install malware"). The only constraint on the injected text is the absence of spaces in an ENS label; - and : read fine.

Why the payload is well-formed and does not simply 400

Two things must hold for Telegram to render rather than reject, and the attacker controls both. Code spans stay balanced: the template wraps the name in backticks, so a payload with two backticks makes four in the message — even — and entity parsing succeeds (asserted and printed in the PoC, backtick count in text = 4). The button URL stays valid: the template also builds https://app.ens.domains/${payload.name} (templates/telegram.ts:44), and since the payload contains no spaces a real WHATWG parser accepts it, percent-encodes the backtick, and keeps the origin at app.ens.domains (executed below).

The other outcome is also an impact

An attacker who wants the victim silenced instead of misled registers a label with a single backtick. The message then has an odd number of backticks, Telegram answers Bad Request: can't parse entities, classifyDeliveryError returns unknown (classifier.ts:99), and workers/api-worker/src/queues/dlq.ts:122-140 marks the delivery permanently_failed. The victim never receives the expiry alert for that name. Executed below.


Root cause

The sink: an ENS label interpolated into markup

File:line Code
workers/api-worker/src/services/delivery/templates/telegram.ts:34,35 Your domain \`${payload.name}\` will expire in *${daysLeft} days*.… and The domain \`${payload.name}\` you're watching will expire in *${daysLeft} days*.
workers/api-worker/src/services/delivery/templates/telegram.ts:39 parseMode: 'Markdown',
workers/api-worker/src/services/delivery/templates/telegram.ts:44 url: https://app.ens.domains/${payload.name}`,`
workers/api-worker/src/services/delivery/telegram.ts:63-73 const replyMarkup = message.buttons ? createInlineKeyboard(message.buttons) : undefined … text: message.text, parse_mode: message.parseMode, reply_markup: replyMarkup
workers/api-worker/src/services/telegram/utils.ts:209-238 createInlineKeyboard copies button.url through verbatim; no validation

services/delivery/templates/telegram.ts:52-58 (name-transferred) has the identical shape; that kind has no producer in this tree, so it is latent rather than live.

The source: the label is never validated, normalized or escaped on the way in

File:line Code
workers/api-worker/src/services/expiry-discovery/indexer.ts:46 name: v.string(), — the indexer response schema accepts any label
workers/api-worker/src/services/expiry-discovery/indexer.ts:138 name: domain.name, — copied straight out
workers/api-worker/src/types/events/index.ts:8 name: v.string(), — the queue event schema
packages/shared-schema/src/notifications/kinds/name-expiry.ts:8 name: v.string(), — the notification payload schema
workers/api-worker/src/queues/event-ingestion.ts:227 payload: { name: event.name, … } — persisted into notifications.payload

The precondition: ownership alone subscribes the victim, because the cron's sweep is global

This is the question that normally kills an "attacker gifts a name" report, so here is the decisive code rather than an assertion.

1. The indexer query has no user filter and no watch-list filter. It is every domain in the window, globally. workers/api-worker/src/services/expiry-discovery/indexer.ts:13-27:

GraphQL
query GetExpiringNames($cursor: Int!, $upper_bound: Int!) {
  domains(
    where: { expiry_gt: $cursor, expiry_lte: $upper_bound }
    orderBy: expiryDate
    orderDirection: asc
    first: 1000
  ) {
    name
    expiryDate
    owner { id }
  }
}

There is no owner_in, no join against users, no reference to any subscription table. The only predicates are the two expiry bounds.

2. Every domain the query returns is turned into a name_expiring event carrying its owner. workers/api-worker/src/services/expiry-discovery/index.ts:35-47:

TSX
function buildExpiryEvents(
  stage: ExpiryStageConfig,
  domains: { name: string; expiryDate: number; owner?: string }[],
): ExpiryEvent[] {
  return domains.map((domain) => ({
    type: 'name_expiring',
    name: domain.name,
    expiryDate: domain.expiryDate,
    stage: stage.id,
    owner: domain.owner,
    includeFavorites: stage.includeFavorites,
  }))
}

3. The owner address is then looked up in users and becomes the recipient, with no further gate. event-ingestion.ts:146-157 loads users by inArray(TABLE.users.address, ownerAddresses); :82-87 maps owner → recipient:

TSX
if (event.owner) {
  const ownerUserId = ownerToUserId.get(event.owner.toLowerCase())
  if (ownerUserId) {
    recipients.set(ownerUserId, 'owned')
  }
}

An ERC-1155 can be pushed to any address without consent, so "who owns it" is an attacker-writable field — and because the sweep is global, gifting the token is the subscription. The victim's only preconditions are the ordinary state of anyone who turned ENS notifications on: a verified telegram channel (channels/telegram.ts:60-71) and owned_name_expiry enabled (queues/event-ingestion.ts:58-66).

I also checked that the cron is the only live producer: the only other insert(TABLE.notifications) site is services/notifications/create.ts, reachable from app/routes/notifications/index.ts:350 POST /notifications/test, which is import.meta.env.DEV-gated and self-targeted.

Confirmation that no escaping exists

$ grep -rn "escapeMarkdown\|escapeHtml\|parse_mode\|parseMode" workers packages --include="*.ts" | grep -v node_modules
workers/api-worker/src/app/routes/notifications/channels/telegram.ts:106:          parse_mode: 'Markdown',
workers/api-worker/src/services/telegram/example.ts:226:    parse_mode: 'Markdown',
workers/api-worker/src/services/telegram/utils.ts:349:    parse_mode: 'Markdown',
workers/api-worker/src/services/delivery/telegram.ts:71:    parse_mode: message.parseMode,
workers/api-worker/src/services/delivery/templates/telegram.ts:8:  parseMode?: 'Markdown' | 'HTML'
workers/api-worker/src/services/delivery/templates/telegram.ts:39:      parseMode: 'Markdown',
workers/api-worker/src/services/delivery/templates/telegram.ts:58:      parseMode: 'Markdown',

$ grep -rn "escapeMarkdown\|escapeHtml\|escapeTelegram" workers packages --include="*.ts" | grep -v node_modules
(no output)

Seven parse_mode/parseMode sites, zero escape helpers.


Payload variants: what survives if the indexer filters the label

The marquee payload uses text, which needs [ and ] in the label and a . in the URL. The legacy ENS subgraph deliberately refuses a labelName containing NUL, ., [ or ] (checkValidLabel, because [labelhash] is its own placeholder syntax) and stores name = null. If the v2 indexer at https://graphql.ens.dev/ inherits that predicate, the marquee payload never reaches the worker.

I could not settle this empirically. https://graphql.ens.dev/ is returning HTTP 502 for every request right now:

$ curl -s -o /dev/null -w "graphql.ens.dev POST -> HTTP %{http_code}\n" -X POST <https://graphql.ens.dev/> \
    -H 'Content-Type: application/json' --data '{"query":"{ __typename }"}'
graphql.ens.dev POST -> HTTP 502
$ curl -s -o /dev/null -w "graphql.ens.dev GET  -> HTTP %{http_code}\n" <https://graphql.ens.dev/>
graphql.ens.dev GET  -> HTTP 502

The circumstantial evidence points the other way: the generated schema for this project's indexer, packages/indexer/graphql.gen.ts:84-106, exposes name, labelName, labelhash, isNormalized and normalizedName as separate fields on Domain:

TSX
export type Domain = {
  isNormalized: Scalars['Boolean']['output'];
  labelName?: Maybe<Scalars['String']['output']>;
  labelhash: Scalars['String']['output'];
  name?: Maybe<Scalars['String']['output']>;
  normalizedName?: Maybe<Scalars['String']['output']>;
};   // … other fields elided …

A schema carrying a raw name alongside a separate normalizedName and an isNormalized flag is one that stores non-normalized names, and apps/portal/src/utils/token/isNormalized.ts exists precisely because the apps expect non-normalized names back from it. That is support, not proof — so the finding does not rest on it. Two variants remove the dependency, both driven through the real telegramTemplates['name-expiry'] and the real deliverTelegramNotification (output in PoC Part 4):

Variant Label Uses [ ] Contains . Passes checkValidLabel What lands in the message
Marquee ens-billingACTION-REQUIRED:…x yes yes no disguised anchor: attacker text, attacker href
A ahttps://attacker.example`b` no yes no bare URL in plain text between the code spans; Telegram clients auto-link bare URLs
B aSECURITY-ALERT-CALL-ENS-SUPPORT-NOWb no no yes arbitrary bold text injected into the alert body

Variant B contains no [, ], . or NUL at all, so it passes checkValidLabel unchanged, and it is exactly the impact row this report leads with: existing text in the ENS bot's own alert replaced with arbitrary attacker-authored text, rendered as a bold entity so there is no doubt Telegram parsed it as markup rather than displaying it as a name. Variant B is registered on-chain and delivered through the worker in the PoC below.


Extra evidence: the Manager UI is not affected, which is why this survived

apps/manager/src/features/notifications/shared/templates.tsx:56 renders the same payload as <NameDisplay name={name} />, a React text node — escaped; notifications/name-expiry.tsx:21-42 passes the name as a router params value, not as a raw href; and there is no dangerouslySetInnerHTML anywhere in features/notifications. This negative control is why the Critical "Injection of malicious HTML or XSS through metadata" row is not claimed: the only surface in this project that renders HTML is clean. The defect exists only where the worker hands the name to a markup parser it does not own, which is why a reviewer reading the React code would not find it.

apps/manager/src/features/notifications/shared/templates.tsx:56 renders the same payload as <NameDisplay name={name} />, a React text node — escaped; notifications/name-expiry.tsx:21-42 passes the name as a router params value, not a raw href; and there is no dangerouslySetInnerHTML anywhere in features/notifications. This negative control is why the Critical "Injection of malicious HTML or XSS through metadata" row is not claimed: the only surface here that renders HTML is clean. The defect exists only where the worker hands the name to a markup parser it does not own — which is why a reviewer reading the React code would not find it.

Preempting the likely closure arguments

"This is EXP-INPUT-005 — name validators accept deceptive characters." EXP-INPUT-005 (RULES.md:393, 667) is about the Manager's and Explorer's input validators accepting homoglyphs, bidi and control characters, with a stated impact of "homograph-style display confusion in our UI rather than incorrect resolution". workers/api-worker has no name validator and could not have one — the label arrives from the chain, not from a form. The payload is plain printable ASCII, and the consequence is a rewritten message body, not a confusing name.

"This is EXP-INPUT-009 — the push SW opens a backend-supplied URL." EXP-INPUT-009 (RULES.md:396, 662) says explicitly it "requires control of, or injection into, the notification payload", and concerns the service worker's clients.openWindow. I deliberately do not claim that path: the push URL has the fixed prefix https://app.ens.domains/ and Part 3 shows the origin survives. Different sink, different file, different component — and RULES.md:764 is on point: "a demonstrated security consequence of one of them … goes beyond the known breakage and is a new finding". Here it is demonstrated on the wire, not asserted.

"This is R2-05 / R2-04." R2-05 is the SendGrid webhook failing open when the verification key is unset (app/routes/webhook/sendgrid.ts); R2-04 is the Explorer's OG-image worker fetching an avatar URL. Different files, different questions.

"Telegram is a third party, so this is out of scope." The defect is a missing output escape in ENS's own in-scope worker code (workers, RULES.md:567-568; the known-issues document names workers/api-worker at RULES.md:579), not a flaw in Telegram, which behaves exactly as documented when handed parse_mode: 'Markdown'. Nothing was sent to the Bot API (RULES.md:1022).

"This is excluded reflected plain text injection." RULES.md:999's own wording carves out persistent plain-text injection, and this is both persistent and not plain text — see the subsection above.

"The user must own the name, so they must have accepted it." ENS v2 names are ERC-1155 tokens; safeTransferFrom to an EOA needs no consent and no acknowledgement, which Parts 1 and 4b execute. The victim's only "action" is having turned ENS notifications on — and because the cron's sweep is global, gifting the token is itself the subscription.

"Telegram would reject the message." The code spans are balanced (4 backticks, asserted for all three payloads) and the button URL parses cleanly and keeps its origin (Part 3). If a triager still doubts the message renders, the odd-backtick variant is proven to fail delivery and land as permanently_failed, itself the RULES.md:947 Low row. There is no configuration in which this label is harmless.

"Is it recoverable?" The forged message is already in the victim's Telegram, permanently. The notification row is persisted in notifications.payload and re-templated on every retry and every subsequent stage (stages.ts:9-30).

"It's just a phishing link; the user has to click it." The claimed row does not require a click: replacing existing text in the application's own content with arbitrary attacker text is the impact, and variant B demonstrates it with no link at all. The link, where present, compounds it, and the click happens inside the trust boundary the project itself built.

Not a duplicate

#89445 (workers, Low, closed). user_channels row scoping: queues/dlq.ts:203, services/delivery/push.ts:119 and :54, app/routes/webhook/sendgrid.ts:172 write or read by target with no user_id predicate — a missing SQL predicate, not a missing output escape, and a channel's status column, not the content of a delivered message. Nothing in it touches services/delivery/templates/* or parse_mode.

#89444 (workers) — faucet drain. app/routes/wallet; unrelated.

#89270 / #90161 / #90163 / #90190 / #91837 / #92043 — the raw-vs-normalized family. Those are about one app deriving a displayed name and a transacted name from two expressions of the same string. Here there is one expression and it is correct everywhere; the defect is that a correct name is placed into a markup context without escaping (workers/api-worker never calls ens_normalize). #92043 is the nearest neighbour in spirit — unvalidated name → output context — but it is apps/portal's Cloudflare worker, OG/<title> metadata, and reflected.

#89441 / #91851 / #91900 / #91314 — the wrong-address-resolution family. No resolution is involved.

#90307 (portal, unbounded uint64 expiry crashes the names page). Also indexer-value-reaches-render, but the value is expiry (numeric range) and the sink is a Temporal call in the Explorer.

#89279, #91838, #91839, #89462, #89460, #91306. Smart-account / migration / transaction-manager; different components.

Recommendation

  1. Escape before handing anything to a markup parser: add an escapeTelegramMarkdown helper and apply it to every interpolated value in services/delivery/templates/telegram.ts — for legacy Markdown, prefix _ * ( ) ~ > # + - = | { } . !with`. Better, switch to MarkdownV2 or HTML and escape for that mode, since legacy Markdown cannot escape inside a code span.
  2. Do not put a caller-supplied string into an inline-keyboard url. Build it as https://app.ens.domains/${encodeURIComponent(payload.name)}, and have createInlineKeyboard (services/telegram/utils.ts:209) reject any url whose parsed origin is not an ENS origin.
  3. Percent-encode the name in templates/push.ts:34,46, and treat payload.name as untrusted at every sink — including the SendGrid dynamic templates, which must use {{name}} and never {{{name}}}.
  4. Optionally, validate at the boundary: have services/expiry-discovery/indexer.ts reject or [hash]substitute non-normalized labels. Defence in depth; the escape in (1) is the fix, because a label may legitimately contain characters that are harmless in text and dangerous in markup.

Proof of Concept

Proof of Concept

Executed against a local Anvil fork of Sepolia and against the worker's own code under vitest. No live network and no third-party API was touched; in particular nothing was sent to the Telegram Bot API (RULES.md:1022 prohibits testing third-party systems).

Environment

Bash
anvil --fork-url <https://ethereum-sepolia-rpc.publicnode.com> --chain-id 11155111 --port 8653 --silent &
$ cast chain-id --rpc-url <http://127.0.0.1:8653>
11155111
$ cast block-number --rpc-url <http://127.0.0.1:8653>
11670121
ETHRegistrar  0xa88553F454b77203B0D036A05c894d555EAAa2Cc
ETHRegistry   0xBDC85dD5b15D7ecb354cd7cb6f2c50b4f2c4F0E2
MockUSDC      0x768F42455A2D082E23ceeF7d51e5787C82d67a39

Part 0 — setup: register the Markdown-bearing label

.poc-89445-setup.sh, from the repo root.

Bash
#!/usr/bin/env bash
set -euo pipefail
R=http://127.0.0.1:8653
REGISTRAR=0xa88553F454b77203B0D036A05c894d555EAAa2Cc
USDC=0x768F42455A2D082E23ceeF7d51e5787C82d67a39
Z=0x0000000000000000000000000000000000000000
ZH=0x0000000000000000000000000000000000000000000000000000000000000000
VICTIM_KEY=0x3333333333333333333333333333333333333333333333333333333333333333
ATTACK_KEY=0x4444444444444444444444444444444444444444444444444444444444444444
VICTIM=$(cast wallet address --private-key $VICTIM_KEY)
ATTACKER=$(cast wallet address --private-key $ATTACK_KEY)
echo "VICTIM=$VICTIM"; echo "ATTACKER=$ATTACKER"
# [… 6 lines elided: for each of $VICTIM and $ATTACKER, anvil_setCode 0x (these vanity keys
#    carry EIP-7702 delegations on real Sepolia), anvil_setBalance, and a MockUSDC mint …]
register () {   # $1 label  $2 ownerKey

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

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

How it worked

Root cause

The worker interpolates an unvalidated, unescaped on-chain ENS label into a Telegram message that is then parsed as Markdown, so label characters are treated as formatting syntax.

Impact

A victim could receive a message from the ENS bot whose body text and links are attacker-controlled, and a single-backtick label could instead permanently fail delivery so the victim never gets the alert; the exploit is not immediate, taking roughly three weeks for a minimum-duration registration.

What the attacker needed

Attacker pays one registration fee; victim has Telegram notifications enabled; victim has owned-name expiry alerts on; no victim interaction needed

The fix

The label should be escaped for Telegram Markdown (or the message sent without a parse mode) before being placed in the template.

How it was found

  1. Register an ENS label containing backtick characters through the registrar.
  2. Transfer the resulting token to the victim's address without their consent.
  3. The expiry cron's global sweep picks up the name and maps its owner to the victim's user record.
  4. The delivery queue sends the Telegram message with Markdown parsing enabled, rendering the injected markup.

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 like usernames stored on a blockchain, and anyone can register one with unusual characters. The notification service takes that name and drops it straight into a message it formats with Telegram's text styling, without cleaning it first. Because the name can contain styling characters, an attacker can make the bot's own alert say things the attacker wrote, such as a fake warning with a link.

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 br0nz3p1ck4x3

View all

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