Spaces:
Sleeping
Sleeping
File size: 1,274 Bytes
b4deece | 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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | [
{
"episode_id": "ep_001",
"snippet_id": "login_func",
"bug": {
"type": "security",
"severity": 5,
"description": "SQL Injection vulnerability: using f-strings for database queries allows attackers to execute arbitrary SQL.",
"line_hint": 3
}
},
{
"episode_id": "ep_002",
"snippet_id": "money_transfer",
"bug": {
"type": "logic",
"severity": 4,
"description": "Logic error: balance check uses '>' instead of '>=', preventing transfers when balance matches exactly.",
"line_hint": 2
}
},
{
"episode_id": "ep_003",
"snippet_id": "password_saver",
"bug": {
"type": "security",
"severity": 5,
"description": "Security flaw: password is stored in plain text without any hashing mechanism.",
"line_hint": 1
}
},
{
"episode_id": "ep_004",
"snippet_id": "find_max",
"bug": {
"type": "logic",
"severity": 3,
"description": "Off-by-one error: the loop range is shortened, so the last element will be skipped.",
"line_hint": 5
}
}
] |