मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी6.5k · #14087

xs-leaks

यह क्या करती है

यह गाइड side-channel लीक को कवर करती है, जो एक वेबसाइट को दूसरी साइट पर यूज़र की जानकारी का अनुमान लगाने देते हैं। यह उन वेब टीमों के लिए है जो जाँचना चाहती हैं कि उनके पेज बाहरी साइटों को लॉगिन स्थिति या खोज नतीजे तो नहीं बताते।

कब इस्तेमाल करें

  • ✓जब साइट लॉगिन किए विज़िटरों को अलग सामग्री दिखाती है और आप जाँचना चाहते हैं कि बाहरी साइटें इसका पता लगा सकती हैं या नहीं।
  • ✓जब खोज नतीजे या खाता पेज समय या frame गिनती से सदस्यता उजागर कर सकते हों।
  • ✓जब अधिकृत समीक्षा संवेदनशील पेजों के लिए ब्राउज़र-स्तर की अलगाव जाँचना चाहती है।

Skill का लिंक

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/xs-leaks/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/xs-leaks/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या कोई दूसरी वेबसाइट बता सकती है कि हमारा कोई यूज़र लॉगिन है या उसके पास कोई खास डेटा है? कृपया हमारे खाता पेज जाँचें।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट जाँचता है कि पेज cross-site अनुरोधों पर कैसे जवाब देते हैं, जिसमें समय, frame व्यवहार और error जवाब शामिल हैं, और रिपोर्ट करता है कि लॉगिन स्थिति के अनुसार कौन-से संकेत अलग हैं।

तकनीकी सामग्री (मूल 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: DENY or frame-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
अक्सर पूछे जाने वाले सवाल

cross-site leak क्या है?

जब एक साइट अप्रत्यक्ष ब्राउज़र व्यवहार से दूसरी साइट के यूज़र के बारे में कुछ जान लेती है।

क्या यह सामग्री सीधे पढ़ती है?

नहीं। गाइड कहती है कि ये लीक दूसरी साइट की सामग्री पढ़ने के बजाय जानकारी का अनुमान लगाते हैं।

टीमें इसे कैसे कम कर सकती हैं?

ब्राउज़र के cross-site सुरक्षा हेडर इस्तेमाल करके, और सभी विज़िटरों के लिए जवाबों को एक जैसा दिखाकर।

जानकारी

लेखक का मूल विवरण

XS-Leaks — cross-site information leaks via timing, frame counting, navigation, error oracles. Side-channel attacks against same-origin authenticated state.

repo: BitterSecurity/Decepticon

लोकप्रियता

GitHub स्टार
6.5k
रैंकिंग में स्थान
#14087
लाइसेंस
Apache-2.0
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

detector-overview

6.5k

यह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।

कोडिंगसिक्योरिटी

exploiter-overview

6.5k

यह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।

कोडिंगसिक्योरिटी

llm-redteam-overview

6.5k

यह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।

कोडिंगसिक्योरिटी

aatmf-t01-prompt-injection

6.5k

समझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।

कोडिंगसिक्योरिटी

मिलती-जुलती skills