OWASP Hunting

Browser & protocol

XS-Leaks

XS-Leaks infer otherwise unreadable cross-origin state through observable browser behavior such as load events, timing, framing and window relationships. The leak must distinguish a protected state, not merely identify that a URL exists.

Payloads are read from main at 35c1f2b (committed 22 Nov 2026). Project version 1.0.2.

These payloads are for authorized testing only: systems you own, authorized bug bounty programs, or controlled lab environments. Unauthorized testing is illegal.

Payload files

Folder on GitHub

Use the arrow keys to move between payloads. Press Enter or C to copy the focused payload.

xs-leaks-payloads.txt

22 payloads · 3.3 KB
Source

Loading payloads for XS-Leaks…

Common Attack Vectors#

  • Resource load/error differences
  • Cache and response timing differences
  • Frame counts and window references
  • Cross-origin framing and navigation behavior
  • Redirect-dependent state differences
  • Origin isolation and resource embedding policy gaps

Testing Approach#

Build a controlled target with two known states containing synthetic data and a separate probe origin. Use the same browser/version, network conditions and cookie policy for both controls. Repeat small, bounded samples, randomize state order and compare distributions before attributing a timing difference to secret state. Most snippets below are independent fixtures, not universally working leaks.

Browser restrictions may suppress events, timing details, cookies or frame access. That is a valid negative result. Resource Timing fields require the relevant Timing-Allow-Origin permissions; missing detail is not evidence of secret data. Do not use CORS access to read a response and call that an XS-Leak. Demonstrate the protected inference without reading the response body.

References#

Responsible Use

All content in this reference is for authorized security testing only. Use only on systems you own or have explicit written permission to test.

  • Systems and applications you own
  • Authorized penetration testing engagements
  • Bug bounty programs with defined scope
  • Educational lab environments (DVWA, WebGoat, HackTheBox)