🇰🇷 한글 설명
phpLDAPadmin 1.2.0 이상 1.2.6.7 이하 버전에서 LDAP 디렉토리를 CSV 파일로 내보낼 때 특수 문자가 처리되지 않아 CSV Formula Injection이 발생합니다. 스프레드시트 프로그램에서 파일을 열 때 명령어로 실행될 수 있습니다.
💡 쉬운 설명
관리자가 LDAP 데이터를 CSV로 내보낼 때 악의적인 명령어 같은 데이터가 그대로 저장됩니다. Excel 같은 프로그램에서 이 파일을 열면 포함된 명령어가 실행될 수 있습니다.
🇺🇸 원문 (English)
phpLDAPadmin since at least version 1.2.0 through the latest version 1.2.6.7 allows users to export elements from the LDAP directory into a Comma-Separated Value (CSV) file, but it does not neutralize special elements that could be interpreted as a command when the file is opened by a spreadsheet product. Thus, this could lead to CSV Formula Injection. NOTE: This vulnerability will not be addressed, the maintainer's position is that it is not the intention of phpLDAPadmin to control what data Administrators can put in their LDAP database, nor filter it on export.
📍 영향받는 시스템
phpLDAPadmin 1.2.0 ~ 1.2.6.7
⚔️ 공격 벡터
LDAP 데이터에 =, +, -, @ 등으로 시작하는 수식 형태의 내용을 삽입한 후 CSV로 내보내기
🛡️ 대응 방법
최신 버전으로 업그레이드하거나 CSV 내보내기 기능 사용 중단, 또는 내보낸 파일을 스프레드시트에서 열기 전에 검증
🔧 검증 코드
설치된 phpLDAPadmin의 버전을 확인하여 1.2.0 이상 1.2.6.7 이하인지 검증
dpkg -l phpldapadmin 2>/dev/null | tail -1 || rpm -qa phpldapadmin 2>/dev/null