Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low

Don't use draft versions in production

Summary

Using draft versions is not recommended for productions. Additionally, the non draft version is already available
The contract imports and uses draft versions of external libraries, which are not intended for production use and may contain untested or unstable code. This could expose the system to vulnerabilities or unexpected behavior.

Vulnerability Details

The contract imports external libraries without specifying their exact versions, allowing for draft or development versions to be included. Draft versions are not thoroughly tested and may lead to unintended vulnerabilities or instability when used in a production environment.

Impact

Using draft versions of libraries in a production environment can result in unreliable behavior, unanticipated vulnerabilities, and potential loss of user funds or system functionality.

Tools Used

Manual

Recommendations

Use actual non draft version of ERC20Permit
Always use stable and well-tested versions of external libraries when deploying contracts to a production environment. Specify the exact versions of libraries in your import statements to ensure that only trusted and thoroughly reviewed code is utilized.

import {SafeERC20} from "openzeppelin/token/ERC20/utils/SafeERC20.sol";

In the above code snippet, the contract imports the SafeERC20 library without specifying the version. It is recommended to use specific stable versions of libraries instead of relying on draft versions.

Support

FAQs

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