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.
- 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
- Report ID: #92954
- Report Type: Websites & Apps
- Report severity: Insight
- Target: https://github.com/immunefi-team/audit-comp-ens/tree/audit-comp-ready/apps/manager
- Impacts:
- Changing non-sensitive details of other users (including modifying browser local storage) without already-connected wallet interaction and with up to one click of user interaction, such as: Enabling/disabling notifications
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:
- compute
hash = sha256(jpegBytes), - 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:
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.
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
- Generate a fresh random wallet that does not own the victim ENS name.
- Sign an upload message containing the victim's ENS name and the hash of an attacker-controlled JPEG.
- Send the upload request to the worker path for the victim name with the signature and image.
- 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.