BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveMetaverse

Decentraland LAND vulnerability (2018)

'''Decentraland's October 2018 LAND vulnerability** was a defect in the token-approval clearing logic of the Ethereum smart contracts used to represent parcels in Decentraland. The problem was reported by Agustín Aguilar of Ripio Credit Network on 24 October 2018. In a 2 November 2018 disclosure, Decentraland said it had repaired the issue, cleared potentially dangerous permissions and checked that no LAND parcels had been affected. The repaired source code is independently visible in Git history; the claim that no historical exploit occurred is, for now, an **operator-reported audit result''', not a chain reconstruction performed by this archive. Decentraland, ''Vulnerability Disclosure: LAND, October 2018'', 2 November 2018

Why approvals mattered

A parcel's current Ethereum token owner was not necessarily the only address able to move it. The Ethereum ERC-721 model also permits transfer approval for an individual token and operator approvals covering an owner's holdings. These are permissions over transfers, not merely permissions to edit a scene's appearance. ERC-721 specification

The surviving October 2018 ERC721Base.sol source provides a particularly direct explanation. Its _isAuthorized routine allows the current owner, an operator approved for all of that owner's assets, or the address stored in _approval[assetId] to transfer a token. That last approval is attached to the asset ID. It must not silently outlive a change in ownership.

The vulnerable sequence

The pre-fix _moveToken executed three internal operations in this order:

_removeAssetFrom(holder, assetId);
_clearApproval(holder, assetId);
_addAssetTo(to, assetId);

The first operation set _holderOf[assetId] to the zero address. But _clearApproval checked whether _ownerOf(assetId) == holder before clearing _approval[assetId]. By the time it ran, the check was false. It was guarded by an if, not a require, so it did not stop the transfer; it simply left the old approval in place.

Once _addAssetTo installed the new owner, an address previously approved for that token could still satisfy the implementation's asset-specific authorization branch. This is the source-level failure mode. It does not establish that a previous approved operator actually used it to take somebody else's LAND in production. Vulnerable implementation, preserved source · Contemporary developer disclosure

This should also not be conflated with the separate updateOperator role for editing LAND content, or with the later district governance arrangements. The defect concerned an approval capable of transferring the token.

A same-day source fix

Decentraland dates the responsible report to 24 October 2018 at approximately 20:00 GMT. Git history preserves Esteban Ordano's fix: approval array reset commit with an author timestamp of 24 October 2018, 21:08:53 UTC.

The diff is narrow and decisive. It moves _clearApproval(holder, assetId) before _removeAssetFrom(holder, assetId), while the parcel still belongs to the holder. It also adds an _unused mapping to the storage contract. The diff itself does not explain the additional mapping's purpose, and this archive does not infer a live deployment time from a repository commit timestamp. Original fix diff, 24 October 2018

In its 2 November account, Decentraland reported three remedial steps:

  1. Reordering the approval and ownership-removal operations.
  2. Adding a privileged means of clearing a parcel's existing approved operator.
  3. Running an integrity check, which it said found no exploitation and no affected parcels.

The first step has a directly identifiable counterpart in the versioned source diff. The second and third are documented here as contemporary first-party claims. This investigation has not yet independently established the exact administrative cleanup transactions, the deployed proxy-implementation changes, or the complete dataset and procedure behind the integrity check. Original disclosure

The proxy boundary

The disclosure describes LANDRegistry as a proxy delegating execution to a separate implementation contract. It gives the vulnerable ERC-721 implementation address as 0x7623127801542906eaf18e4d32e51b5a331c281a. This is the implementation address identified by the operator, not a substitute for tracing the registry proxy and its upgrades.

That distinction matters for digital property history: a stable ownership address can coexist with mutable implementation logic. A repair made possible by upgrade authority protects holders only if the upgrade is deployed correctly and the authority itself is exercised legitimately. Neither a Git commit nor the fact of a proxy proves which code was executing at a particular Ethereum block. First-party account of the proxy and implementation

The later 30 January 2019 LANDRegistry and EstateRegistry update describes a different set of changes, including ERC-721 event-ordering and the clearing of an Estate content-update operator. Those later repairs should not be retroactively described as the October token-transfer approval defect.

Evidence and limits

  • Direct source evidence: the old _moveToken, _clearApproval and _isAuthorized code, together with the dated 24 October commit, establish the order-of-operations defect and its source-level correction. Before · Change
  • Contemporary first-party testimony: Decentraland's 2 November disclosure supplies Aguilar's attribution, the approximate reporting time, the asserted remediation sequence and its no-loss finding. These are not independently reproduced by a blog post. Disclosure
  • Unresolved chain evidence: the historical proxy upgrade transaction, exact activated bytecode, operator-cleanup transactions and completeness of the post-incident audit require an Ethereum-ledger reconstruction. In particular, absence of a known reported loss is not proof that every possible exploit path has been excluded.

Why it matters

Decentraland Stone Age and Decentraland Bronze Age experimented with making virtual territory durable through custom ledgers. The later Ethereum registry preserved ownership as transferable tokens. This incident shows that durability also depends on the exact rules that determine who can move the record. On-chain state is not made safe simply by being on-chain.

The point is not that ownership is illusory. It is that a claim, an authorization to move it, the implementation enforcing authorization, and the evidence that a repair reached production are different archival objects. The same separation helps compare Second Life land, Bitmap districts and Genesis City's original allocation without flattening their trust models.

Open research

Open question
Identify the October 2018 LANDRegistry proxy implementation history and the exact Ethereum transactions activating the corrected transfer logic. Distinguish contract creation, repository commit, proxy upgrade and administrator cleanup.
Open question
Find the contemporaneous integrity-check code, methodology or signed output behind the 2 November 2018 no-loss report, and test whether it accounts for all parcel-specific approvals and transfers in the relevant period.