smart-contract-vulnerabilities
A collection of smart contract vulnerabilities along with prevention methods
Last updated Jul 8, 2026
2.5k
Stars
329
Forks
25
Issues
0
Stars/day
Attention Score
95
Language breakdown
No language data available.
โธ Files
click to expand
README
Smart Contract Vulnerabilities
A collection of smart contract vulnerabilities along with prevention methods.
See /references for LLM-optimized references.
Access Control
- Authorization Through tx.origin
- Insufficient Access Control
- Delegatecall to Untrusted Callee
- Signature Malleability
- Missing Protection against Signature Replay Attacks
Math
Control Flow
- Reentrancy
- DoS with Block Gas Limit
- DoS with (Unexpected) revert
- Using
msg.valuein a Loop - Transaction-Ordering Dependence
- Insufficient Gas Griefing
Data Handling
- Unchecked Return Value
- Write to Arbitrary Storage Location
- Unbounded Return Data
- Uninitialized Storage Pointer
- Unexpected
ecrecovernull address
Unsafe Logic
- Weak Sources of Randomness from Chain Attributes
- Hash Collision when using abi.encodePacked() with Multiple Variable-Length Arguments
- Timestamp Dependence
- Unsafe Low-Level Call
- Unsupported Opcodes
- Unencrypted Private Data On-Chain
- Asserting Contract from Code Size
Code Quality
๐ More in this category