Runs / 2026-11-21_02-32-14 / Case trace
Did not complete
FastAPI admin authorization bypass
Ground truthMissing authorization check on admin endpoint.
Six stages in order. Tests and validators both run after the patch applies. Outcome: Did not complete.
not reached
not recorded
The case stopped on an execution error
case_execution_error
RuntimeError: wrapper died
0 findings0 of 1 seeded bug matched0 false positives
No findings returned. The reviewer output was recorded as invalid, so there was nothing to score.
The case stopped on an execution error, so no stage recorded a result.
The case stopped on an execution error, so no stage recorded a result.
No structural validators ran. The case stopped on an execution error, so no stage recorded a result.
fastapi_auth_bypass_001python, fastapi, auth
Seeded change22 lines
--- a/app/routes/admin.py +++ b/app/routes/admin.py @@ -1,12 +1,14 @@ -from fastapi import APIRouter, Depends +from fastapi import APIRouter, Depends, HTTPException router = APIRouter() -def require_admin(): - return {"id": 1, "role": "admin"} +def get_current_user(): + return {"id": 1, "role": "member"} @router.delete("/admin/users/{user_id}") -def delete_user(user_id: int, current_user=Depends(require_admin)): +def delete_user(user_id: int, current_user=Depends(get_current_user)): + if not current_user: + raise HTTPException(status_code=401, detail="Login required") return {"deleted_user_id": user_id, "deleted_by": current_user["id"]}
0.0/100
Scoring JSON17 lines
{
"scored_findings": [],
"breakdown": {
"concept_match": 0,
"file_match": 0,
"line_overlap": 0,
"severity_match": 0,
"fix_quality": 0,
"no_false_positives": 0,
"false_positive_penalty": 0,
"invalid_json_penalty": 0,
"total": 0
},
"failure_reasons": [
"case_execution_error: RuntimeError: wrapper died"
]
}parse status: invalid
The reviewer returned no output for this case.