If the origin server treats a delimiter, but the cache doesn’t and the cache normalizes paths before applying static directory rules you can leverage path traversal!
Take this payload:
/myAccount$/../static/any
- The cache sees: /static/any
- The origin sees: /myAccount
The response for /myAccount is cached under /static/any and anyone that visits that static URL gets leaked data.