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

Lack of Access Control

Summary

Lack of Access Control

Vulnerability Details

Lack of Access Control in sellProfits function

Impact

Function is accessible to anyone, which means anyone can trigger the swapping process.

Recommendations

Implement Access Control: To mitigate the risk associated with unauthorized access to the 'sellProfits' function, you should implement access control mechanisms. You can use function modifiers like 'onlyOwner' or 'onlyAuthorized' to restrict access to the function to specific addresses or contracts that are trusted and authorized to perform the swapping process.

Support

FAQs

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