From eca08e9d31330e6438302a3eb56bafde0d1812a5 Mon Sep 17 00:00:00 2001 From: CPol Date: Sun, 3 Jul 2022 09:52:15 +0000 Subject: [PATCH] GitBook: [#3302] No subject --- pentesting-web/xs-search.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pentesting-web/xs-search.md b/pentesting-web/xs-search.md index e1b9350c..cce4ca68 100644 --- a/pentesting-web/xs-search.md +++ b/pentesting-web/xs-search.md @@ -374,7 +374,7 @@ This could also be done with a Timing attack (check the paper for more info). * **Detectable Difference**: Timing * **More info**: [https://xsleaks.dev/docs/attacks/timing-attacks/performance-api/#detecting-cached-resources](https://xsleaks.dev/docs/attacks/timing-attacks/performance-api/#detecting-cached-resources) * **Summary:** Detect if a resource was stored in the cache. -* **Code Example**: [https://xsleaks.dev/docs/attacks/timing-attacks/performance-api/#detecting-cached-resources](https://xsleaks.dev/docs/attacks/timing-attacks/performance-api/#detecting-cached-resources) +* **Code Example**: [https://xsleaks.dev/docs/attacks/timing-attacks/performance-api/#detecting-cached-resources](https://xsleaks.dev/docs/attacks/timing-attacks/performance-api/#detecting-cached-resources), [https://xsinator.com/testing.html#Cache%20Leak%20(POST)](https://xsinator.com/testing.html#Cache%20Leak%20\(POST\)) Using the [Performance API](xs-search.md#performance-api) it's possible to check if a resource is cached.\ For more info: [https://xsleaks.dev/docs/attacks/timing-attacks/performance-api/#detecting-cached-resources](https://xsleaks.dev/docs/attacks/timing-attacks/performance-api/#detecting-cached-resources) @@ -476,7 +476,7 @@ Modern browsers won't indicate the URL it was redirected to, but you can still d * **Summary:** Clear the file from the cache. Opens target page checks if the file is present in the cache. * **Code Example:** -Most browsers use one shared cache for all websites. Regardless of their origin, it is possible to deduct whether a target page has **requested a specific file**. +Browsers might use one shared cache for all websites. Regardless of their origin, it is possible to deduct whether a target page has **requested a specific file**. If a page loads an image only if the user is logged in, you can **invalidate** the **resource** (so it's no longer cached if it was, see more info links), **perform a request** that could load that resource and try to load the resource **with a bad request** (e.g. using an overlong referer header). If the resource load **didn't trigger any error**, it's because it was **cached**. @@ -557,6 +557,9 @@ Web applications can deploy COOP response header to prevent other websites from If a server-side redirect uses **user input inside the redirection** and **extra data**. It's possible to detect this behaviour because usually **servers** has a **limit request length**. If the **user data** is that **length - 1**, because the **redirect** is using **that data** and **adding** something **extra**, it will trigger an **error detectable via Error Events**. +If you can somehow set cookies to a user, you can also perform this attack by **setting enough cookies** ([**cookie bomb**](hacking-with-cookies/cookie-bomb.md)) so with the **response increased size** of the **correct response** an **error** is triggered. In this case, remember that is you trigger this request from a same site, `