Closed code423n4 closed 1 year ago
AccountListCaller
is inherited by DepositHook
, MintHook
, and RedeemHook
and setAccountList is an onlyRole
function there.
Invalid as @hansfriese explained.
Maybe the contract could be made abstract
and a comment could be added though
Picodes marked the issue as unsatisfactory: Invalid
Lines of code
https://github.com/prepo-io/prepo-monorepo/blob/feat/2022-12-prepo/packages/prepo-shared-contracts/contracts/AccountListCaller.sol#L10
Vulnerability details
Impact
The setAccountList function which is the function that is responsible to set the account list object is made public with no access control on the AccountListCaller contract,
Proof of Concept
Tools Used
Manual
Recommended Mitigation Steps
Add access control on the function