The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: high
Valid

Access Control Vulnerability in Asset Distribution Function in Liquidation Pool contract

Summary

The function distributeAssets has an access control vulnerability because it lacks any access restrictions, allowing any user to call it with potentially fraudulent tokens. This could lead to unauthorized distribution of assets and loss of user funds.

Vulnerability Details

The distributeAssets function is intended to distribute assets among holders based on their stake. However, there are no checks to ensure that the caller is authorized to invoke this function, which means that anyone can call it with arbitrary tokens.

Impact

The impact of this vulnerability is high, as it could result in the loss of funds for users. Malicious actors could exploit this function to distribute assets to themselves or to diminish the value of the assets by introducing fraudulent tokens.

Tools Used

Manual Testing

Recommendations

To mitigate this vulnerability, implement access control mechanisms and make it callable by only the manager.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

distributeAssets-issue

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.