ConsenSys/diligence-takehome

Name: diligence-takehome

Owner: ConsenSys

Description: null

Created: 2017-12-26 15:44:07.0

Updated: 2018-01-04 18:29:53.0

Pushed: 2017-12-26 16:07:19.0

Homepage: null

Size: 5

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

PLEASE DO NOT FORK THIS REPOSITORY.

Hello, we're excited to have your interest in ConsenSys Diligence, and we appreciate you taking the time to complete our take home challenge.

Instructions

In this repository you'll find a contract name HackableToken.sol. This is an ERC20 contract, with a totalSupply of tokens based on ETH deposits. A deposit of 1 ETH, get's 1 token. There is an issue with this token, which makes it possible for an attacker to withdraw more than they have deposited!

To complete the challenge:

  1. Write the Attacker.sol contract
  2. Complete the second test in test/attack.js, so that all tests pass.
  3. Complete the content in Vulnerability.md, according to the headings and comments in that file.

Once complete, send us a zip file containing this repository with your additions.

Tips
Please let us know if you have any questions!

It's quite possible there's some detail missing from this description.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.