xs-leaks
XS-Leaks — cross-site information leaks via timing, frame counting, navigation, error oracles. Side-channel attacks against same-origin authenticated state.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
XS-Leaks — cross-site information leaks via timing, frame counting, navigation, error oracles. Side-channel attacks against same-origin authenticated state.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | xs-leaks |
| description | XS-Leaks — cross-site information leaks via timing, frame counting, navigation, error oracles. Side-channel attacks against same-origin authenticated state. |
| metadata | {"when_to_use":"xs-leak xsleak frame count navigation timing oracle cross-origin","mitre_attack":"T1559","subdomain":"client-side","upstream_ref":"skills/_corpus/payloads/XS-Leak/"} |
XS-Leaks abuse browser primitives that leak information ACROSS origins. Attacker page can observe whether a cross-origin GET returned different content based on victim's authenticated state. Smaller than full cross-origin read (which is blocked), but enough to enumerate identifiers, detect membership, learn search-result presence.
Cross-origin fetch / image load timing varies by server response size. Attacker measures load time → infers content.
const start = performance.now();
const img = new Image();
img.onerror = () => console.log(performance.now() - start);
img.src = 'https://target.com/api/users/me/notifications';
window.frames.length)Some pages embed N iframes when authenticated and 0 when not. Attacker
iframes target page and reads iframe.contentWindow.frames.length.
iframe.contentWindow.name is preserved across navigation. Some pages
set it w/ user-identifying data.
<img src=target.com/api/user/{id}/data> triggers different onerror
behavior based on response code (403 vs 404 vs 200 w/ image content-type).
<link rel=stylesheet href=target.com/page> — different applied styles
leak state via getComputedStyle of attacker page.
Many search endpoints return cached/non-cached headers indicating hits. Attacker measures cache hit vs miss timing for guessed search terms.
for (const guessed_id of guessable_set) {
const url = `https://target.com/api/user/${guessed_id}`;
// measure timing or frame-count differential
}
Full taxonomy + browser-version compatibility matrix: https://xsleaks.dev/
Atlas agents should consult this for current technique viability — browser mitigations evolve fast (COOP, COEP, Cross-Origin-Opener-Policy).
// Frame count
const f = document.createElement('iframe');
f.src = 'https://target.com/dashboard'; // attacker hosts this in own page
document.body.appendChild(f);
f.onload = () => {
console.log('frames:', f.contentWindow.frames.length);
};
// Timing
async function timeFetch(url) {
const t = performance.now();
try { await fetch(url, {mode:'no-cors', credentials:'include'}); } catch {}
return performance.now() - t;
}
XS-Leak PoCs require:
Document the attack page, record video of victim browser visiting it → inferred information displayed.
| Bug | Severity |
|---|---|
| XS-Search enumerating victim's private documents | High 7-8 |
| Frame-count revealing logged-in state | Medium 5-6 |
| Timing oracle inferring victim email / ID | High 7-8 |
| Window.name leaking session info | High 7-8 |
| Cross-origin error-event leaking which users exist | Medium 4-5 |
Cross-Origin-Opener-Policy: same-originCross-Origin-Embedder-Policy: require-corpCross-Origin-Resource-Policy: same-originX-Frame-Options: DENY or frame-ancestors 'none' in CSPVary: Cookie + careful cachingskills/_corpus/payloads/XS-Leak/skills/exploit/web/dom-clobbering/SKILL.mdBenchmark mode marker — engagement objective is flag capture. Generic engagement rules apply unchanged.
Exploit Active Directory Certificate Services ESC1 — vulnerable template allows arbitrary SAN, enabling user impersonation up to domain admin.
BloodHound ingestion + canonical Cypher queries for AD attack-path enumeration. Run after collector dumps zip; promotes findings into the knowledge graph.
NetExec (CrackMapExec successor) — unified SMB/LDAP/MSSQL/WinRM/RDP/SSH/FTP/VNC protocol auth + post-auth modules. 200+ modules incl. BloodHound auto-ingest, ESC1-15 scanning, PrintNightmare, LDAP relay.
Active Directory attack lane — BloodHound ingestion, Kerberoasting, ADCS ESC scanning, DCSync, LAPS extraction.
Red team engagement lifecycle management — initiation, phase transitions, go/no-go gates, deconfliction, emergency procedures, completion.