Operators can stake a vault more than once to a single DSS #94
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-61
grade-b
Q-03
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
🤖_20_group
AI based duplicate group recommendation
sufficient quality report
This report is of sufficient quality
Lines of code
https://github.com/code-423n4/2024-07-karak/blob/ab18e1f6c03e118158369527baa2487b2b4616b1/src/Core.sol#L130
Vulnerability details
Impact
Operators can request and finalize staking a vault more than once to a single DSS which will also allow spending unnecessary gas fee.
Proof of Concept
Add the below test function in
/test/core/operatorDSS.t.sol
and then run the test with this forge command.forge test --mt test_my_request_stake_update_request
Tools Used
Manual review
Recommended Mitigation Steps
Add a check for when the vault was already staked to a DSS by the operator.
Assessed type
Invalid Validation
The text was updated successfully, but these errors were encountered: