xs-leaks
What it does
This guide covers side-channel leaks that let one website infer information about a user on another site. It is for web teams who want to check whether their pages reveal login state or search results to outside sites.
When to use it
- ✓When a site shows different content to logged-in visitors and you want to check whether outside sites can detect it.
- ✓When search results or account pages could reveal membership through timing or frame counts.
- ✓When an authorized review wants to test browser-level isolation for sensitive pages.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/xs-leaks/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can another website tell whether one of our users is logged in or has certain data? Please check our account pages.”
5 new skills a week. 1 minute to read.
How it works
The agent checks how the pages respond to cross-site requests, including timing, frame behavior and error responses, and reports which signals differ by login state.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
XS-Leaks (Cross-Site Leaks)
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.
1. Categories
1.1 Timing oracles
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';
1.2 Frame counting (window.frames.length)
Some pages embed N iframes when authenticated and 0 when not. Attacker
iframes target page and reads iframe.contentWindow.frames.length.
1.3 Window name / postMessage leak
iframe.contentWindow.name is preserved across navigation. Some pages
set it w/ user-identifying data.
1.4 Error-event oracle
<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).
1.5 CSS injection style oracle
<link rel=stylesheet href=target.com/page> — different applied styles
leak state via getComputedStyle of attacker page.
1.6 Search result presence
Many search endpoints return cached/non-cached headers indicating hits. Attacker measures cache hit vs miss timing for guessed search terms.
1.7 ID guessability (XS-Search)
for (const guessed_id of guessable_set) {
const url = `https://target.com/api/user/${guessed_id}`;
// measure timing or frame-count differential
}
2. xsleaks.dev — canonical reference
Full taxonomy + browser-version compatibility matrix: https://xsleaks.dev/
Decepticon agents should consult this for current technique viability — browser mitigations evolve fast (COOP, COEP, Cross-Origin-Opener-Policy).
3. Detection
// 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;
}
4. PoC framing
XS-Leak PoCs require:
- Attacker host (your own controlled domain)
- Victim browser with authenticated session to target
- Visual demonstration of leaked info (e.g. infer victim's email, search history, friend list)
Document the attack page, record video of victim browser visiting it → inferred information displayed.
5. Severity
| 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 |
6. Defender
- Set
Cross-Origin-Opener-Policy: same-origin - Set
Cross-Origin-Embedder-Policy: require-corp - Set
Cross-Origin-Resource-Policy: same-origin - Disable iframe embedding for sensitive pages:
X-Frame-Options: DENYorframe-ancestors 'none'in CSP - Constant-time responses for sensitive endpoints (esp. when state-dependent)
Vary: Cookie+ careful caching
Cross-references
- Upstream:
skills/_corpus/payloads/XS-Leak/ - xsleaks.dev — primary reference
- DOM clobbering overlap (different class, same client-side mindset):
skills/exploit/web/dom-clobbering/SKILL.md
FAQ
What is a cross-site leak?
It is when a site learns something about a user on another site through indirect browser behavior.
Does it read the content directly?
No. The guide says these leaks infer information rather than reading the other site's content.
How can teams reduce it?
By using the browser's cross-site protection headers and making responses look the same for all visitors.
Details
Original description by the author
XS-Leaks — cross-site information leaks via timing, frame counting, navigation, error oracles. Side-channel attacks against same-origin authenticated state.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14087
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.