Submitted by 0x1f8b
The initialize method of the JBTiered721Delegate contract has as a flag that the _store argument is different from address(0), however, it can be initialized by anyone with this value to allow the project to continue with its usual initialization, the attacker could have interfered and modified the corresponding values to carry out an attack.
Looking at the method below, we highlight in green the parts that need to be initialized to prevent a call to store=address(0) from failing.
So if the attacker initializes the contract as follows:
The contract will be initialized and transfered the ownership to msg.sender.
After that, the owner can call didPay with the the fake data provided in JBTiered721Delegate.sol:221 and increase creditsOf of anyone JBTiered721Delegate.sol:587 without touching any store call.
Ensure that the store address is not empty.
Picodes (judge) commented:
drgorillamd (Juicebox DAO) commented:
Picodes (judge) commented:
