You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The distribute function of NFTXFeeDistributor has no access control and will invoke a fallback on the fee receivers, meaning that a fee receiver can re-enter via this function to acquire their allocation repeatedly potentially draining the full balance and sending zero amounts to the rest of the recipients.
Proof of Concept
A smart contract with a malicious receiveRewards function can re-enter the distribute function with the same vault ID thereby causing the exploit.
Tools Used
Manual review.
Recommended Mitigation Steps
Re-entrancy protection should be incorporated into the distribute function. I should note that a seemingly innocuous contract can cause this re-entrancy by simply asking the owners of the project to include an upgrade-able contract that is then replaced for a malicious implementation.
The text was updated successfully, but these errors were encountered:
Handle
0xsomeone
Vulnerability details
Impact
The
distribute
function ofNFTXFeeDistributor
has no access control and will invoke a fallback on the fee receivers, meaning that a fee receiver can re-enter via this function to acquire their allocation repeatedly potentially draining the full balance and sending zero amounts to the rest of the recipients.Proof of Concept
A smart contract with a malicious
receiveRewards
function can re-enter thedistribute
function with the same vault ID thereby causing the exploit.Tools Used
Manual review.
Recommended Mitigation Steps
Re-entrancy protection should be incorporated into the
distribute
function. I should note that a seemingly innocuous contract can cause this re-entrancy by simply asking the owners of the project to include an upgrade-able contract that is then replaced for a malicious implementation.The text was updated successfully, but these errors were encountered: