🇰🇷 한글 설명
mem0 v1.0.0 서버의 DELETE /memories 엔드포인트에 인증 및 인가 제어가 부재하여, 인증되지 않은 공격자가 DROP TABLE SQL문을 실행하여 전체 메모리 데이터베이스 테이블을 삭제할 수 있습니다. 이는 모든 사용자에게 치명적인 데이터 손실 및 서비스 거부를 초래합니다.
💡 쉬운 설명
mem0 서버에 비밀번호 없이 접근할 수 있어서, 누구나 데이터를 저장하는 전체 테이블을 삭제할 수 있습니다. 이로 인해 모든 저장된 정보가 사라지고 서비스가 완전히 먹통이 됩니다.
🇺🇸 원문 (English)
The mem0 v1.0.0 server lacks authentication and authorization controls for its memory reset functionality accessible via the DELETE /memories endpoint. An unauthenticated attacker can send a DELETE request that triggers a reset operation, leading to the execution of a DROP TABLE SQL statement. This results in the deletion of the entire memory database table, causing catastrophic data loss and a complete denial of service for all users of the service.
📍 영향받는 시스템
mem0 v1.0.0 및 패치되지 않은 이전 버전
⚔️ 공격 벡터
DELETE /memories 엔드포인트에 대한 인증 없는 DELETE HTTP 요청으로 DROP TABLE 실행
🛡️ 대응 방법
즉시 mem0을 패치된 버전으로 업그레이드하고 DELETE /memories 엔드포인트에 강력한 인증/인가 메커니즘 구현
🔧 검증 코드
응답에 'success', 'dropped', 또는 DELETE 작업 완료 메시지가 있으면 취약점 확인; 인증 오류(401/403)가 반환되면 패치됨
curl -X DELETE http://target:port/memories 2>/dev/null | grep -i 'success\|error\|dropped'