Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Blockhertz Solidity Security Examples

Vulnerable and fixed Solidity smart contract examples by Blockhertz.

What is This?

Real Solidity vulnerability examples with fixes. Each folder contains a vulnerable contract and its secure version with detailed NatSpec comments explaining the bug, the exploit path, and the fix.

Use these to learn how smart contracts get drained — and how to stop it.

Vulnerabilities Covered

Vulnerability Vulnerable Fixed
Reentrancy reentrancy/Vulnerable.sol reentrancy/Fixed.sol
Access Control access-control/Vulnerable.sol access-control/Fixed.sol
Integer Overflow integer-overflow/Vulnerable.sol integer-overflow/Fixed.sol
Oracle Manipulation oracle-manipulation/Vulnerable.sol oracle-manipulation/Fixed.sol
Front-Running front-running/Vulnerable.sol front-running/Fixed.sol
Unchecked Returns unchecked-returns/Vulnerable.sol unchecked-returns/Fixed.sol

Audit These Contracts Free

Run the Blockhertz AI Auditor on any of these contracts: blockhertz.com/tools/ai-auditor

Or use the hardhat-blockhertz plugin in your own project:

npm install hardhat-blockhertz
npx hardhat blockhertz-audit

Learn More

Built by Blockhertz

blockhertz.com — AI-powered blockchain engineering platform with free developer tools.

License

MIT © Blockhertz

About

Vulnerable and fixed Solidity smart contract examples for common security vulnerabilities — reentrancy, access control, oracle manipulation and more. Audited by Blockhertz AI Smart Contract Auditor.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages