🔍 CVE-2024-56363

7.8
CVSS Score
HIGH
2024-12-23
2026-04-15 00:35
✅ 완료

🇰🇷 한글 설명

APTRS 1.0 버전의 CKEditor 템플릿 필드에서 사용자 입력이 제대로 검증되지 않아 Jinja2 템플릿 주입 공격이 가능한 취약점입니다. 공격자는 {{ config }}, {{ self.class.mro() }} 등의 악의적인 Jinja2 구문을 주입하여 서버에서 임의의 파이썬 코드를 실행할 수 있습니다.

💡 쉬운 설명

보안 도구인 APTRS에서 사용자 입력이 안전하지 않게 처리되어 공격자가 원하는 명령을 실행할 수 있는 문제입니다. 특수한 템플릿 문법을 입력하면 서버에서 악의적인 코드가 실행됩니다.

🇺🇸 원문 (English)

APTRS (Automated Penetration Testing Reporting System) is a Python and Django-based automated reporting tool designed for penetration testers and security organizations. In 1.0, there is a vulnerability in the web application's handling of user-supplied input that is incorporated into a Jinja2 template. Specifically, when user input is improperly sanitized or validated, an attacker can inject Jinja2 syntax into the template, causing the server to execute arbitrary code. For example, an attacker might be able to inject expressions like {{ config }}, {{ self.class.mro[1].subclasses() }}, or more dangerous payloads that trigger execution of arbitrary Python code. The vulnerability can be reproduced by submitting crafted input to all the template fields handled by ckeditor, that are passed directly to a Jinja2 template. If the input is rendered without sufficient sanitization, it results in the execution of malicious Jinja2 code on the server.

📍 영향받는 시스템

APTRS 1.0 (Python/Django 기반 자동화 침투 테스트 보고 도구)

⚔️ 공격 벡터

CKEditor를 통한 템플릿 필드에 Jinja2 템플릿 주입 페이로드 전송

🛡️ 대응 방법

APTRS를 최신 버전으로 업그레이드하고 모든 사용자 입력에 대해 엄격한 검증 및 이스케이프 처리 적용

🔧 검증 코드

APTRS 버전이 1.0이면 취약하고 1.0 이상의 패치 버전이나 최신 버전으로 업그레이드 필요

Shell / Script
pip show aptrs 2>/dev/null | grep -E '^Version' || echo '미설치'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python