withApproval modifier is not working as expected #649
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-41
grade-b
low quality report
This report is of especially low quality
Q-10
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Lines of code
https://github.com/code-423n4/2023-09-centrifuge/blob/main/src/LiquidityPool.sol#L97-L100
Vulnerability details
Impact
The withApproval modifier in the contract is not functioning as intended, as it restricts access only to the owner of the assets and not to authorized administrators, which is not the expected behavior.
Proof of Concept
Every function with the withApproval modifier is supposed to only be called by the Owner of the assets or an authorized admin, but with the current implementation, the function will revert if called by someone othe than the owner of the asset.
Tools Used
Manual review
Recommended Mitigation Steps
To address this isssue, we recommend updating the modifier as follow:
Assessed type
Invalid Validation
The text was updated successfully, but these errors were encountered: