🔍 CVE-2024-21519

6.6
CVSS Score
MEDIUM
2024-06-22
2026-06-17 07:09
✅ 완료

🇰🇷 한글 설명

OpenCart 4.0.0.0 버전의 데이터베이스 복구 기능에서 임의 파일 생성 취약점이 발견되었습니다. 관리자 권한을 가진 공격자가 데이터베이스에 PHP 코드를 주입하여 /system/storage/backup 디렉토리에 원하는 이름과 확장자를 가진 백업 파일을 생성할 수 있습니다.

💡 쉬운 설명

관리자 권한을 가진 사람이 시스템에 몰래 악성 파일을 만들 수 있는 보안 약점입니다. 다만, 보안 설정에 따라 생성된 파일이 웹사이트를 통해 직접 실행되지 않을 수도 있습니다.

🇺🇸 원문 (English)

This affects versions of the package opencart/opencart from 4.0.0.0. An Arbitrary File Creation issue was identified via the database restoration functionality. By injecting PHP code into the database, an attacker with admin privileges can create a backup file with an arbitrary filename (including the extension), within /system/storage/backup. **Note:** It is less likely for the created file to be available within the web root, as part of the security recommendations for the application suggest moving the storage path outside of the web root.

📍 영향받는 시스템

opencart/opencart 4.0.0.0 버전

⚔️ 공격 벡터

데이터베이스 복구 기능을 통한 PHP 코드 주입 및 임의 파일 생성

🛡️ 대응 방법

OpenCart 최신 보안 패치 적용 및 storage 경로를 웹 루트 외부로 이동

🔧 검증 코드

출력된 버전 정보가 4.0.0.0인지 확인하여 취약 여부를 판단합니다.

Shell / Script
composer show opencart/opencart | grep 'versions'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Spring Data REST