Overview
A security-focused educational project demonstrating smart contract vulnerabilities and best practices. The project showcases practical demonstrations of common attack vectors and their mitigations in the Ethereum ecosystem.
Key Topics Covered
- Secure UUPS Upgrade Pattern — proper EIP-1822 implementation following OpenZeppelin standards for safe contract upgrades
- Storage Collision Attack — how incorrect storage layout can corrupt proxy contracts and lead to unauthorized access
- Uninitialized Implementation Attack — methods attackers use to compromise unprotected implementation contracts
Technical Details
- 16 comprehensive tests across four test categories covering both vulnerable and secure implementations
- Demo scripts illustrating both proper upgrades and attack scenarios
- Built with Foundry (forge + anvil) for modern Solidity development and testing
- Uses OpenZeppelin libraries for secure contract patterns
My Responsibilities
- Researched and documented common smart contract security vulnerabilities
- Built vulnerable contract examples alongside their secure counterparts
- Wrote comprehensive test suites to demonstrate each attack and its mitigation
- Created demo scripts for hands-on learning