code-423n4 / 2024-01-salty-findings

11 stars 6 forks source link

setContracts can be called multiple times. #861

Closed c4-bot-10 closed 7 months ago

c4-bot-10 commented 7 months ago

Lines of code

https://github.com/code-423n4/2024-01-salty/blob/main/src/ExchangeConfig.sol#L48

Vulnerability details

Impact

setContracts can only be be called once But when dao is the zero address, it can bypass the check. The owner can set the address of many parameters multiple times. Describe some of the impacts here.

Proof of Concept

https://github.com/code-423n4/2024-01-salty/blob/main/src/ExchangeConfig.sol#L48

Tools Used

Recommended Mitigation Steps

Assessed type

Invalid Validation

c4-judge commented 7 months ago

Picodes marked the issue as unsatisfactory: Overinflated severity

Picodes commented 7 months ago

Once the DAO is set it works?