MiloTruck Profile picture
Janitor @RenascenceLabs. #1 Warden (2023) & Judge @code4rena. SR @SpearbitDAO. Senior Auditor at https://t.co/kt45dxQNhb.
Jun 15, 2023 12 tweets 5 min read
Wanted to share a vulnerability I've seen recently in multiple audit contests.

This could be your next high/medium severity finding on @code4rena or @sherlockdefi!

The vulnerability - using the "delete" keyword on @OpenZeppelin's EnumerableSet or EnumerableMap: Image According to the following warning, an EnumerableSet cannot be cleared by simply using the "delete" keyword. Instead, this would corrupt its data:

github.com/OpenZeppelin/o… Image