xs-leaks
하는 일
이 가이드는 한 웹사이트가 다른 사이트에서 사용자에 대한 정보를 추론하게 만드는 사이드 채널 누출을 다룹니다. 로그인 상태나 검색 결과가 외부 사이트에 드러나는지 확인하려는 웹 팀을 위한 것입니다.
사용하는 경우
- ✓로그인한 방문자에게 다른 내용을 보여 주고, 외부 사이트가 이를 알아챌 수 있는지 확인하고 싶을 때.
- ✓검색 결과나 계정 페이지가 타이밍이나 프레임 수로 회원 여부를 드러낼 수 있는 경우.
- ✓허가된 검토에서 민감한 페이지의 브라우저 수준 격리를 테스트하려는 경우.
스킬 링크
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/xs-leaks/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“다른 웹사이트가 우리 사용자의 로그인 여부나 특정 데이터를 알아낼 수 있는지 우리 계정 페이지를 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 교차 사이트 요청에 페이지가 어떻게 응답하는지 타이밍, 프레임 동작, 오류 응답을 확인하고, 로그인 상태에 따라 어떤 신호가 달라지는지 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
크로스 사이트 누출이란 무엇인가요?
브라우저의 간접적인 동작을 통해 한 사이트가 다른 사이트의 사용자에 대해 무언가를 알게 되는 경우입니다.
다른 사이트의 내용을 직접 읽나요?
아닙니다. 가이드는 이런 누출이 다른 사이트의 내용을 직접 읽는 것이 아니라 정보를 추론하는 것이라고 설명합니다.
팀은 어떻게 줄일 수 있나요?
브라우저의 크로스 사이트 보호 헤더를 사용하고, 모든 방문자에게 응답이 같아 보이도록 만드는 것으로 줄일 수 있습니다.
상세 정보
작성자의 원본 설명
XS-Leaks — cross-site information leaks via timing, frame counting, navigation, error oracles. Side-channel attacks against same-origin authenticated state.
인기도
- GitHub 스타
- 6.5k
- 순위
- #14087
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
detector-overview
6.5k에이전트가 스캐너가 표시한 코드를 읽고, 표시된 곳 중 어디가 실제 보안 버그이고 어디가 오탐인지 판단하도록 돕습니다.
exploiter-overview
6.5k에이전트가 확인된 여러 보안 약점을 하나의 테스트 체인으로 묶고, 그 체인이 어디까지 닿을 수 있는지 확인하도록 돕습니다.
llm-redteam-overview
6.5k에이전트가 프롬프트 인젝션부터 모델 악용까지 15개 전술 그룹 중 테스트에 맞는 AI 레드팀 가이드를 찾도록 돕습니다.
aatmf-t01-prompt-injection
6.5k숨겨진 지시가 AI 시스템을 덮어쓰려 하는 프롬프트 인젝션을 설명해, 보안 테스터가 이를 점검할 수 있게 합니다.