🔍 CVE-2021-21422

8.1
CVSS Score
HIGH
2021-06-21
2026-06-17 03:35
✅ 완료

🇰🇷 한글 설명

mongo-express는 Node.js 기반의 웹 MongoDB 관리 인터페이스로, 특정 조건에서 데이터 셀의 내용이 매우 클 경우 이스케이프 처리되지 않은 문서가 그대로 노출되는 취약점이 있습니다. 또한 미디어로 식별된 데이터 셀이 적절한 검증 없이 렌더링되어, 공격자가 악성 자바스크립트를 삽입하여 데이터를 탈취하거나 데이터베이스를 삭제할 수 있습니다.

💡 쉬운 설명

관리자 화면에서 데이터베이스 내용을 볼 때, 공격자가 몰래 숨겨놓은 악성 코드가 실행될 수 있는 보안 약점입니다. 이를 통해 해커가 중요한 정보를 빼가거나 데이터베이스를 통째로 삭제할 위험이 있습니다.

🇺🇸 원문 (English)

mongo-express is a web-based MongoDB admin interface, written with Node.js and express. 1: As mentioned in this issue: https://github.com/mongo-express/mongo-express/issues/577, when the content of a cell grows larger than supported size, clicking on a row will show full document unescaped, however this needs admin interaction on cell. 2: Data cells identified as media will be rendered as media, without being sanitized. Example of different renders: image, audio, video, etc. As an example of type 1 attack, an unauthorized user who only can send a large amount of data in a field of a document may use a payload with embedded javascript. This could send an export of a collection to the attacker without even an admin knowing. Other types of attacks such as dropping a database\collection are possible.

📍 영향받는 시스템

mongo-express (특정 버전 미만)

⚔️ 공격 벡터

대용량 데이터 셀 클릭 또는 미디어 타입 데이터 삽입을 통한 XSS 및 악성 스크립트 실행

🛡️ 대응 방법

mongo-express를 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 mongo-express의 버전을 확인하여 취약점이 해결된 최신 버전인지 대조합니다.

Shell / Script
npm list mongo-express

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

💻 영향받는 소프트웨어

Node.js