Flash loans can affect governance voting in DAO.sol
The report claims that flash loans can be used to temporarily increase a voter's token balance and thus their voting weight in the DAO, allowing them to influence governance outcomes. The author cites a past incident at MakerDAO as evidence that this is a practical concern.
Vader Protocol contest
Originally disclosed on Code4rena
Flash loans can significantly increase a single voter’s weight and be used to impact the voting outcome. A voter can borrow a significant quantity of tokens to increase their voting weight in a transaction within which, they also deterministically influence the voting outcome to their choice.
This has already happened in the case of MakerDAO governance where a flash loan was used to affect voting outcome and noted by the Maker team as: “a practical example for the community that flash loans can and may impact system governance”
Given that flash loans are a noted concern, the impact of it to DAO governance which can control all critical protocol parameters should be mitigated as in other places.
Recommend accounting for flash loans in countMemberVotes() by using weight from previous blocks or consider capping the weight of individual voters. (L158-L163)
strictly-scarce (vader) disputed:
Not valid. All pools use slip-based fees so flash loan attack by buying up USDV or synths is not going to work.
The funds to execute this attack do not need to come from a pool. It could be done as simply as malicious members pooling their funds in a flash loan contract, and each borrowing the funds in turn to vote.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the DAO's vote counting function uses the current token balance, which can be temporarily inflated via a flash loan, rather than a balance from a previous block or a capped weight.
Impact
An attacker could borrow a large amount of tokens via a flash loan to increase their voting weight and deterministically influence the outcome of a governance vote, potentially controlling critical protocol parameters.
What the attacker needed
Access to a flash loan provider; ability to vote in the DAO
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A flash loan is a loan that must be borrowed and repaid within the same transaction. This report says that someone could use a flash loan to temporarily hold a large number of tokens, which would give them more voting power in a DAO (a decentralised autonomous organisation, a type of organisation run by code and token voting). They could then vote in a way that benefits them, all within that one transaction.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.