---
title: "Same-Site Leaks (SS-Leaks)"
section: "Web Pentesting"
sectionSlug: "pentesting-web"
sourcePath: "src/pentesting-web/dangling-markup-html-scriptless-injection/ss-leaks.md"
sourceUrl: "https://github.com/HackTricks-wiki/hacktricks/blob/188de82beb54e70956b2952367a0af91d26758b8/src/pentesting-web/dangling-markup-html-scriptless-injection/ss-leaks.md"
sha: "188de82beb54e70956b2952367a0af91d26758b8"
isIndex: false
modified: true
license: "CC-BY-NC-4.0"
---
# Same-Site Leaks (SS-Leaks)
Same-site leaks (SS-Leaks) adapt cross-site leak techniques to HTML injection on the target site. The linked research uses nested `<object>` fallbacks, lazy loading, and responsive images to convert differences such as HTTP `200` versus `404` responses into requests to an attacker-controlled endpoint, even when `SameSite=Lax` cookies and a restrictive Content Security Policy prevent simpler XS-Leak techniques.<sup>[[1]](#references)</sup>
## References
- [1] [Zeyu Zhang - From XS-Leaks to SS-Leaks](https://infosec.zeyu2001.com/2023/from-xs-leaks-to-ss-leaks)