Skip to content
Access control Audit finding Intermediate

Unauthorized Profile Image Change. Upload Does Not Verify Signer Ownership

The profile-image upload worker recovers a signer from a signed message but never checks that the signer owns or manages the ENS name in the URL path. Any wallet can therefore upload an image to another user's existing avatar or header slot.

bugtester Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

92954 w a insight unauthorized profile image change upload does not verify signer ownership

Submitted on Sep 13th 2026 at 13:07:52 UTC by @bugtester for Audit Competition | ENS

Description

Summary

The user profile-image upload worker does not verify that the signer is authorized to manage the ENS name being uploaded to.

The signed message contains the target ENS name, but the recovered signer is never checked against the ENS name's owner or authorized manager.

This allows any wallet to upload an image to another user's existing avatar/header slot without authorization.

ecause the upload request body carries no name field ({expiry, dataURL, sig, unverifiedAddress}, profileImageUpload.ts:156-161), the worker's only source for the name is the URL path. Any wallet can therefore:

  1. compute hash = sha256(jpegBytes),
  2. sign Upload{upload, expiry, name: <VICTIM>, hash} with its own Any wallet (attacker ) key (the signature is valid — it's over the victim name, which matches the path),

Check Attached Screenshot for proof

Impact

An attacker can replace the avatar or header of an ENS name that already uses the upload feature, without any interaction or permission from the victim.

This results in an unauthorized profile modification

Remediation

Verify that the recovered signer owns or is authorized to manage the ENS name before accepting the upload.

Link to Proof of Concept

https://gist.github.com/piyushshukla599/a1afdf5323d5a6313f7ef4050b69c2bc

Proof of Concept

PoC

A PoC is included with the submission:

apps/manager/_poc_avatar_ownership_check.mjs

It generates a fresh random wallet, signs an upload request containing the victim's ENS name, uploads an attacker-controlled JPEG, verifies that both the storage and public render changed

Run from apps/manager:

Bash
SEND=1 VICTIM_NAME='name.eth' IMG_FILE=./attacker.jpg \
  node _poc_avatar_ownership_check.mjs

The PoC also supports a dry run.

I reproduced the issue on Sepolia using a fresh wallet that did not own the test ENS name. The upload succeeded, and the public renderer returned the attacker's image. The original image was then restored.

attacker signer   : 0xfEa5155950026074D6aAbd7e3925451f493Da56a
victim name       : "enss.eth" (NOT owned by signer)
signed name       : "enss.eth" (== path, so digest matches)
upload endpoint   : https://avatar-upload-staging.ens-cf.workers.dev/sepolia/enss.eth
image             : pwn.jpg (10277 bytes)
expected hash     : 735d71e86bb75f40713ae68bbeb63c0fff615d116a77940771696d5c8d29af9f
raw-store readback: https://avatar-upload-staging.ens-cf.workers.dev/sepolia/enss.eth?v=1789301726456
public render     : https://ens-metadata-v2.ensdomains.workers.dev/sepolia/avatar/enss.eth

-- firing PUT --
PUT status        : 200 {"message":"uploaded"}

Relevant Code

apps/manager/src/features/profile/service/profileImageUpload.ts

The upload body contains:

{ expiry, dataURL, sig, unverifiedAddress }

It does not contain the ENS name. The worker therefore uses the name from the URL path, but fails to verify that the recovered signer is authorized to manage that name.

The original report as published on Immunefi, by bugtester. 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 takes the ENS name from the URL path and verifies only that the signature is valid over that name, without checking the signer against the name's owner or authorised manager.

Impact

An attacker could replace the avatar or header of an ENS name that already uses the upload feature, without any interaction or permission from the victim.

What the attacker needed

Victim name already uses the upload feature; attacker has any wallet; no victim interaction needed

The fix

The worker should verify that the recovered signer owns or is authorised to manage the ENS name before accepting the upload.

How it was found

  1. Generate a fresh random wallet that does not own the victim ENS name.
  2. Sign an upload message containing the victim's ENS name and the hash of an attacker-controlled JPEG.
  3. Send the upload request to the worker path for the victim name with the signature and image.
  4. Observe the upload succeed and the public renderer return the attacker's image.

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 wallet-owned usernames on Ethereum, and each name can have a profile picture. The upload service checks that a request was signed by some wallet, but not that the wallet actually owns the name being changed. So anyone with any wallet can overwrite someone else's picture.

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.

More by bugtester

View all

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

Broken access control

The lesson behind this report.

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.