T09 · Insecure Skill Coding Practices
- Location
scripts/mintSYT.js:43- Finding
Unlimited USDC Approval Exposes Current and Future Wallet Funds
- Content
View full analysis
`. 2. The script detects that the existing allowance is below the deposit amount. 3. The wallet signs an approval granting the router an allowance of `maxUint256`. 4. The requested deposit completes, but the unused authorization remains active. 5. The wallet later receives or retains additional USDC. 6. An attacker compromises or exploits the approved router, or otherwise gains the ability to invoke its token-spending capability. 7. The attacker uses the persistent allowance to transfer USDC from the wallet without a new approv ...[truncated 348 chars]- Remediation
View remediation
