On the 30th of June, Azuki DAO suffered an exploit of it’s governance token contract. The attack was made possible by a signature replay vulnerability. And around 17,937,50 BEAN was stolen by the hackers from the exploit.
Azuki DAO was a group that was formed last week in response to the controversial launch of Azuki Elementals, an NFT project spin-off from the creators of the original Azuki NFT collection. The DAO created a governance token, $BEAN, which was distributed to NFT owners.
To learn more about the Project, check out the official website.
Attacker Address:
1. 0x85D231C204B82915c909A05847CCa8557164c75e
2. 0x8Eadc7Cc0a77594e3fA999e80e1cCb7F4e1c04E0
Victim Contract: 0x8189AFBE7b0e81daE735EF027cd31371b3974FeB
Attack Transactions:
This allowed attacker to repeatedly call the claim function with the same signature across different invocations of the claim function.
Although the attack was carried through a replay attack, the inherent signature malleability of ECDSA signature scheme could also be exploited.
This is because the line signatureClaimed[_signature] is storing signature as a key to hash . An attacker can take one valid signature , and make another valid signature
The attacker 0x85d231c204b82915c909a05847cca8557164c75e has made a profit of 34.47ETH
The attacker 0x8Eadc7Cc0a77594e3fA999e80e1cCb7F4e1c04E0 has made a profit of 0.614ETH
June 30th, 2023, at 3:54:47 PM +UTC, the attacker claimed 6,250 BEANZ tokens. The series of transactions lasted around 3:56:23 PM +UTC.
June 30th, 2023, at 4:15 PM UTC, the attacker claimed 31,250 Bean tokens from contract. The series of transactions lasted around 4:34 PM UTC.
July 4th, 2023 – MetaSleuth informed about the attack via Twitter.
The Exploit could have been prevented if a like this was placed at the start of the claim, function
require(!signatureClaimed[_signature], “Not Authorized”);
A simple solution would be to modify the “claimed” mapping to be based on the user’s address instead of using the signature as the key. This way, each user would only be able to receive tokens once.
Get Pure Alpha Straight to Your Inbox. Miss this, and you’re missing out.
Insider Secrets - Delivered Right to You. Subscribe now.