| 제목 | SuperAGI up to c3c1982 Missing Authentication for Critical Function (CWE-306) |
|---|
| 설명 | # Technical Details
A Unauthenticated Access to Vector Database Management Endpoints exists in the `get_vector_db_details` and `delete_vector_db` methods in `superagi/controllers/vector_dbs.py` of SuperAGI.
The application fails to authenticate requests for sensitive vector database management endpoints, lacking the `Depends(check_auth)` or `Depends(get_user_organisation)` dependencies.
# Vulnerable Code
File: superagi/controllers/vector_dbs.py
Method: get_vector_db_details, delete_vector_db, update_vector_db
Why: The endpoints do not have authentication dependencies, allowing any unauthenticated attacker to read Vector DB configurations (including API keys), delete Vector DBs and all associated knowledge data, or modify Vector DB indices.
# Reproduction
1. List all Vector DBs: curl -s "http://localhost:3000/api/vector_dbs/get/list"
2. Get Vector DB details: curl -s "http://localhost:3000/api/vector_dbs/db/details/1"
3. Delete a Vector DB: curl -s -X POST "http://localhost:3000/api/vector_dbs/delete/1"
# Impact
- API Key Theft: Vector DB configs contain API keys for Pinecone, Qdrant, or Weaviate services.
- Data Destruction: Deleting a Vector DB cascades to all associated indices and knowledge data.
- Service Disruption: Modifying indices can corrupt the vector search functionality.
|
|---|
| 원천 | ⚠️ https://gist.github.com/YLChen-007/f38b32a9cd0c9722e04a716ca4dbf9d5 |
|---|
| 사용자 | Eric-z (UID 95890) |
|---|
| 제출 | 2026. 03. 27. PM 12:46 (27 날 ago) |
|---|
| 모더레이션 | 2026. 04. 19. AM 07:40 (23 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 358217 [TransformerOptimus SuperAGI 까지 0.0.14 Vector Database Management Endpoint vector_dbs.py 약한 인증] |
|---|
| 포인트들 | 20 |
|---|