xs-leaks
Skill này làm gì
Hướng dẫn này nói về các rò rỉ kênh phụ cho phép một website suy ra thông tin về người dùng trên website khác. Dành cho các nhóm web muốn kiểm tra xem trang của họ có làm lộ trạng thái đăng nhập hoặc kết quả tìm kiếm cho các trang bên ngoài không.
Khi nào nên dùng
- ✓Khi một trang hiển thị nội dung khác nhau cho người truy cập đã đăng nhập và bạn muốn kiểm tra xem các trang bên ngoài có phát hiện được không.
- ✓Khi kết quả tìm kiếm hoặc trang tài khoản có thể làm lộ việc là thành viên qua thời gian hoặc số lượng khung.
- ✓Khi một rà soát được ủy quyền muốn kiểm thử cách ly ở cấp trình duyệt cho các trang nhạy cảm.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/xs-leaks/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Một website khác có thể biết được một người dùng của chúng tôi có đăng nhập hay có dữ liệu nhất định không? Vui lòng kiểm tra các trang tài khoản của chúng tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra cách các trang phản hồi với yêu cầu liên trang, bao gồm thời gian, hành vi khung và phản hồi lỗi, rồi báo cáo những tín hiệu nào khác nhau theo trạng thái đăng nhập.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Cross-site leak là gì?
Đó là khi một website biết được điều gì đó về người dùng trên website khác qua hành vi gián tiếp của trình duyệt.
Nó có đọc trực tiếp nội dung không?
Không. Hướng dẫn cho biết các rò rỉ này suy ra thông tin chứ không đọc nội dung của website khác.
Các nhóm có thể giảm rủi ro như thế nào?
Bằng cách dùng các header bảo vệ liên trang của trình duyệt và làm cho phản hồi trông giống nhau với mọi người truy cập.
Chi tiết
Mô tả gốc của tác giả
XS-Leaks — cross-site information leaks via timing, frame counting, navigation, error oracles. Side-channel attacks against same-origin authenticated state.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #14087
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
detector-overview
6.5kGiúp agent của bạn đọc code mà một công cụ quét đã đánh dấu, rồi quyết định điểm nào là lỗ hổng bảo mật thật và điểm nào là báo động giả.
exploiter-overview
6.5kGiúp agent của bạn ghép nhiều lỗ hổng bảo mật đã xác nhận thành một chuỗi kiểm thử và kiểm tra chuỗi đó có thể gây hậu quả đến đâu.
llm-redteam-overview
6.5kGiúp agent của bạn tìm đúng hướng dẫn red-team AI cho một bài kiểm thử, bao quát 15 nhóm chiến thuật từ prompt injection đến lạm dụng mô hình.
aatmf-t01-prompt-injection
6.5kGiải thích prompt injection, khi các chỉ dẫn ẩn cố ghi đè một hệ thống AI, để chuyên gia bảo mật có thể kiểm tra lỗi này.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.