🇰🇷 한글 설명
coze-studio 0.2.4 이하에서 backend/domain/plugin/encrypt/aes.go 파일의 암호화 함수가 하드코딩된 암호화 키를 사용합니다. AuthSecretKey 등의 인자 조작으로 인해 취약점이 발생하며, 원격에서 공격이 가능합니다.
💡 쉬운 설명
coze-studio의 암호화가 고정된 비밀키를 사용하기 때문에, 그 키를 아는 사람은 누구든 암호화된 데이터를 열 수 있습니다. 0.2.4 이하 버전을 사용 중이면 반드시 업데이트해야 합니다.
🇺🇸 원문 (English)
A vulnerability was identified in coze-studio up to 0.2.4. The impacted element is an unknown function of the file backend/domain/plugin/encrypt/aes.go. The manipulation of the argument AuthSecretKey/StateSecretKey/OAuthTokenSecretKey leads to use of hard-coded cryptographic key
. It is possible to initiate the attack remotely. The attack is considered to have high complexity. The exploitability is regarded as difficult. To fix this issue, it is recommended to deploy a patch. The vendor replied to the GitHub issue (translated from simplified Chinese): "For scenarios requiring encryption, we will implement user-defined key management through configuration and optimize the use of encryption tools, such as random salt."
📍 영향받는 시스템
coze-studio up to 0.2.4
⚔️ 공격 벡터
원격 공격, AuthSecretKey/StateSecretKey/OAuthTokenSecretKey 파라미터 조작을 통한 암호화 키 우회
🛡️ 대응 방법
최신 패치로 업그레이드 및 사용자 정의 키 관리 시스템 구현
🔧 검증 코드
버전이 0.2.4 이하이면 취약함, 0.2.5 이상이면 패치됨
npm ls coze-studio 2>/dev/null | grep coze-studio | grep -oE '[0-9]+\.[0-9]+\.[0-9]+'