Reproduced Exploit

Shiny sRWA — blacklisted operators cannot be revoked and can steal NFTs

setApprovalForAll reverts on blacklisted operator even for approved=false; approve still usable by blacklisted operators

Jan 2025Otheruntagged2 min read

Chain

Other

Category

untagged

Date

Jan 2025

Source

AuditVault

EVM Playground

Source-level debugger — step opcodes and Solidity in sync

evm-hack-analyzer

The attack is replayed in an in-browser EVM preloaded with the exact dumped fork state. The execution tree shows every call; step by Solidity line or by opcode across all depths — source, Stack, Memory, Storage, Balances (native / ERC-20 / NFT), Transient storage and Return value stay in sync. Click a tree node, opcode, or source line to jump. No backend, no live RPC.

Loading fork state…

Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 64682-h-02-blacklisted-operators-can-not-be-revoked-from-being-an. Standalone Foundry PoC and full write-up: 64682-h-02-blacklisted-operators-can-not-be-revoked-from-being-an_exp in the evm-hack-registry mirror.


Reproduction: self-contained Foundry PoC (forge-std only) — no fork. Full trace: output.txt.

AuditVault taxonomy: lang/solidity · platform/shieldify · severity/high · sector/nft · sector/rwa · genome: broken-logic · direct-drain · account-ownership


Key info#

ImpactHIGH — Victim NFTs stolen after operator is blacklisted because revoke reverts and the operator re-approves an unblacklisted attacker
ProtocolShiny sRWA
Bug classsetApprovalForAll reverts on blacklisted operator even for approved=false; approve still usable by blacklisted operators
FindingShieldify Security (H-02) · #64682
Reporthttps://github.com/shieldify-security/audits-portfolio-md/blob/main/Shiny-Security-Review.md
SourceAuditVault
StatusAudit finding — reproduced as a standalone local synthetic
Compiler^0.8.24 (PoC)

TL;DR#

setApprovalForAll reverts on blacklisted operator even for approved=false; approve still usable by blacklisted operators

HARM: Victim NFTs stolen after operator is blacklisted because revoke reverts and the operator re-approves an unblacklisted attacker


Root cause#

setApprovalForAll reverts on blacklisted operator even for approved=false; approve still usable by blacklisted operators

Preconditions#

Protocol-specific setup as described in the original finding (roles / managers / pending state in place).

Attack walkthrough#

See the synthetic test/64682-h-02-blacklisted-operators-can-not-be-revoked-from-being-an.sol and the Playground story beats. The @> VULN marker sits on the blamed executable line.

Diagrams#

sequenceDiagram participant U as Victim participant R as sRWA participant O as Blacklisted router participant A as Attacker U->>R: setApprovalForAll router true Note over R: admin blacklists router U->>R: setApprovalForAll router false R-->>U: revert Blacklisted O->>R: approve attacker tokenId A->>R: transferFrom victim attacker R-->>A: NFT stolen

Impact#

Victim NFTs stolen after operator is blacklisted because revoke reverts and the operator re-approves an unblacklisted attacker

Sources#


Sources & further analysis#

Reproductions & code

Alerts & third-party analyses

  • Web3Sec X hacked database: search.
  • Rekt leaderboard: search.
  • Solodit incident search: search.

These dashboards index community alerts tweets, post-mortems, and independent write-ups. Reach them through the protocol name above to cross-check this reproduction against other analyses.