setApprovedCreditor function in AccountV1 contract can be called by anyone
Summary
The setApprovedCreditor function in AccountV1 has no access control allowing users to set creditor
Vulnerability Detail
The setApprovedCreditor function in the AccountV1 contract lacks access control, allowing any user to set a creditor without restriction. This allows attackers to bypass checks in the flashActionByCreditor function, potentially causing unauthorized transfer of assets.
Impact
This allows attackers to bypass checks in the flashActionByCreditor function, potentially causing unauthorized transfer of assets.
iberry
high
setApprovedCreditor function in AccountV1 contract can be called by anyone
Summary
The setApprovedCreditor function in AccountV1 has no access control allowing users to set creditor
Vulnerability Detail
The setApprovedCreditor function in the AccountV1 contract lacks access control, allowing any user to set a creditor without restriction. This allows attackers to bypass checks in the flashActionByCreditor function, potentially causing unauthorized transfer of assets.
Impact
This allows attackers to bypass checks in the flashActionByCreditor function, potentially causing unauthorized transfer of assets.
Code Snippet
https://github.com/sherlock-audit/2023-12-arcadia/blob/main/accounts-v2/src/accounts/AccountV1.sol#L400-L402
Tool used
Manual Review
Recommendation
Use access control right to check function