Skip to content

fix: the delete endpoints for saved requests and mod... in api_server.py#1908

Open
orbisai0security wants to merge 2 commits intounclecode:developfrom
orbisai0security:fix-fix-v-005-delete-endpoint-access-control
Open

fix: the delete endpoints for saved requests and mod... in api_server.py#1908
orbisai0security wants to merge 2 commits intounclecode:developfrom
orbisai0security:fix-fix-v-005-delete-endpoint-access-control

Conversation

@orbisai0security
Copy link
Copy Markdown

Summary

Fix critical severity security issue in docs/examples/website-to-api/api_server.py.

Vulnerability

Field Value
ID V-005
Severity CRITICAL
Scanner multi_agent_ai
Rule V-005
File docs/examples/website-to-api/api_server.py:265

Description: The DELETE endpoints for saved requests and models lack authorization checks to verify resource ownership before deletion. Any authenticated user can delete resources belonging to other users by simply providing the resource identifier. The endpoint at line 265 deletes saved requests without validating that the requesting user owns the request, and the endpoint at line 340 deletes models without checking admin privileges. This represents a complete failure of access control on destructive operations.

Changes

  • docs/examples/website-to-api/api_server.py

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

Automated security fix by OrbisAI Security

unclecode and others added 2 commits March 30, 2026 09:59
docs: update version references to 0.8.6
Automated security fix generated by Orbis Security AI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants