Ismail131's picture
Upload folder using huggingface_hub
ae29d48 verified
raw
history blame contribute delete
961 Bytes
import os
# Load Hard task metadata
DIR = os.path.dirname(os.path.abspath(__file__))
CONTRACT_PATH = os.path.join(DIR, "..", "contracts", "hard_complex.sol")
with open(CONTRACT_PATH, "r", encoding="utf-8") as f:
CONTRACT_CODE = f.read()
HARD_TASK = {
"name": "ComplexAudit",
"code": CONTRACT_CODE,
"description": "Complete security audit of complex contract with hidden vulns, access control, and delegatecall issues.",
"ground_truth": {
"vulnerabilities": [
{
"type": "access control",
"line": 23,
"severity": "critical",
"description": "Insecure setter for manager role"
},
{
"type": "delegatecall",
"line": 31,
"severity": "critical",
"description": "Dangerously executing delegatecall on arbitrary user-provided targets and data"
}
]
}
}