When _totalSupply is zero, sendProfit enables an attacker to front-run and become the sole beneficiary of any incoming profit.
In the sendProfit function, when there is no current supply, profits are sent directly to the creator:
This setup allows an attacker to monitor sendProfit calls. If _totalSupply is zero, they could front-run the function by quickly joining the DAO, becoming the sole user eligible for the profit.
A zero _totalSupply could allow an attacker to gain unfair profits by front-running sendProfit calls, receiving profits exclusively meant for the DAO creator.
Manual
Implement a virtual share allocation for the creator, ensuring that any profit distribution remains equitable.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.