Event-handler attribute injectionEMBEDDED

Check whether on* attributes such as img onerror or details ontoggle survive filtering and execute.

HTML payload 测试

该场景测试用户输入在 HTML/DOM 中的渲染方式,而非 iframe sandbox 行为。

  • onerror, onclick, onload 등 on* 속성이 제거되는지 확인
  • 태그 allowlist 는 있어도 속성 allowlist 가 느슨하지 않은지 확인
  • CSP 가 inline event handler 를 차단하는지 확인

페이로드

복사할 payload

이미지 로드 실패 이벤트를 이용하는 대표적인 HTML attribute XSS.

미리보기

미리보기는 학습용으로 의도적으로 unsafe 렌더링을 수행합니다. 실제 서비스에서는 이 payload 가 텍스트로 이스케이프되거나 제거되어야 합니다.

로그

// 로그 없음

해설