Crypto exploits

RoyalRoyalties exploit analysis

A zero-amount ERC1155 batch transfer that Royal1155LDA still counted toward a tier balance let an attacker inflate one address's apparent 100-unit share of a one-unit tier and claim a flash-loan-funded royalty deposit at 100 times its real entitlement, netting roughly 261,163 USDC.

David

Security ·

Reported loss
$261K
Occurred
Logged
Chain
Polygon

Logged as “2026-06-23: Zero Amount Erc1155 Batch Transfer Inflated Royal Lda Tier Balance on RoyalRoyalties”.

Analysis3 min read

Royal is a music-NFT marketplace where fans buy Limited Digital Assets, LDAs, tied to specific songs and receive a share of the track's streaming royalties in return. Royal1155LDA, the ERC1155 contract that mints and tracks those LDAs, keeps its own parallel bookkeeping of how many units of each tier an address holds, tierBalanceOf, separate from the standard ERC1155 balance the token standard already provides. A second contract, Royalties, reads that tierBalanceOf figure whenever it pays out a royalty deposit, splitting the deposit pro-rata across however many units of a tier each holder appears to own.

The bug sat in how tierBalanceOf got updated. safeBatchTransferFrom walked every item in a batch transfer and incremented the receiver's tier count for each one, including items where the transferred amount was zero. Tier 42 had a real total supply of one LDA, and the contract's internal owned-tokens backfill, the process meant to reconcile that bookkeeping against actual holdings, had not finished. On June 23, 2026, an attacker exploited that gap directly: a helper contract with no tier-42 balance of its own batch-transferred 100 zero-amount tier-42 tokens to a freshly deployed receiver contract. Royal1155LDA counted all 100 transfers, so the receiver's tierBalanceOf(42) read 100 against a tier that, in reality, had exactly one token in existence.

The attacker's helper first took a QuickSwap V2 flash swap of USDC, sized to roughly the royalty pool's existing float divided by 99. Inside the flash-swap callback it deployed the receiver, batch-transferred the 100 zero-amount tokens to it, and deposited the borrowed USDC into Royalties as a tier-42 royalty payment. Because the receiver's apparent share of tier 42 was 100 against a real supply of one, its claim through Royalties paid out the deposit multiplied by 100 rather than by the single unit it should have been entitled to. The attacker repaid the flash swap out of that payout and kept the rest. CertiK's alert, quoted by cryip.co, describes 100 zero-value transfers that stacked reward records to claim a 100X reward. cryip.co's own text adds the same shape of numbers: a flash loan of roughly 2,638 USDC and a claim of about 263,809 USDC. DeFiHackLabs' proof of concept, run against the live Polygon state at the block before the attack, puts the net profit at 261,162.93 USDC, which matches cryip.co's rounder figure of about $261,200 (CertiK's alert itself said a $263K exploit).

The attacker address, 0xbd829aa63311bb1e3c0ea58a7193364de670bd56, is named in both the proof of concept and the wider reporting on the incident. DeFiHackLabs' reconstruction names the contract that executed the batch transfer and flash swap as 0x11ca9155aedfeb6772df5ea42ff714db7fba6adb; cryip.co's article identifies a separate helper contract at 0x7fd7…ca52, which may be a different piece of the same attack, such as the contract that received the inflated balance and filed the claim, rather than a conflicting account of the same role. The drain itself sits in transaction 0x7a92106f145045b7a2bdce60a22109739f9b0cd0185bf16ff83fd1fac98cb42e on Polygon. Neither cryip.co nor any other coverage reports a statement from Royal, and it is not clear from the available reporting whether the exploited Royalties contract was still active infrastructure for the platform or a legacy deployment left running.

A safeBatchTransferFrom override that skipped the tier-balance update whenever a batch item's amount was zero would have closed this off at the source, since the exploit depends entirely on the zero-amount case being treated the same as a real transfer. Finishing the owned-tokens backfill before trusting tierBalanceOf for a payout, or having Royalties read actual ERC1155 balances instead of a second, independently maintained count, would have caught the mismatch even without that specific fix.

Sources read (4)

Other exploits

Query every incident yourself — free, no signup

Updated 9 Nov 2026. Figures are as reported by the sources listed above and are not independently verified.