T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/deploy/templates/.env.example.txt:4- Finding
Unauthenticated Camera Control and Recording Management Exposed on All Network Interfaces
- Content
View full analysis
StartResponse: ... @app.post("/stop/{session_id}", response_model=StopResponse) async def stop_recording( session_id: str, request: StopRequest, background_tasks: BackgroundTasks ) -> StopResponse: ... @app.post("/capture", response_model=CaptureResponse) async def capture_image(request: CaptureRequest) -> CaptureResponse: ... @app.get("/output/{filename}") async def get_video(filename: str) -> FileResponse: ... @app.delete("/output/{filename}") async def delete_file(filename: str) -> JSONResponse: ... @app.get("/outputs/") async def list_outputs( limit: int = Query(default=20, ge=1, le=100), offset: int = Query(default=0, ge=0) ) -> JSONResponse: ... ``` ### Technical Analysis Binding to `0.0.0.0` makes port 27793 reachable through every configured interface unless an external firewall blocks it. The FastAPI application does not requir ...[truncated 2619 chars]- Remediation
View remediation
