ArNS Exploit: From Zero to Domain Owner
The ArNS domain system treated each domain as an AOS token, and the Transfer action did not verify that the caller owned the token. An attacker could send a Transfer for someone else's token ID and take control of that domain.
medium.com
Published on medium.com
Seperti biasa, di akhir pekan yang membosankan ini saya memulai hari dengan ritual sakral: mengecek saldo yang (masih) tidak bertambah. Setelah refresh berkali-kali dan tetap nihil.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Transfer action did not validate that the signer owned the token being transferred.
Impact
An attacker could take ownership of any ArNS domain whose token ID they knew, without the owner's signer.
What the attacker needed
Knowledge of a target domain's token ID; an Arweave wallet
The fix
The ArNS team fixed the issue after the report.
How it was found
- Find the contract module through the GraphQL endpoint and download it.
- Convert the WebAssembly module to text to inspect it.
- Study the frontend code to learn how it connects to the contract and builds payloads.
- Send a Transfer action with another user's token ID as the process ID and the attacker's address as recipient.
- Observe the error response but confirm the token moved and the domain is now manageable.
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 write-up has not been written yet. The Original tab links to the source.
ArNS is a naming system on Arweave where each domain is represented by a token. The transfer function moved the token to whoever asked, without checking that the asker was the real owner. So anyone who knew a domain's token ID could become its owner.
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.