updateExchangeRate has no validation result #316
Labels
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
downgraded by judge
Judge downgraded the risk level of this issue
edited-by-warden
grade-b
low quality report
This report is of especially low quality
primary issue
Highest quality submission among a set of duplicates
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Lines of code
https://github.com/Tapioca-DAO/tapioca-bar-audit/blob/2286f80f928f41c8bc189d0657d74ba83286c668/contracts/markets/singularity/Singularity.sol#L119
https://github.com/Tapioca-DAO/tapioca-bar-audit/blob/2286f80f928f41c8bc189d0657d74ba83286c668/contracts/markets/bigBang/BigBang.sol#L146
Vulnerability details
Impact
Will cause subsequent asset and share conversions to fail
Proof of Concept
For example, the calling path of borrow
call path
borrow->_computeAllowanceAmountInAsset->_computeMaxBorrowableAmount
In _computeMaxBorrowableAmount, exchangeRate is used as the denominator. If it is 0, the calculation cannot be performed normally. The exchangeRate defaults to 0, so it must be executed successfully during initialization, otherwise it will become a hidden problem after the system starts
Tools Used
Manual Review
Recommended Mitigation Steps
plus result verification
Assessed type
Invalid Validation
The text was updated successfully, but these errors were encountered: