Web Cache Deception: Detecting Web Cache Deception

Web cache poisoningExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

  1. Detecting delimiter discrepancies: /path/<dynamic-resource>;<static-resource>

    • For example: /settings/profile;script.js

    • If the origin server uses ; as a delimiter but the cache isn't

    • The cache interprets the path as: /settings/profile;script.js

    • The origin server interprets the path as: /settings/profile

    • For more delimiter characters: see Web cache deception lab delimiter list

  2. Detecting normalization: /wcd/..%2fprofile

    • If the origin server resolved the path traversal sequence but the cache isn't

    • The cache interprets the path as: /wcd/..%2fprofile

    • The origin server interprets the path as: /profile

Comments

No comments yet.