🇰🇷 한글 설명
Readwise Reader Android 버전의 sanitize-html 설정 오류로 인해 SVG 및 PATH 요소의 모든 속성이 허용됩니다. 이로 인해 'onload'나 'onerror'와 같은 스크립트 실행 가능 속성이 제거되지 않아, 악성 SVG가 포함된 문서를 통해 클라이언트 측 교차 사이트 스크립팅(XSS) 공격이 발생할 수 있습니다.
💡 쉬운 설명
앱이 웹 페이지의 위험한 코드를 걸러내는 과정에서 실수로 특정 그림 파일(SVG)에 숨겨진 악성 코드를 통과시켰습니다. 공격자가 이 파일을 통해 사용자의 앱에서 몰래 나쁜 명령어를 실행할 수 있습니다.
🇺🇸 원문 (English)
Readwise Reader for Android uses a sanitize-html configuration that permits all attributes on SVG and PATH elements due to a wildcard attribute rule. This configuration fails to remove script-capable attributes such as event handlers (e.g., 'onload', 'onerror'). An attacker could supply a document containing malicious SVG content that survives sanitization and executes script wher rendered in the Reader WebView, resulting in client-side cross-site scripting (XSS).
📍 영향받는 시스템
Readwise Reader for Android (sanitize-html 설정이 적용된 버전)
⚔️ 공격 벡터
악성 스크립트가 포함된 SVG 파일을 문서 형태로 제공하여 앱의 WebView에서 실행 유도
🛡️ 대응 방법
sanitize-html 설정을 수정하여 SVG 및 PATH 요소의 와일드카드 속성 규칙을 제거하고, 이벤트 핸들러 속성을 차단하도록 업데이트
🔧 검증 코드
설정 파일 내 sanitize-html 구성에서 SVG/PATH 요소에 대한 와일드카드(*) 속성 허용 규칙이 존재하는지 확인
grep -r "wildcard" . | grep "sanitize-html"
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
💻 영향받는 소프트웨어
Microsoft Edge for Android