🇰🇷 한글 설명
OPNsense 26.1.6 이전 버전의 LDAP 인증 커넥터는 로그인 사용자명을 ldap_escape() 처리 없이 LDAP 검색 필터에 직접 삽입합니다. 인증되지 않은 공격자가 WebGUI 로그인 페이지의 사용자명 필드에 LDAP 필터 메타문자를 주입하여 유효한 LDAP 사용자명을 열거하거나, 그룹 제한이 설정된 환경에서 그룹 멤버십 제한을 우회할 수 있습니다. 26.1.6에서 수정되었습니다.
💡 쉬운 설명
OPNsense 방화벽의 로그인 화면에 특수한 문자를 입력하면 LDAP 디렉터리의 사용자 이름을 알아낼 수 있습니다. 특정 그룹으로 로그인을 제한해 둔 경우에도 이 방법으로 제한을 우회해 비밀번호를 아는 다른 사용자로 로그인될 수 있습니다.
🇺🇸 원문 (English)
OPNsense is a FreeBSD based firewall and routing platform. Prior to 26.1.6, OPNsense's LDAP authentication connector passes the login username directly into an LDAP search filter without calling ldap_escape(). An unauthenticated attacker can inject LDAP filter metacharacters into the username field of the WebGUI login page to enumerate valid LDAP usernames in the configured directory. When the LDAP server configuration includes an Extended Query to restrict login to members of a specific group, the same injection can be used to bypass that group membership restriction and authenticate as any LDAP user whose password is known, regardless of group membership. This vulnerability is fixed in 26.1.6.
📍 영향받는 시스템
OPNsense 26.1.6 미만 버전 (LDAP 인증 연동 사용 환경)
⚔️ 공격 벡터
WebGUI 로그인 페이지의 사용자명 필드에 LDAP 필터 메타문자(예: *, ), (, \)를 주입하여 사용자 열거 및 그룹 제한 우회
🛡️ 대응 방법
OPNsense를 26.1.6 이상으로 업데이트하고, 업데이트 전까지 LDAP 인증 사용을 중단하거나 WebGUI 접근을 신뢰된 네트워크로 제한
🔧 검증 코드
출력된 버전이 26.1.6 미만이면 취약하므로 업데이트가 필요하고, 26.1.6 이상이면 패치가 적용된 것입니다.
opnsense-version 2>/dev/null || (grep -m1 -i 'product_version' /usr/local/opnsense/version/core 2>/dev/null)