🇰🇷 한글 설명
Crawl4AI 0.9.0 이상 0.9.5 미만의 Docker API 서버에는 JavaScript 주입 취약점이 존재합니다. 인증된 API 클라이언트가 허용 목록에 있는 css_selector 및 wait_for 필드를 통해 크롤링 페이지에서 임의의 JavaScript를 실행할 수 있습니다. 이를 통해 페이지 상태와 반환되는 크롤링 결과가 변경될 수 있습니다.
💡 쉬운 설명
인증된 사용자가 웹 크롤링 서비스의 입력값을 조작해 페이지에서 원하지 않는 코드를 실행할 수 있습니다. 그 결과 수집되는 웹 페이지 내용이 변조될 수 있습니다.
🇺🇸 원문 (English)
Crawl4AI from 0.9.0 before 0.9.5 contains a JavaScript injection vulnerability in the Docker API server that allows authenticated API clients to run arbitrary JavaScript in the crawl page via allowlisted css_selector and wait_for fields. Attackers can inject quotes into css_selector or supply js: conditions in wait_for, bypassing the js_code block to alter page state and returned crawl content.
📍 영향받는 시스템
Crawl4AI Docker API 서버 0.9.0 이상 0.9.5 미만
⚔️ 공격 벡터
인증된 API 클라이언트가 css_selector에 따옴표를 삽입하거나 wait_for에 js: 조건을 넣어 js_code 차단을 우회
🛡️ 대응 방법
Crawl4AI를 0.9.5 이상으로 업그레이드
🔧 검증 코드
출력된 Version 값이 0.9.5 미만이면 취약하고, 0.9.5 이상이면 패치된 버전입니다.
pip show crawl4ai 2>/dev/null | grep -i version