Open In App

Web Cache Poisoning

Web cache poisoning is an attack on the caching system of a browser, serving stale or outdated content to the user. It is the act of injecting malicious code into data that’s delivered over the Internet by an advertising network and tricking it into displaying a false error message or misspelling. This can happen when hackers use their bots to request many graphic images from one website while injecting poisoned HTML code that causes errors in your web page.

 

Working:

Web cache poisoning is an attack on the caching system of a browser, serving stale or outdated content to the user.  It is the act of injecting malicious code into data that’s delivered over the Internet by an advertising network and tricking it into displaying a false error message or misspelling.  This can happen when hackers use their bots to request many graphic images from one website while injecting poisoned HTML code that causes errors in your web page.



Example:

If the server needs to send new responses to individual HTTP requests individually, it can overload the server, causing delay issues, especially during busy hours, and degrading the user experience. Caching is primarily a means of reducing such problems. The cache is between the server and the user and typically stores (caches) the response to a particular request for a set period of time. Then, when another user  sends an equivalent request, the cache provides the user with a copy of the cached response directly, without backend intervention. This reduces the number of duplicate requests that the server has to handle and significantly reduces the load on the server.

Reason for Web Cache Poisoning:

Web cache poisoning happens when a website does not use a secure method for showing cached results, or if it does use secure methods, but for some reason a link to an image that appears to be cached and then does not appear after a certain period of time. It may also happen when the content of a web page changes and web browsers are unable to detect the change in content, so they continue to serve up their old cached version of the web page instead of the new one.



Prevention from Caching Poisoning:

You can prevent your website becoming vulnerable to web cache poisoning by following these simple steps:

Countermeasures:

Article Tags :