🇰🇷 한글 설명
Lego (Let's Encrypt 클라이언트, Go로 작성)의 4.25.1 이하 버전에서 ACME 프로토콜 통신 시 HTTPS를 강제하지 않습니다. 사용자가 HTTP URL을 설정하거나 CA가 잘못된 엔드포인트를 반환하면 HTTP로 통신되어 계정 정보와 요청 식별자가 네트워크 공격자에게 노출됩니다.
💡 쉬운 설명
SSL 인증서를 관리하는 Lego 프로그램이 안전한 HTTPS 대신 암호화되지 않은 HTTP로 통신할 수 있습니다. 해커가 네트워크를 감청하여 인증서 관련 정보를 훔칠 수 있습니다.
🇺🇸 원문 (English)
Let's Encrypt client and ACME library written in Go (Lego). In versions 4.25.1 and below, the github.com/go-acme/lego/v4/acme/api package (thus the lego library and the lego cli as well) don't enforce HTTPS when talking to CAs as an ACME client. Unlike the http-01 challenge which solves an ACME challenge over unencrypted HTTP, the ACME protocol requires HTTPS when a client communicates with the CA to performs ACME functions. However, the library fails to enforce HTTPS both in the original discover URL (configured by the library user) and in the subsequent addresses returned by the CAs in the directory and order objects. If users input HTTP URLs or CAs misconfigure endpoints, protocol operations occur over HTTP instead of HTTPS. This compromises privacy by exposing request/response details like account and request identifiers to network attackers. This was fixed in version 4.25.2.
📍 영향받는 시스템
github.com/go-acme/lego/v4 버전 4.25.1 이하
⚔️ 공격 벡터
네트워크 공격자가 HTTP 통신을 가로채서 ACME 프로토콜 요청/응답의 계정 식별자와 요청 정보 탈취
🛡️ 대응 방법
lego를 버전 4.25.2 이상으로 업그레이드
🔧 검증 코드
go.mod에서 lego 버전을 확인하여 v4.25.2 이상이면 패치됨, 4.25.1 이하면 취약함
grep -r 'github.com/go-acme/lego' go.mod 2>/dev/null | grep -oE 'v4\.[0-9]+\.[0-9]+'