The EmergencyMigration script (EmergencyMigration.s.sol) successfully migrates the MoneyShelf contract to the MoneyVault contract during emergencies. However, there is a critical issue where the USDC tokens held in the MoneyShelf contract are not transferred to the MoneyVault contract during the migration process. This oversight can result in the USDC funds remaining in the MoneyShelf contract, leaving them vulnerable and defeating the purpose of the migration.
According to the documentation, the purpose of the migration from the MoneyShelf contract to the MoneyVault contract is to protect the funds from legal or criminal threats. The migration process is handled by the EmergencyMigration.s.sol script, which successfully transitions the contract state. However, the actual USDC balance is not transferred from MoneyShelf to MoneyVault, causing a significant vulnerability where the funds remain in the less secure MoneyShelf contract.
Vulnerability Details:
Location: EmergencyMigration.s.sol
Issue: USDC tokens are not transferred from the MoneyShelf contract to the MoneyVault contract during the migration.
Type: Incomplete migration process, leading to asset protection failure.
This vulnerability can lead to the following issues:
Funds Vulnerability: USDC tokens remain in the MoneyShelf contract, making them susceptible to risks that the migration was meant to mitigate.
Incomplete Migration: The main objective of migrating funds to a more secure contract (MoneyVault) is not achieved, nullifying the protective measures.
GodFather deploys migration script, the script does not contain any method to transfer the USDC inside the moneyShelf contract
Migration script runs successfully but the USDC is not moved into the moneyVault contract
Manual Review
Include USDC Transfer in Migration Script:
Ensure that the script transfers all USDC tokens from MoneyShelf to MoneyVault during the migration process.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.