---
title: "Event Loop Blocking + Lazy images"
section: "Web Pentesting"
sectionSlug: "pentesting-web"
sourcePath: "src/pentesting-web/xs-search/event-loop-blocking-+-lazy-images.md"
sourceUrl: "https://github.com/HackTricks-wiki/hacktricks/blob/188de82beb54e70956b2952367a0af91d26758b8/src/pentesting-web/xs-search/event-loop-blocking-%2B-lazy-images.md"
sha: "188de82beb54e70956b2952367a0af91d26758b8"
isIndex: false
modified: true
license: "CC-BY-NC-4.0"
---
# Event Loop Blocking + Lazy images
In [**this exploit**](https://gist.github.com/aszx87410/155f8110e667bae3d10a36862870ba45), [**@aszx87410**](https://twitter.com/aszx87410) mixes the **lazy image side channel** technique through a HTML injection with kind of **event loop blocking technique** to leak chars.[[1]](#references)[[2]](#references)
This is a **different exploit for the CTF chall** that was already commented in the following page. take a look for more info about the challenge:
[Connection Pool Example](/hacktricks/pentesting-web/xs-search/connection-pool-example)
This technique is useful when the attacker can create a **Boolean oracle** based on whether a **lazy-loaded image** is fetched or not, but **cannot** directly observe that request because of CSP, `img-src` restrictions, or `Cache-Control: no-store`. Instead of waiting for an external callback, the exploit converts image loading into a **timing side channel** by making those image requests compete with other requests.
The idea behind this exploit is:[[1]](#references)[[2]](#references)
- The posts are loaded alphabetically
- An **attacker** can **inject** a **post** starting with **"A"**, then some **HTML tag** (like a big **`