File size: 700 Bytes
80018f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import os

# Load Easy task metadata
# We use absolute path to find the contract code correctly
DIR = os.path.dirname(os.path.abspath(__file__))
CONTRACT_PATH = os.path.join(DIR, "..", "contracts", "easy_reentrancy.sol")

with open(CONTRACT_PATH, "r") as f:
    CONTRACT_CODE = f.read()

EASY_TASK = {
    "name": "VulnerableBank",
    "code": CONTRACT_CODE,
    "description": "Find the security vulnerability in this contract.",
    "ground_truth": {
        "vulnerabilities": [
            {
                "type": "reentrancy",
                "line": 14,
                "severity": "critical",
                "description": "State change after external call"
            }
        ]
    }
}