Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

This article is intended to help you understand smart contract vulnerabilities. It introduces 14 vulnerabilities using contracts written in Solidity, drawing on the following video series.

I recommend watching the videos before reading this collection of articles on individual smart contract vulnerabilities.

If you want to improve your Solidity skills, participate in bug bounty programs, or become a bug hunter, work through each topic in turn.

Bug Bounties

A bug bounty is a vulnerability reward program through which you can earn compensation for finding vulnerabilities in contracts. Bug bounty programs are held frequently, and learning these smart contract vulnerabilities can help you prepare to participate.

For a more detailed introduction, see the following article.

https://chaldene.net/bug-bounty

Reentrancy Attacks

https://chaldene.net/solidity-reentrancy-attack

Overflow and Underflow

https://chaldene.net/solidity-overflow-underflow

SelfDestruct

https://chaldene.net/solidity-selfdestruct

Accessing Private Data

https://chaldene.net/solidity-private-data

The Risks of Delegatecall

https://chaldene.net/solidity-delegatecall

Vulnerabilities in Pseudorandom Number Generation

https://chaldene.net/solidity-random

Denial-of-Service Attacks

https://chaldene.net/solidity-bug-bounty-dos

Phishing Attacks

https://chaldene.net/solidity-bug-bounty-tx-origin

Hidden Malicious Code

https://chaldene.net/solidity-bug-bounty-hide-code

Honeypots

https://chaldene.net/solidity-bug-bounty-honeypot

Front-Running Attacks

https://chaldene.net/solidity-bug-bounty-front-running

Block Timestamp Vulnerabilities

https://chaldene.net/solidity-bug-bounty-block-timestamp

Extcodesize Vulnerabilities

https://chaldene.net/solidity-bug-bounty-extcodesize

Signature Replay

https://chaldene.net/solidity-bug-bounty-signature-replay

Conclusion

This article brought together resources on smart contract vulnerabilities. I hope you find them useful.

If you have questions, feel free to reach out on X (formerly Twitter), where I share articles about Solidity, blockchain, and Web3.