Reproduced Exploit
ParaSpace — [H-04] Anyone can prevent themselves from being liquidated
1. Comment says owner-only; modifier is only onlyWhenFeederExisted. 2. Anyone removes all feeders → no one can setPrice (UPDATER_ROLE revoked). 3. Liquidations that need a live floor TWAP fail — underwater NFT debt stays open.
Chain
Other
Category
untagged
Date
Nov 2022
Source
AuditVault
EVM Playground
Source-level debugger — step opcodes and Solidity in sync
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.
Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 15977-h-04-anyone-can-prevent-themselves-from-being-liquidated-as. Standalone Foundry PoC and full write-up: 15977-h-04-anyone-can-prevent-themselves-from-being-liquidated-as_exp in the
evm-hack-registrymirror.
Vulnerability classes: genome/liquidation-logic · genome/oracle-freshness · missing access control
Reproduction: self-contained Foundry PoC with only
forge-std— no fork. Full trace: output.txt.
AuditVault taxonomy: lang/solidity · platform/code4rena · severity/high · sector/lending · sector/nft · sector/oracle · genome: liquidation-logic · oracle-freshness · reentrancy-guard
Key info#
| Impact | HIGH — permissionless removeFeeder strips keepers; NFT liquidations DoS |
| Protocol | ParaSpace |
| Vulnerable code | NFTFloorOracle.removeFeeder — no onlyRole(DEFAULT_ADMIN_ROLE) |
| Bug class | Missing access control on privileged oracle admin |
| Finding | Code4rena 2022-11-paraspace · #15977 (H-04) · reporter xiaoming90 |
| Report | 2022-11-paraspace |
| Compiler | ^0.8.24 (PoC) |
TL;DR#
- Comment says owner-only; modifier is only
onlyWhenFeederExisted. - Anyone removes all feeders → no one can
setPrice(UPDATER_ROLE revoked). - Liquidations that need a live floor TWAP fail — underwater NFT debt stays open.
The vulnerable code#
function removeFeeder(address _feeder) external onlyWhenFeederExisted(_feeder) {
_removeFeeder(_feeder); // @> VULN: missing onlyRole(DEFAULT_ADMIN_ROLE)
// FIX: onlyRole(DEFAULT_ADMIN_ROLE) on removeFeeder
}
Root cause#
Existence check is not authorization. Feeder removal is a privileged configuration change left open to the world.
Diagrams#
Impact#
A borrower near liquidation (or a competitor) can repeatedly strip feeders, blocking liquidateERC721 until admins re-add keepers — free option on recovery / protocol insolvency risk.
Remediation#
onlyRole(DEFAULT_ADMIN_ROLE) on removeFeeder.
Sources#
- AuditVault #15977
- Code4rena 2022-11-paraspace
code-423n4/2022-11-paraspace@c6820a2paraspace-core/contracts/misc/NFTFloorOracle.sol
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 15977-h-04-anyone-can-prevent-themselves-from-being-liquidated-as_exp (evm-hack-registry mirror).
- AuditVault finding: 15977-h-04-anyone-can-prevent-themselves-from-being-liquidated-as.
Alerts & third-party analyses
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.