Skip to content

fix: administrative api endpoints /sdapi/v1/loras an... in lora_scrip...#17352

Open
orbisai0security wants to merge 1 commit intoAUTOMATIC1111:masterfrom
orbisai0security:fix-fix-v007-lora-api-auth
Open

fix: administrative api endpoints /sdapi/v1/loras an... in lora_scrip...#17352
orbisai0security wants to merge 1 commit intoAUTOMATIC1111:masterfrom
orbisai0security:fix-fix-v007-lora-api-auth

Conversation

@orbisai0security
Copy link
Copy Markdown

Summary

Fix critical severity security issue in extensions-builtin/Lora/scripts/lora_script.py.

Vulnerability

Field Value
ID V-007
Severity CRITICAL
Scanner multi_agent_ai
Rule V-007
File extensions-builtin/Lora/scripts/lora_script.py:63

Description: Administrative API endpoints /sdapi/v1/loras and /sdapi/v1/refresh-loras lack authorization validation beyond basic authentication. Any authenticated user, regardless of privilege level, can access model listing and trigger expensive model refresh operations. This violates the principle of least privilege and enables horizontal privilege escalation where low-privilege users access administrative functions.

Changes

  • extensions-builtin/Lora/scripts/lora_script.py

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • Code review passed

Automated security fix by OrbisAI Security

Administrative API endpoints /sdapi/v1/loras and /sdapi/v1/refresh-loras lack authorization validation beyond basic authentication
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.

1 participant