code-423n4 / 2023-02-ethos-findings

8 stars 6 forks source link

An assertion violation was triggered. #354

Closed code423n4 closed 1 year ago

code423n4 commented 1 year ago

Lines of code

https://github.com/code-423n4/2023-02-ethos/blob/main/Ethos-Core/contracts/TroveManager.sol#L417 https://github.com/code-423n4/2023-02-ethos/blob/main/Ethos-Core/contracts/TroveManager.sol#L1279 https://github.com/code-423n4/2023-02-ethos/blob/main/Ethos-Core/contracts/TroveManager.sol#L1342 https://github.com/code-423n4/2023-02-ethos/blob/main/Ethos-Core/contracts/TroveManager.sol#L1348 https://github.com/code-423n4/2023-02-ethos/blob/main/Ethos-Core/contracts/TroveManager.sol#L1489 https://github.com/code-423n4/2023-02-ethos/blob/main/Ethos-Core/contracts/RedemptionHelper.sol#L128

Vulnerability details

Impact

It is possible to trigger an assertion violation in the functions:

Proof of Concept

https://swcregistry.io/docs/SWC-110

Tools Used

Mythx

Recommended Mitigation Steps

use require() instead of assert()

c4-judge commented 1 year ago

trust1995 marked the issue as unsatisfactory: Invalid