256 to 112 could cause a wrong lock amount #114
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Lines of code
https://github.com/aurafinance/aura-contracts-lite/blob/main/contracts/AuraLocker.sol#L268
Vulnerability details
Impact
256 to 112 could cause a wrong lock amount
Proof of Concept
for the call stack of "function _lock" , _amount is u256, manually cut to u112, could change actual value of _amount.
Tools Used
Recommended Mitigation Steps
still use u256, instead of cutting to u112
The text was updated successfully, but these errors were encountered: