ENS Explorer: reverse-resolution certifies an unverified default.reverse name as the verified L2 primary name
The ENS Explorer's reverse-resolution page marks an address as the verified L2 primary name of a name when that name comes from the inherited default.reverse record, without checking that the name forward-resolves back to the address. An attacker can set any name they do not own as their default reverse name and have the Explorer certify their address as that name's primary on all five L2s.
- Disclosed after under an hour
89464 w a insight ens explorer reverse resolution certifies an unverified default reverse name as the verified l2 primary name
Submitted on Aug 19th 2026 at 13:29:53 UTC by @mas4 for Audit Competition | ENS
- Report ID: #89464
- Report Type: Websites & Apps
- Report severity: Insight
- Target: https://github.com/immunefi-team/audit-comp-ens/tree/audit-comp-ready/apps/portal
- Impacts:
- Causing the application to display or pre-fill an incorrect address, name, or transaction detail, so that a user sends funds or submits a transaction to an unintended recipient, such as:
- resolving or rendering an ENS name to an attacker-controlled address
- showing the wrong recipient or amount on a transaction the user then approves
- 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:
Description
Brief/Intro
The Explorer's reverse-resolution view (/addr/$address/reverse-resolution) shows a green "This is the primary name on {chain}" certification per L2, taken from the address's inherited default.reverse name without a forward-resolution check. DefaultReverseRegistrar.setName(string) is permissionless and needs no forward record, so any address can set default.reverse to a name it does not own (vitalik.eth) and be certified as its L2 primary.
Vulnerability Details
Verification requires bidirectionality: the name must forward-resolve to the address. The inherited-default path skips it.
const isInheritingDefault = !name && !!defaultName && !isL1 // line 80
const isPrimaryName = forwardMatch || isInheritingDefault // line 83 <-- no forward check on default
computeDisplayNameState.ts#L80-L83
The inherited defaultName is fetched with its match bit discarded (allowMismatch: true), and isPrimaryName drives the green banner. A name set directly on the L2 instead yields isPrimaryName = false and the red "does not resolve back" banner.
Exploitation
{% stepper %} {% step %}
Set an unverified default reverse name
Attacker A calls DefaultReverseRegistrar.setName("vitalik.eth"). Permissionless, writes only A's reverse slot, no ownership or forward record needed.
{% endstep %}
{% step %}
Leave L2 reverse records unset
A sets no L2 reverse records, so every L2 row inherits its L1 default.
{% endstep %}
{% step %}
Open the reverse-resolution page
Victim opens /addr/A/reverse-resolution.
{% endstep %}
{% step %}
Receive an incorrect primary-name certification
forwardMatch is false (no forward addr(vitalik.eth) record points to A) but isInheritingDefault is true, so isPrimaryName is true and A is certified as vitalik.eth on all five L2s.
{% endstep %}
{% endstepper %}
Impact
The Explorer vouches for an attacker-controlled address as the verified L2 primary of a name it does not own, which can make that address pass as a trusted identity in payment-address or social-engineering confusion. Unauthenticated, one setName call, any name. Low: it is the reverse address-to-name surface, not the forward send path, which stays L1-anchored.
Recommendation
Carry the inherited default's forward-match bit into the decision instead of discarding it: use the .match result of the default.reverse lookup in useReverseResolution.ts (drop allowMismatch: true) and gate:
const isPrimaryName = forwardMatch || (isInheritingDefault && defaultForwardMatch)
so an inherited-but-unverified default renders the same red / unverified state as a directly-set one.
References
computeDisplayNameState.ts#L80-L83: forward check skippeduseReverseResolution.ts#L236-L241: default fetchedallowMismatch: trueReverseResolutionSidebar.tsx#L645-L661: green vs red banner- ENSIP-19: L2 reverse resolution,
default.reverseinheritance
Proof of Concept
The test imports the real computeDisplayNameState and asserts the attacker's unverified inherited default is classified as primary on an L2 while the same name set directly is rejected.
// Reverse-resolution primary-name verification bypass.
// Place next to computeDisplayNameState.ts (apps/portal/src/utils/reverseResolution/) so the
// ./computeDisplayNameState import resolves to the real module, then:
// pnpm --filter portal exec vitest run src/utils/reverseResolution/reversePrimaryBadge.test.ts --reporter=verbose
import { describe, expect, it } from 'vitest'
import { computeDisplayNameState } from './computeDisplayNameState'
describe('reverse-resolution primary-name verification bypass', () => {
const optimismReverseChainId = 10 // an L2 reverse registrar chain id
it('classifies an UNVERIFIED inherited default as the verified primary on L2 (the bug)', () => {
// Attacker-set default.reverse for a name they do not own, no L2 record: the L2 row inherits it.
const inherited = computeDisplayNameState({
name: null,
defaultName: 'vitalik.eth',
forwardMatch: false,
reverseRegistrarChainId: optimismReverseChainId,
})
expect(inherited.isInheritingDefault).toBe(true)
expect(inherited.isPrimaryName).toBe(true) // renders the green "primary name" banner
// The same name set directly is correctly rejected.
const directlySet = computeDisplayNameState({
name: 'vitalik.eth',
defaultName: null,
forwardMatch: false,
reverseRegistrarChainId: optimismReverseChainId,
})
expect(directlySet.isPrimaryName).toBe(false)
})
})
Run (Node v22 + pnpm v10), after copying the file next to computeDisplayNameState.ts in apps/portal/src/utils/reverseResolution/:
$ pnpm --filter portal exec vitest run src/utils/reverseResolution/reversePrimaryBadge.test.ts --reporter=verbose
RUN v4.1.5 /home/user/ens1-repo/apps/portal
✓ src/utils/reverseResolution/reversePrimaryBadge.test.ts > reverse-resolution primary-name verification bypass > classifies an UNVERIFIED inherited default as the verified primary on L2 (the bug) 1ms
Test Files 1 passed (1)
Tests 1 passed (1)
The passing test confirms isPrimaryName is true for the unverified inherited default and false for the same name set directly, which is the condition that renders the green banner at ReverseResolutionSidebar.tsx:645.
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 primary-name decision treats an inherited default.reverse name as verified without requiring the name to forward-resolve to the address, and the default lookup discards its match bit.
Impact
The Explorer could make an attacker-controlled address appear as the trusted L2 primary identity of a name it does not own, which may aid payment-address or social-engineering confusion; the report rates this low because it affects the reverse address-to-name view, not the forward send path.
What the attacker needed
No account needed; attacker can send one setName transaction; victim views the attacker's reverse page
The fix
The inherited default's forward-match bit should be carried into the decision so an inherited-but-unverified default renders the same unverified state as a directly-set name.
How it was found
- Attacker calls DefaultReverseRegistrar.setName with a name they do not own.
- Attacker leaves their L2 reverse records unset so each L2 row inherits the L1 default.
- Victim opens the reverse-resolution page for the attacker's address.
- The page shows the attacker's address as the verified primary of that name on all five L2s.
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 can point to an address (forward) and an address can point back to a name (reverse). A trustworthy display needs both directions to agree. Here the site only checked one direction for names inherited from a default record, so anyone could claim a famous name on their own address and the site would show it as verified.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.