Iframe sandbox and embedding-isolation assessment — missing or weak sandbox attributes on embedded/third-party content, overly-permissive allow lists (allow-scripts + allow-same-origin together defeats the sandbox), allow/allowfullscreen/allowpaymentrequest misuse, and srcdoc injection. Tier 1. Use when the app embeds untrusted or third-party content in iframes.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Iframe Sandbox?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-iframe-sandbox)
---
name: iframe-sandbox
description: Iframe sandbox and embedding-isolation assessment — missing or weak sandbox attributes on embedded/third-party content, overly-permissive allow lists (allow-scripts + allow-same-origin together defeats the sandbox), allow/allowfullscreen/allowpaymentrequest misuse, and srcdoc injection. Tier 1. Use when the app embeds untrusted or third-party content in iframes.
---
# Iframe Sandbox / Embedding Isolation
Sandboxing confines embedded content; weak attributes let embedded (possibly attacker-influenced) content escape isolation.
## Trigger phrases
`iframe sandbox, allow-scripts allow-same-origin, srcdoc injection, embedding isolation, sandbox bypass`
## Checks
- **Missing `sandbox`** on iframes loading untrusted/third-party/user content → embedded content runs with full privileges.
- **`allow-scripts` + `allow-same-origin` together** → the sandbox is effectively void (framed content can reach out and even remove its own sandbox). Flag this combination.
- **Permissive `allow` / feature policy** on iframes (camera, microphone, payment, fullscreen) granted to untrusted frames.
- **`srcdoc` injection:** user input into an iframe `srcdoc` → HTML/JS injection within the frame (→ `dom-xss`/`stored-xss`).
- Frames without `sandbox` participating in postMessage flows (→ `postmessage-abuse`).
## Escalation
Sandbox escape → XSS/data access from embedded content; feature-policy abuse → privacy/permission abuse.
## Verification (background, before reporting)
Re-check the header/response across multiple endpoints and a clean request to avoid false positives; confirm exploitability (not just absence) before rating. Report true positives only. Backend/Burp: see `zazy-orchestrator`.
## Evidence
The iframe tag + attributes, the weak/missing sandbox, and the resulting escape/injection.