Smart Contract Security
Browse all Smart Contract Security articles.
4 min read
Hacking Underconstrained Circom Circuits With Fake Proofs
The <-- operator in Circom can be dangerous because it assigns values to signals but does not constrain them.
46 min read
Smart Contract Security: Common Solidity Vulnerabilities
A reference to the vulnerabilities that keep recurring in Solidity contracts, from reentrancy and access control to oracle manipulation and flash loans.
6 min read
Three ways to detect if an address is a smart contract
This article describes three methods in Solidity for determining if an address is a smart contract. We discuss each method in this tutorial.
12 min read
A comprehensive guide to the ERC 721 standard and related security issues
ERC721 (or ERC-721) is the most widely used Ethereum standard for nonfungible tokens.
15 min read
Getting a smart contract audit: what you need to know
A smart contract audit is a review by blockchain security experts to ensure that users will not lose funds due to a malfunction or security vulnerability.
2 min read
OpenZeppelin Ownable: Use Ownable2Step Instead
The onlyOwner modifier is probably one of the most common patterns in Solidity.
16 min read
Invariant Testing in Foundry
In this article, we will discuss invariants and how to perform an invariant test on Solidity smart contracts using Foundry test suites.
6 min read
Solidity Mutation Testing
Mutation testing is a method to check the quality of the test suite by intentionally introducing bugs into the code and ensuring the tests catch the bug.
5 min read
Second Preimage Attack on Merkle Trees and How to Prevent It
A second preimage attack passes off an intermediate Merkle tree node as a leaf to forge a proof. See how it works with 64-byte leaves and how to prevent it.
13 min read
Flash Loans and how to hack them: a walk through of ERC 3156
Flash loans are loans between smart contracts that must be repaid in the same transaction.
8 min read
Where to find solidity reentrancy attacks
Reentrancy can only happen when your smart contract calls another smart contract via function call or sending ether.