Parent message-listener fingerprinting
Fire a wide range of postMessage payloads at the parent and observe responses or side effects.
按 sandbox 策略的行为
| 策略 | 预期结果 |
|---|---|
| 无 sandbox | 通过 |
sandbox="allow-scripts" | 通过 |
sandbox="" (最严) | 阻止 |
Embed 代码
此代码使用专用嵌入页面。粘贴到您的服务后检查渲染或拦截行为。
<iframe src="https://xss-playground.com/embed/parent-message-listener-probe?lang=zh" title="XSS Playground - Parent message-listener fingerprinting" width="600" height="420" loading="lazy" referrerpolicy="strict-origin-when-cross-origin"></iframe>
실행
target origin
// 로그 없음
부모로부터 받은 응답
// 응답 없음
해설
- 부모 페이지에 어떤 message 리스너가 등록돼 있는지 검은상자 상태에서 fingerprinting 하는 페이지입니다. 알려진 라이브러리(iframe resizer, 유튜브 API, GTM 등) 의 페이로드 포맷을 흉내내서 응답 / 사이드 이펙트(DOM 변화, 새 message 등) 를 관찰합니다.
- 진짜 위험은 서비스가 자체적으로 등록한 커스텀 메시지 핸들러가 있을 때 입니다. 예:
{ type: "AUTH_GRANT", token: ... }같은 메시지로 인증 상태를 갈아끼우는 핸들러가 있다면 즉시 권한 우회. - 테스트 단계에서는 본인 서비스의 dev/staging 환경에 임베드해서 부모 message 리스너 / DOM 변화 / 콘솔 에러를 같이 관찰하세요.