File size: 692 Bytes
3807ea3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Bug-family metadata for generated authorization defects."""

BUG_FAMILIES = {
    "bola_idor": {
        "name": "BOLA/IDOR",
        "defect": "Invoice lookup returns any invoice to any authenticated user.",
        "repair": "Require same tenant and either owner or billing_admin.",
    },
    "bfla": {"name": "BFLA", "status": "scaffolded"},
    "tenant_leak": {"name": "Tenant leak", "status": "scaffolded"},
    "jwt_claim_trust": {"name": "JWT claim trust", "status": "scaffolded"},
    "public_route_trap": {"name": "Public route trap", "status": "scaffolded"},
}


def describe_bug_family(name: str) -> dict:
    return BUG_FAMILIES.get(name, {"name": name, "status": "unknown"})