Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 1.19 KB

Improper Storage Management of Open Loan Accounts.md

File metadata and controls

27 lines (23 loc) · 1.19 KB

When loans are open, the associated account address gets added to the accountsWithOpenLoans array regardless of whether the account already has a loan/is already included in the array.

Additionally, it is possible for a malicious actor to create a denial of service condition exploiting the unbound storage array in accountsSynthLoans

Recommendation:

Consider changing the storeLoan function to only push the account to the accountsWithOpenLoans array if the loan to be stored is the first one for that particular account ; 2) Introduce a limit to the number of loans each account can have.


Slide Screenshot

068.jpg


Slide Text

  • Sigma Prime EtherCollateral Finding 2
  • Data Validation & DoS
  • High Severity
  • Open Loan
  • No Account Checks
  • Check Account/Loan
  • Limit Loans/Account

References


Tags