Skip to content

Solidity Security Demonstrations

A curated collection of Foundry-based tests demonstrating common security risks and user-operation vulnerabilities in Solidity smart contracts.

The primary goal is educational: to illustrate real-world attack vectors, their exploitation mechanisms, and effective mitigations through clear, executable examples.

Usage

Run all tests:

forge test

Run a specific test with verbose output:

forge test --match-path test/ApproveScam.t.sol -vv

Disclaimer

This repository contains proof-of-concept code that intentionally demonstrates insecure patterns and exploitation techniques in smart contracts.

The content is strictly for educational and research purposes only. It must not be used for any illegal activities, unauthorized access, or exploitation of production systems.

Users bear full responsibility for any actions taken based on this material. All usage must comply with applicable laws, regulations, and ethical standards.