🇰🇷 한글 설명
Pydantic AI 프레임워크의 Agent.to_web() 및 clai 웹 개발 채팅 서버에서 Host 헤더 검증 미흡으로 인한 DNS Rebinding 취약점이 발견되었습니다. 공격자는 이를 통해 개발자가 방문한 웹사이트에서 로컬 호스트에 실행 중인 에이전트에 접근하여 UI를 읽거나 도구를 실행함으로써 데이터 유출 및 권한 오용을 유발할 수 있습니다.
💡 쉬운 설명
개발자가 악성 사이트에 접속하면, 그 사이트가 마치 내 컴퓨터 내부에서 돌아가는 AI 프로그램인 것처럼 속여서 명령을 내릴 수 있는 문제입니다. 이를 통해 AI가 가진 권한을 이용해 개인 정보를 빼가거나 원치 않는 동작을 수행하게 만들 수 있습니다.
🇺🇸 원문 (English)
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.34.0 until 2.30.0, the Agent.to_web() and clai web development chat server does not validate the Host header, allowing a website visited by a developer to use DNS rebinding to reach a loopback-hosted agent as a same-origin service. The hostile page can read the served UI and submit chat requests that execute agent tools with the local process's privileges and credentials, causing data disclosure or unwanted side effects. Binding to localhost, Origin checks, and CSRF tokens do not prevent the same-origin DNS rebinding path. This issue is fixed in versions 1.107.5 and 2.30.0.
📍 영향받는 시스템
Pydantic AI versions 1.34.0 to 2.30.0
⚔️ 공격 벡터
DNS Rebinding을 이용한 Host 헤더 검증 우회 및 로컬 루프백 서비스 접근
🛡️ 대응 방법
Pydantic AI를 버전 1.107.5 또는 2.30.0 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 1.107.5 미만이거나 2.30.0 미만(1.34.0 이상 기준)이면 취약한 상태입니다.
pip show pydantic-ai | grep Version
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:L
💻 영향받는 소프트웨어
IBM WebSphere Application Server