Platform: Code4rena
Start Date: 07/04/2023
Pot Size: $47,000 USDC
Total HM: 20
Participants: 120
Period: 6 days
Judge: GalloDaSballo
Total Solo HM: 4
Id: 230
League: ETH
Rank: 79/120
Findings: 1
Award: $26.76
🌟 Selected for report: 0
🚀 Solo Findings: 0
26.761 USDC - $26.76
Owner steals NFT/ERC depending on what the victim approved and intended to sell/buy/exchange to the PrivatePool.
The transaction of "Step 2" would safeTransfer from the Victim to an attacker controlled address.
Please note that this vulnerability has broader scope than the automated finding of M-1: Centralization Risk for trusted owners
. Centralization risk would be the owner doing something with the funds of the pool. Not the owner doing something with funds that were intended to be exchanged for something.
At the minimum the execute
function should disallow calls to the baseToken (if ERC pool) and the NFT contract. Better would be to add a time delay on the execute
function as some contracts have multiple entry points and simply disallowing calls to the ERC/NFT would not work.
#0 - c4-pre-sort
2023-04-20T16:40:29Z
0xSorryNotSorry marked the issue as duplicate of #184
#1 - c4-judge
2023-05-01T19:21:22Z
GalloDaSballo marked the issue as satisfactory