0% found this document useful (0 votes)
20 views1 page

Ethereum Smart Contract Vulnerabilities

The document outlines a repository of examples showcasing common vulnerabilities in Ethereum smart contracts, aimed at educating users about EVM and Solidity security issues. Each example includes a description of the vulnerability, attack scenarios, mitigation recommendations, and references to real-world contracts. The repository also features an analysis of honeypots and encourages contributions through a bounty program.

Uploaded by

Martín Maiorano
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

Ethereum Smart Contract Vulnerabilities

The document outlines a repository of examples showcasing common vulnerabilities in Ethereum smart contracts, aimed at educating users about EVM and Solidity security issues. Each example includes a description of the vulnerability, attack scenarios, mitigation recommendations, and references to real-world contracts. The repository also features an analysis of honeypots and encourages contributions through a bounty program.

Uploaded by

Martín Maiorano
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

# (Not So) Smart Contracts

This repository contains examples of common Ethereum smart contract


vulnerabilities, including code from real smart contracts. Use Not So Smart
Contracts to learn about EVM and Solidity vulnerabilities, as a reference when
performing security reviews, and as a benchmark for security and analysis tools.

## Features

Each _Not So Smart Contract_ includes a standard set of information:

* Description of the unique vulnerability type


* Attack scenarios to exploit the vulnerability
* Recommendations to eliminate or mitigate the vulnerability
* Real-world contracts that exhibit the flaw
* References to third-party resources with more information

Bonus! We have also included a repository and analysis of several [honeypots]


(honeypots).

## Vulnerabilities

| Not So Smart Contract | Description |


| --- | --- |
| [Bad randomness](bad_randomness) | Contract attempts to get on-chain randomness,
which can be manipulated by users |
| [Denial of Service](denial_of_service) | Attacker stalls contract execution by
failing in strategic way |
| [Forced Ether Reception](forced_ether_reception) | Contracts can be forced to
receive Ether |
| [Incorrect Interface](incorrect_interface) | Implementation uses different
function signatures than interface |
| [Integer Overflow](integer_overflow) | Arithmetic in Solidity (or EVM) is not
safe by default |
| [Race Condition](race_condition) | Transactions can be frontrun on the blockchain
|
| [Reentrancy](reentrancy) | Calling external contracts gives them control over
execution |
| [Unchecked External Call](unchecked_external_call) | Some Solidity operations
silently fail |
| [Unprotected Function](unprotected_function) | Failure to use function modifier
allows attacker to manipulate contract |
| [Variable Shadowing](variable%20shadowing/) | Local variable name is identical to
one in outer scope |
| [Wrong Constructor Name](wrong_constructor_name) | Anyone can become owner of
contract due to missing constructor |

## Credits

These examples are developed and maintained by [Trail of Bits]


([Link] Contributions are encouraged and are covered under
our [bounty program]([Link]
contracts/wiki#bounties).

If you have questions, problems, or just want to learn more, then join the
#ethereum channel on the [Empire Hacking Slack]
([Link] or [contact us]
([Link] directly.

You might also like