🔍 CVE-2023-31135

3.3
CVSS Score
LOW
2023-05-17
2026-10-23 23:10
✅ 완료

🇰🇷 한글 설명

오픈 소스 분산 GraphQL 데이터베이스인 Dgraph의 감사 로그(audit logs)에서 논스(nonce) 충돌로 인한 무차별 대입 공격 취약점이 발견되었습니다. 로그 라인의 길이가 동일할 경우 동일한 논스가 재사용될 수 있어 보안에 취약합니다. Dgraph v23.0.0 미만 버전을 사용하는 모든 시스템이 영향을 받습니다.

💡 쉬운 설명

데이터베이스의 기록을 암호화할 때 사용하는 '일회용 번호'가 중복되어 발생하는 문제입니다. 이로 인해 공격자가 암호화된 기록을 해독하려고 시도할 수 있습니다.

🇺🇸 원문 (English)

Dgraph is an open source distributed GraphQL database. Existing Dgraph audit logs are vulnerable to brute force attacks due to nonce collisions. The first 12 bytes come from a baseIv which is initialized when an audit log is created. The last 4 bytes come from the length of the log line being encrypted. This is problematic because two log lines will often have the same length, so due to these collisions we are reusing the same nonce many times. All audit logs generated by versions of Dgraph <v23.0.0 are affected. Attackers must have access to the system the logs are stored on. Dgraph users should upgrade to v23.0.0. Users unable to upgrade should store existing audit logs in a secure location and for extra security, encrypt using an external tool like `gpg`.

📍 영향받는 시스템

Dgraph v23.0.0 미만 모든 버전

⚔️ 공격 벡터

감사 로그가 저장된 시스템에 접근 권한을 가진 공격자가 논스 충돌을 이용한 무차별 대입 공격 수행

🛡️ 대응 방법

Dgraph를 v23.0.0 이상 버전으로 업그레이드하거나, 업그레이드가 불가능할 경우 로그를 안전한 곳에 보관하고 gpg와 같은 외부 도구로 추가 암호화 수행

🔧 검증 코드

출력된 버전 번호가 v23.0.0 미만이면 취약한 상태입니다.

Shell / Script
dgraph --version 2>/dev/null | grep -E 'v[0-9]+\.[0-9]+\.[0-9]+'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

💻 영향받는 소프트웨어

Spring for GraphQL