🇰🇷 한글 설명
Erlang/OTP의 inets httpd에서 대소문자 구분 처리 미흡으로 인해 발생하는 취약점입니다. 대소문자를 구분하지 않는 파일 시스템을 사용하는 환경에서, 인증이 필요한 디렉토리 내의 파일에 대소문자를 다르게 요청함으로써 인증 없이 파일을 읽을 수 있습니다.
💡 쉬운 설명
보안이 걸려 있는 폴더의 파일 이름을 대소문자만 살짝 바꿔서 요청하면, 보안 검사를 통과하여 파일이 그대로 노출되는 문제입니다. 파일 시스템이 대소문자를 구분하지 않는 경우에만 발생합니다.
🇺🇸 원문 (English)
Improper Handling of Case Sensitivity vulnerability in Erlang/OTP inets httpd allows a remote unauthenticated attacker to read files inside a mod_auth protected directory by requesting them with different casing, on deployments whose filesystem is case-insensitive.
mod_auth:secret_path/3 decides whether a resolved filesystem path lies inside a protected directory block by running the configured directory path through re:run/3 without the caseless option. A request for /secret/file against a directory configured as /Secret therefore does not match, so the request is treated as unprotected and no authentication challenge is issued, while the filesystem resolves the differently cased path to the same file and mod_get serves it. Deployments on case-sensitive filesystems are unaffected, because there the filesystem itself rejects the mismatched casing.
This issue affects OTP from OTP 17.0 before OTP 27.3.4.17, from OTP 28.0 before OTP 28.5.0.6, and from OTP 29.0 before OTP 29.0.6, corresponding to inets from 5.10 before 9.3.2.7, from 9.4 before 9.6.2.3, and from 9.7 before 9.7.2. Whether OTP before OTP 17.0, corresponding to inets before 5.10, is affected is unknown.
📍 영향받는 시스템
OTP 17.0 < 27.3.4.17, 28.0 < 28.5.0.6, 29.0 < 29.0.6 (inets 관련 버전 포함)
⚔️ 공격 벡터
인증이 설정된 경로와 대소문자가 다른 경로로 HTTP 요청을 보내 파일에 접근
🛡️ 대응 방법
Erlang/OTP를 최신 보안 패치 버전(OTP 27.3.4.17, 28.5.0.6, 29.0.6 이상)으로 업데이트
🔧 검증 코드
출력된 OTP 버전이 취약한 버전 범위에 포함되는지 확인
erl -eval 'io:format("~s~n", [erlang:system_info(otp_release)]), halt().' -noshell