🇰🇷 한글 설명
NextGEN Gallery 4.2.1 미만 버전에서 REST API 엔드포인트의 'orderby' 파라미터를 통한 인증된 SQL 인젝션 취약점이 발견되었습니다. 데이터 매퍼 계층의 '_clean_column()' 함수가 화이트리스트 방식 대신 블랙리스트 방식을 사용하여 부적절한 검증을 수행하기 때문에 발생합니다.
💡 쉬운 설명
로그인 권한이 있는 사용자가 데이터베이스 명령어를 조작하여 정보를 빼낼 수 있는 보안 약점입니다. 특정 입력값에 대한 검사 방식이 허술하여 발생하는 문제입니다.
🇺🇸 원문 (English)
NextGEN Gallery version prior to 4.2.1 are vulnerable to authenticated SQL injection via the 'orderby' parameter on the REST API endpoints '/imagely/v1/galleries' and '/imagely/v1/albums'.
The root cause is an insufficient sanitization function ('_clean_column()') in the data mapper layer that uses a character blacklist instead of a whitelist approach. This allows an authenticated attacker with the 'NextGEN Gallery overview' capability (assigned to the Administrator role by default) to inject arbitrary SQL into the 'ORDER BY' clause.
📍 영향받는 시스템
NextGEN Gallery version prior to 4.2.1
⚔️ 공격 벡터
인증된 공격자가 REST API의 'orderby' 파라미터에 악의적인 SQL 구문을 삽입하여 공격
🛡️ 대응 방법
NextGEN Gallery를 최신 버전(4.2.1 이상)으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 정보가 4.2.1 미만인지 확인하여 취약 여부를 판단합니다.
curl -s http://<target_ip>/wp-content/plugins/nextgen-gallery/readme.txt | grep -i 'version'