dify/api/controllers/service_api/dataset
QuantumGhost 874406d934
security(api): fix privilege escalation vulnerability in model config and chat message APIs (#25518)
The `ChatMessageApi` (`POST /console/api/apps/{app_id}/chat-messages`) and 
`ModelConfigResource` (`POST /console/api/apps/{app_id}/model-config`) 
endpoints do not properly validate user permissions, allowing users without `editor` 
permission to access restricted functionality.

This PR addresses this issue by adding proper permission check.
2025-09-11 14:53:35 +08:00
..
__init__.py Initial commit 2023-05-15 08:51:32 +08:00
dataset.py security(api): fix privilege escalation vulnerability in model config and chat message APIs (#25518) 2025-09-11 14:53:35 +08:00
document.py Fix basedpyright type errors (#25435) 2025-09-10 01:54:26 +08:00
error.py Restructure the File errors in controller (#23801) 2025-08-13 17:06:07 +08:00
hit_testing.py feat: API docs for service api (#24425) 2025-08-25 09:26:54 +08:00
metadata.py Fix flask response: 200 -> {}, 200 (#25404) 2025-09-09 15:06:18 +08:00
segment.py fix: child chunk API 404 due to UUID type comparison (#25234) 2025-09-05 14:00:28 +08:00
upload_file.py feat: API docs for service api (#24425) 2025-08-25 09:26:54 +08:00