Authenticated Route Bypass
A vulnerable authentication bypass might occur when an endpoint that should be protected isn't properly enforced by authentication middleware or decorators.
Vulnerable Code
@router.get("/users")
async def get_all_users(db: Session = Depends(get_db)):
users = await get_all_users_handler(db)
return JSONResponse(status_code=200, content={"status": "success", "message": "Users retrieved successfully", "data": jsonable_encoder(users)})Vulnerable APIs
Compliance
CWE & CVSS
Last updated