🇰🇷 한글 설명
wolfSSL의 MatchDomainName() 함수에서 사용자 입력값이 NULL로 종료되지 않았음에도 불구하고 NULL 종료 문자열로 처리되는 취약점이 발견되었습니다. 이로 인해 X509_check_host() 함수가 입력 배열의 경계를 넘어 메모리를 읽는 버퍼 오버리드 현상이 발생할 수 있습니다.
💡 쉬운 설명
프로그램이 데이터의 끝을 제대로 확인하지 못해 정해진 범위를 넘어 메모리를 읽어버리는 문제입니다. 이로 인해 프로그램이 강제 종료되거나 민감한 정보가 유출될 위험이 있습니다.
🇺🇸 원문 (English)
In function MatchDomainName(), input param str is treated as a NULL terminated string despite being user provided and unchecked. Specifically, the function X509_check_host() takes in a pointer and length to check against, with no requirements that it be NULL terminated. If a caller was attempting to do a name check on a non-NULL terminated buffer, the code would read beyond the bounds of the input array until it found a NULL terminator.This issue affects wolfSSL: through 5.7.0.
📍 영향받는 시스템
wolfSSL 5.7.0 및 그 이전 버전
⚔️ 공격 벡터
NULL 종료 문자가 없는 조작된 도메인 이름을 입력하여 메모리 경계를 넘어서는 읽기 시도
🛡️ 대응 방법
wolfSSL을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
설치된 wolfSSL의 버전을 확인하여 5.7.0 이하인지 확인하십시오.
wolfssl_version_check_command_placeholder_or_pkg_check