🇰🇷 한글 설명
langgenius dify 1.13.3 이하 버전의 api/core/tools/utils/parser.py 파일 내 parse_openai_plugin_json_to_tool_bundle 함수에서 url 인자 조작을 통해 서버 측 요청 위조(SSRF)가 발생할 수 있습니다. 원격 공격이 가능하며 공개된 익스플로잇이 존재합니다. 벤더에 사전 통보했으나 응답이 없었습니다.
💡 쉬운 설명
Dify라는 AI 앱 개발 플랫폼에서 공격자가 서버가 대신 외부 요청을 보내도록 조작할 수 있는 취약점입니다. 내부망 자원이 노출되거나 서버 정보가 유출될 위험이 있습니다.
🇺🇸 원문 (English)
A flaw has been found in langgenius dify up to 1.13.3. This issue affects the function parse_openai_plugin_json_to_tool_bundle of the file api/core/tools/utils/parser.py of the component ApiBasedToolSchemaParser. Executing a manipulation of the argument url can lead to server-side request forgery. The attack can be launched remotely. The exploit has been published and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
📍 영향받는 시스템
langgenius dify 1.13.3 이하 버전
⚔️ 공격 벡터
원격에서 도구 스키마(OpenAI 플러그인 JSON)의 url 인자를 조작해 서버가 임의의 내부/외부 주소로 요청하도록 유도
🛡️ 대응 방법
dify를 패치된 최신 버전으로 업그레이드하고, url 인자에 대한 내부 IP 및 허용되지 않은 도메인 요청을 차단하는 입력 검증을 적용
🔧 검증 코드
출력된 버전이 1.13.3 이하이면 취약하며, grep 결과가 나오면 해당 함수가 존재하므로 패치 적용 여부를 확인해야 합니다.
pip show dify 2>/dev/null | grep -i version || grep -rn 'parse_openai_plugin_json_to_tool_bundle' /opt/dify/api/core/tools/utils/parser.py 2>/dev/null