{"id":5398,"date":"2020-11-27T15:04:39","date_gmt":"2020-11-27T09:34:39","guid":{"rendered":"https:\/\/www.varutra.com\/?p=5398"},"modified":"2022-12-02T14:54:40","modified_gmt":"2022-12-02T09:24:40","slug":"web-cache-poisoning-through-host-header-injection","status":"publish","type":"post","link":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/","title":{"rendered":"Web Cache Poisoning \u2013 Through Host Header Injection"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/varutra-1a3b6.kxcdn.com\/wp-content\/uploads\/2020\/11\/Web-Cache-Poisoning-\u2013-Through-Host-Header-Injection-2-1024x573.jpg\"  class=\"sh-overlay-item sh-table-cell ls-is-cached lazyloaded\" data-rel=\"lightcase\" title=\"Web Cache Poisoning Through Host Header Injection 2 - Varutra Consulting\"><br \/>\nWeb cache poisoning is an advanced hacking technique through which an attacker can exploit the pattern or behavior of a web cache and server. But before comprehending what is web cache poisoning, we should understand web cache and its vulnerabilities. This will help us in taking measures to prevent web cache poisoning.<\/p>\n<p>&nbsp;<\/p>\n<h3>The first question here is <strong>what is web cache?<\/strong><\/h3>\n<p>A cache is a term that is generally used for the information between server and user. When a web server saves data from certain requests temporarily or for some limited amount of time, those data or information is known as a cache. In case, the server receives a similar request then the user will receive the cached information which was saved earlier without having to interact with the server again.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5399 aligncenter\" src=\"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/HTTP-web-cache..png\" alt=\"HTTP web cache\" width=\"430\" height=\"230\" srcset=\"https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/HTTP-web-cache..png 430w, https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/HTTP-web-cache.-300x160.png 300w\" sizes=\"(max-width: 430px) 100vw, 430px\" \/><\/p>\n<p style=\"text-align: center\">Figure: HTTP web cache.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Working of Web Cache<\/strong><\/h3>\n<p>Servers receive a lot of requests and can get overloaded if it will have to send a new request every single time for each separate HTTP request. Due to this factor, a server can face delay problems and an unsatisfactory user experience. Therefore, the primary use of cache is to reduce the overloading of the webserver.<\/p>\n<p>When an HTTP request is received by the cache, it will check for a past similar cached response. If there is a response already present then it does not forward the requests to the back-end server for handling. This procedure is carried by Cache Keys. It comprises a pre-defined set of components that consists of the host header and request line from the request. The remaining components of the request that are not present in the key are known as unkeyed components. In case, there are two requests from cached keys, those two requests will be considered equivalent by the server. For such requests, the server provides a saved cached copy of a response to the subsequent requests. There is an expiration time for every saved cache.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Web Cache Poisoning<\/strong>:<\/h3>\n<p>Web cache poisoning is an advance attacking technique through which an attacker tries to exploit the target\u2019s web cache and server to distribute malicious HTTP responses.<\/p>\n<p>The exploitation attack is carried out in two phases:<\/p>\n<ol>\n<li>In the first step, the attacker needs to conjure a malicious response from the server. This response will carry some kind of harmful payload.<\/li>\n<li>After successfully receiving a malicious response from the server, the attacker will try to get the cache response. This response will be finally be delivered to users.<\/li>\n<\/ol>\n<p>Here are some points that are to be considered when we need to perform a web cache poisoning attack.<\/p>\n<p>Firstly, we need to recognize the unkeyed inputs present in a request. It is because they are often neglected by the server. By using them, we can easily manipulate the server by including payloads in the request inputs when cached data is getting delivered. To identify unkeyed inputs, we need to include different inputs in the request and then observe them. It is done to see whether they cause any effect on response or not. After analyzing those keyed inputs, we can conjure a damaging response from the server with the help of these inputs.<\/p>\n<p>After we are successful in receiving a payload that contains a damaging response, we can start working on getting this response cached by the user. Once harmful response gets cached, we can finally deliver the payloads to targeted users.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Exploiting web cache poisoning vulnerabilities<\/strong>:<\/h3>\n<p>With web cache poisoning, we can carry out multiple payload attacks. Here is the list of vulnerabilities that can be exploited by using web cache poisoning:<\/p>\n<ul>\n<li>XSS attack<\/li>\n<li>The exploitation of resource import<\/li>\n<li>Cookie-handling vulnerabilities exploitation<\/li>\n<li>Multiple headers exploitation<\/li>\n<li>Exploiting responses to retrieve sensitive information<\/li>\n<li>The exploitation of DOM-based Vulnerabilities<\/li>\n<li>Chaining web cache poisoning vulnerabilities<\/li>\n<\/ul>\n<p>We can also perform exploitation by the implementation of flaws in the cache. It is carried out by exploiting cache key flaws. For example, unkeyed query parameter, internal cache poisoning, unkeyed port, cache key injection, unkeyed query string, etc. We can also achieve this by using cache probing methodology.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Web cache poisoning to go through web stack:<\/strong><\/h3>\n<p>In the beginning, the web was quite simple but its complexity is increasing day by day due to caches global network. It helps improve the network\u2019s responsiveness to a site but also introduces more attack space. With the advancement in technology, we can exploit more than just headers and caches with web cache poisoning.<\/p>\n<p>Different exploitation methodologies like misguided transformation, request line normalization, insecurely stored cache key components, etc, can come in very handy for such a process. Using such methods, an attacker can corrupt the website and perform a persistent DOS attack with just one malicious redirect request.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Impact of web cache poisoning:<\/strong><\/h3>\n<p>The following factors impacts web cache poisoning:<\/p>\n<ol>\n<li>What responses can be successfully cached?<\/li>\n<li>The traffic on the affected page<\/li>\n<\/ol>\n<p>The primary focus of web cache poisoning is delivering payloads to the users. Therefore, the impact depends on the amount of malicious content injected into the payload. Another aspect that decides the impact is the number of users the payload was delivered to. If a popular website is poisoned then its impact will be huge.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Preventing web cache poisoning vulnerabilities:<\/strong><\/h3>\n<p>Here are some important points that are to be taken into consideration as a preventive measure.<\/p>\n<ul>\n<li>Restriction of cache to static responses.<\/li>\n<li>A better understanding of third-party applications before adding them to your cyber environment.<\/li>\n<li>To prevent something from getting excluded from the cache key, rewrite the request.<\/li>\n<li>Avoid excepting large GET requests.<\/li>\n<li>Try to patch up all the client-associated vulnerabilities.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>Here is an example of exploiting the vulnerability on the online lab using a web cache. In this lab, web cache poisoning will be explained using the unkeyed header. To fix it we will poison the response cache that will execute \u201c<em>alert<\/em>(document.cookie)\u201d in the browser. And, to do so we need only 2 things i.e., the lab itself and the burp suite.<\/p>\n<p>We will be following the steps below:<\/p>\n<ul>\n<li>Access the lab and capture GET requests on the burp suite.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5400 aligncenter\" src=\"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/Access-the-lab-and-capture-that-GET-request-in-burp-suite..png\" alt=\"Access the lab and capture that GET request in burp suite\" width=\"606\" height=\"283\" srcset=\"https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/Access-the-lab-and-capture-that-GET-request-in-burp-suite..png 606w, https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/Access-the-lab-and-capture-that-GET-request-in-burp-suite.-300x140.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/p>\n<ul>\n<li>After capturing the request in burp. In a proxy tab, open \u201cHTTP History\u201d and find the GET request for the home page.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5409 aligncenter\" src=\"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/2.png\" alt=\"\" width=\"606\" height=\"332\" srcset=\"https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/2.png 606w, https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/2-300x164.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/p>\n<ul>\n<li>Now, this request is to be sent to the Repeater.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5402 aligncenter\" src=\"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/send-this-request-to-the-Repeater..png\" alt=\"\" width=\"606\" height=\"304\" srcset=\"https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/send-this-request-to-the-Repeater..png 606w, https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/send-this-request-to-the-Repeater.-300x150.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/p>\n<ul>\n<li>This lab is supportive of X-Forwarded-Host. In the parameter of the cache-buster unkeyed header, we need to add, \u201c?cb=1234\u201d in the request. So, we will add X-Forwarded-Host with an arbitrary hostname, for example, \u201cexample.com\u201d.\u00a0 After adding these parameters to the request, Now, we need to keep sending requests until the cache is hit.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5403 aligncenter\" src=\"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/Add-a-parameter.png\" alt=\"\" width=\"606\" height=\"256\" srcset=\"https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/Add-a-parameter.png 606w, https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/Add-a-parameter-300x127.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/li>\n<li>The X-Forwarded-Host in the request will dynamically generate a URL for importing a JavaScript file stored at that particular path disclosed in response. Open the exploit server immediately as the cache is hit.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5404 aligncenter\" src=\"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/The-X-Forwarded-Host.png\" alt=\"\" width=\"606\" height=\"296\" srcset=\"https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/The-X-Forwarded-Host.png 606w, https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/The-X-Forwarded-Host-300x147.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/li>\n<li>In the exploit, the server will be changing the file name to the path disclosed in the response i.e., \u201c<em>\/resources\/js\/tracking.js\u201d. <\/em>It will also change the file name of the body to \u201c<em>alert<\/em>(document.cookie)\u201d and will store these values.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5405 aligncenter\" src=\"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/the-exploit-server-change.png\" alt=\"\" width=\"606\" height=\"277\" srcset=\"https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/the-exploit-server-change.png 606w, https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/the-exploit-server-change-300x137.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/li>\n<li>Once we have completed storing the values, the exploit server\u2019s URL is to be copied and then pasted in the request as X-Forwarded-Host.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5406 aligncenter\" src=\"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/the-values-are-stored.png\" alt=\"\" width=\"606\" height=\"255\" srcset=\"https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/the-values-are-stored.png 606w, https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/the-values-are-stored-300x126.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/li>\n<li>We need to resend the request, after removing the cache-buster header which is represented as \u201ccb=1234\u201d, and the value of X-Forwarded-Host is to be changed.\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5407 aligncenter\" src=\"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/after-changing-the-value-1.png\" alt=\"\" width=\"606\" height=\"265\" srcset=\"https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/after-changing-the-value-1.png 606w, https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/after-changing-the-value-1-300x131.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/li>\n<li>This request is to be replayed till the cache response is hit. As soon as the cache is hit the response cache is poisoned to execute the body in the exploit server<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5408 aligncenter\" src=\"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/Replay-the-request-until.png\" alt=\"\" width=\"606\" height=\"270\" srcset=\"https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/Replay-the-request-until.png 606w, https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/Replay-the-request-until-300x134.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Web cache poisoning can even damage a completely secure website and make it vulnerable to attacks by just adding a malicious response in its cache. You can also read about one such vulnerability, i.e.,\u00a0<a href=\"https:\/\/www.varutra.com\/web-cache-deception\/\">web cache deception<\/a>\u00a0in our\u00a0<a href=\"https:\/\/www.varutra.com\/blogs\/\">blog<\/a>\u00a0section.<\/p>\n<p>Thank you.<\/p>\n<p>Author,<\/p>\n<p><strong>Pralekya Hirmalwar<\/strong><\/p>\n<p>Varutra Consulting Pvt. Ltd.<\/p>","protected":false},"excerpt":{"rendered":"<p>Web cache poisoning is an advanced hacking technique through which an attacker can exploit the pattern or behavior of a web cache and server. But&#8230;<\/p>\n","protected":false},"author":4,"featured_media":5648,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[57],"tags":[312,311,144,309,310],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Know web cache poisoning, how it is done, the impact of it, measures to be taken to prevent poisoning and web cache poisoning through Host Header Injection.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"kalpblogger\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Varutra Consulting\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Web Cache Poisoning \u2013 Through Host Header Injection\" \/>\n\t\t<meta property=\"og:description\" content=\"Know web cache poisoning, how it is done, the impact of it, measures to be taken to prevent poisoning and web cache poisoning through Host Header Injection.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/Web-Cache-Poisoning-\u2013-Through-Host-Header-Injection-2.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/Web-Cache-Poisoning-\u2013-Through-Host-Header-Injection-2.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1060\" \/>\n\t\t<meta property=\"og:image:height\" content=\"593\" \/>\n\t\t<meta property=\"article:section\" content=\"Vulnerability Disclosure\" \/>\n\t\t<meta property=\"article:tag\" content=\"burp\" \/>\n\t\t<meta property=\"article:tag\" content=\"cookie\" \/>\n\t\t<meta property=\"article:tag\" content=\"vulnerability\" \/>\n\t\t<meta property=\"article:tag\" content=\"web cache\" \/>\n\t\t<meta property=\"article:tag\" content=\"web stack\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-11-27T09:34:39+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-12-02T09:24:40+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Web Cache Poisoning \u2013 Through Host Header Injection\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Know web cache poisoning, how it is done, the impact of it, measures to be taken to prevent poisoning and web cache poisoning through Host Header Injection.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/Web-Cache-Poisoning-\u2013-Through-Host-Header-Injection-2.jpg\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"kalpblogger\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/web-cache-poisoning-through-host-header-injection\\\/#article\",\"name\":\"Web Cache Poisoning \\u2013 Through Host Header Injection\",\"headline\":\"Web Cache Poisoning \\u2013 Through Host Header Injection\",\"author\":{\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/author\\\/kalpblogger\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/Web-Cache-Poisoning-\\u2013-Through-Host-Header-Injection-2.jpg\",\"width\":1060,\"height\":593,\"caption\":\"Web Cache Poisoning \\u2013 Through Host Header Injectio\"},\"datePublished\":\"2020-11-27T15:04:39+05:30\",\"dateModified\":\"2022-12-02T14:54:40+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/web-cache-poisoning-through-host-header-injection\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/web-cache-poisoning-through-host-header-injection\\\/#webpage\"},\"articleSection\":\"Vulnerability Disclosure, burp, cookie, Vulnerability, web cache, web stack\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/web-cache-poisoning-through-host-header-injection\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/category\\\/vulnerability-disclosure\\\/#listItem\",\"name\":\"Vulnerability Disclosure\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/category\\\/vulnerability-disclosure\\\/#listItem\",\"position\":2,\"name\":\"Vulnerability Disclosure\",\"item\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/category\\\/vulnerability-disclosure\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/web-cache-poisoning-through-host-header-injection\\\/#listItem\",\"name\":\"Web Cache Poisoning \\u2013 Through Host Header Injection\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/web-cache-poisoning-through-host-header-injection\\\/#listItem\",\"position\":3,\"name\":\"Web Cache Poisoning \\u2013 Through Host Header Injection\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/category\\\/vulnerability-disclosure\\\/#listItem\",\"name\":\"Vulnerability Disclosure\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/#organization\",\"name\":\"Varutra\",\"description\":\"Secure your digital world with our Cybersecurity services.\",\"url\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.varutra.com\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/Varutra-Found-e1612984024606.jpg\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/web-cache-poisoning-through-host-header-injection\\\/#organizationLogo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/web-cache-poisoning-through-host-header-injection\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/author\\\/kalpblogger\\\/#author\",\"url\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/author\\\/kalpblogger\\\/\",\"name\":\"kalpblogger\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5e96a9b330da7c941c1e39217a2fbe38?s=96&d=mm&r=g\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/web-cache-poisoning-through-host-header-injection\\\/#webpage\",\"url\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/web-cache-poisoning-through-host-header-injection\\\/\",\"name\":\"Web Cache Poisoning \\u2013 Through Host Header Injection\",\"description\":\"Know web cache poisoning, how it is done, the impact of it, measures to be taken to prevent poisoning and web cache poisoning through Host Header Injection.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/web-cache-poisoning-through-host-header-injection\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/author\\\/kalpblogger\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/author\\\/kalpblogger\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/Web-Cache-Poisoning-\\u2013-Through-Host-Header-Injection-2.jpg\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/web-cache-poisoning-through-host-header-injection\\\/#mainImage\",\"width\":1060,\"height\":593,\"caption\":\"Web Cache Poisoning \\u2013 Through Host Header Injectio\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/web-cache-poisoning-through-host-header-injection\\\/#mainImage\"},\"datePublished\":\"2020-11-27T15:04:39+05:30\",\"dateModified\":\"2022-12-02T14:54:40+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/#website\",\"url\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/\",\"name\":\"Varutra Consulting\",\"description\":\"Secure your digital world with our Cybersecurity services.\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.varutra.com\\\/varutravrt3\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>Web Cache Poisoning \u2013 Through Host Header Injection<\/title>\n\n","aioseo_head_json":{"title":"Web Cache Poisoning \u2013 Through Host Header Injection","description":"Know web cache poisoning, how it is done, the impact of it, measures to be taken to prevent poisoning and web cache poisoning through Host Header Injection.","canonical_url":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/#article","name":"Web Cache Poisoning \u2013 Through Host Header Injection","headline":"Web Cache Poisoning \u2013 Through Host Header Injection","author":{"@id":"https:\/\/www.varutra.com\/varutravrt3\/author\/kalpblogger\/#author"},"publisher":{"@id":"https:\/\/www.varutra.com\/varutravrt3\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/Web-Cache-Poisoning-\u2013-Through-Host-Header-Injection-2.jpg","width":1060,"height":593,"caption":"Web Cache Poisoning \u2013 Through Host Header Injectio"},"datePublished":"2020-11-27T15:04:39+05:30","dateModified":"2022-12-02T14:54:40+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/#webpage"},"isPartOf":{"@id":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/#webpage"},"articleSection":"Vulnerability Disclosure, burp, cookie, Vulnerability, web cache, web stack"},{"@type":"BreadcrumbList","@id":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.varutra.com\/varutravrt3#listItem","position":1,"name":"Home","item":"https:\/\/www.varutra.com\/varutravrt3","nextItem":{"@type":"ListItem","@id":"https:\/\/www.varutra.com\/varutravrt3\/category\/vulnerability-disclosure\/#listItem","name":"Vulnerability Disclosure"}},{"@type":"ListItem","@id":"https:\/\/www.varutra.com\/varutravrt3\/category\/vulnerability-disclosure\/#listItem","position":2,"name":"Vulnerability Disclosure","item":"https:\/\/www.varutra.com\/varutravrt3\/category\/vulnerability-disclosure\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/#listItem","name":"Web Cache Poisoning \u2013 Through Host Header Injection"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.varutra.com\/varutravrt3#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/#listItem","position":3,"name":"Web Cache Poisoning \u2013 Through Host Header Injection","previousItem":{"@type":"ListItem","@id":"https:\/\/www.varutra.com\/varutravrt3\/category\/vulnerability-disclosure\/#listItem","name":"Vulnerability Disclosure"}}]},{"@type":"Organization","@id":"https:\/\/www.varutra.com\/varutravrt3\/#organization","name":"Varutra","description":"Secure your digital world with our Cybersecurity services.","url":"https:\/\/www.varutra.com\/varutravrt3\/","logo":{"@type":"ImageObject","url":"https:\/\/www.varutra.com\/wp-content\/uploads\/2021\/11\/Varutra-Found-e1612984024606.jpg","@id":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/#organizationLogo"},"image":{"@id":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.varutra.com\/varutravrt3\/author\/kalpblogger\/#author","url":"https:\/\/www.varutra.com\/varutravrt3\/author\/kalpblogger\/","name":"kalpblogger","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/5e96a9b330da7c941c1e39217a2fbe38?s=96&d=mm&r=g"}},{"@type":"WebPage","@id":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/#webpage","url":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/","name":"Web Cache Poisoning \u2013 Through Host Header Injection","description":"Know web cache poisoning, how it is done, the impact of it, measures to be taken to prevent poisoning and web cache poisoning through Host Header Injection.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.varutra.com\/varutravrt3\/#website"},"breadcrumb":{"@id":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/#breadcrumblist"},"author":{"@id":"https:\/\/www.varutra.com\/varutravrt3\/author\/kalpblogger\/#author"},"creator":{"@id":"https:\/\/www.varutra.com\/varutravrt3\/author\/kalpblogger\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.varutra.com\/varutravrt3\/wp-content\/uploads\/2020\/11\/Web-Cache-Poisoning-\u2013-Through-Host-Header-Injection-2.jpg","@id":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/#mainImage","width":1060,"height":593,"caption":"Web Cache Poisoning \u2013 Through Host Header Injectio"},"primaryImageOfPage":{"@id":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/#mainImage"},"datePublished":"2020-11-27T15:04:39+05:30","dateModified":"2022-12-02T14:54:40+05:30"},{"@type":"WebSite","@id":"https:\/\/www.varutra.com\/varutravrt3\/#website","url":"https:\/\/www.varutra.com\/varutravrt3\/","name":"Varutra Consulting","description":"Secure your digital world with our Cybersecurity services.","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.varutra.com\/varutravrt3\/#organization"}}]},"og:locale":"en_US","og:site_name":"Varutra Consulting","og:type":"article","og:title":"Web Cache Poisoning \u2013 Through Host Header Injection","og:description":"Know web cache poisoning, how it is done, the impact of it, measures to be taken to prevent poisoning and web cache poisoning through Host Header Injection.","og:url":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/","og:image":"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/Web-Cache-Poisoning-\u2013-Through-Host-Header-Injection-2.jpg","og:image:secure_url":"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/Web-Cache-Poisoning-\u2013-Through-Host-Header-Injection-2.jpg","og:image:width":"1060","og:image:height":"593","article:section":"Vulnerability Disclosure","article:tag":["burp","cookie","vulnerability","web cache","web stack"],"article:published_time":"2020-11-27T09:34:39+00:00","article:modified_time":"2022-12-02T09:24:40+00:00","twitter:card":"summary_large_image","twitter:title":"Web Cache Poisoning \u2013 Through Host Header Injection","twitter:description":"Know web cache poisoning, how it is done, the impact of it, measures to be taken to prevent poisoning and web cache poisoning through Host Header Injection.","twitter:image":"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/Web-Cache-Poisoning-\u2013-Through-Host-Header-Injection-2.jpg","twitter:label1":"Written by","twitter:data1":"kalpblogger","twitter:label2":"Est. reading time","twitter:data2":"7 minutes"},"aioseo_meta_data":{"post_id":"5398","title":"Web Cache Poisoning \u2013 Through Host Header Injection","description":"Know web cache poisoning, how it is done, the impact of it, measures to be taken to prevent poisoning and web cache poisoning through Host Header Injection.","keywords":[],"keyphrases":{"focus":{"keyphrase":"Web Cache Poisoning","analysis":{"keyphraseInTitle":{"title":"Focus keyphrase in SEO title","description":"Focus keyphrase found in SEO title.","score":9,"maxScore":9,"error":0},"keyphraseInDescription":{"title":"Focus keyphrase in meta description","description":"Focus keyphrase found in meta description.","score":9,"maxScore":9,"error":0},"keyphraseLength":{"title":"Focus keyphrase length","description":"Good job!","score":9,"maxScore":9,"error":0,"length":3},"keyphraseInURL":{"title":"Focus keyphrase in URL","description":"Focus keyphrase used in the URL.","score":5,"maxScore":5,"error":0},"keyphraseInIntroduction":{"title":"Focus keyphrase in introduction","description":"Your Focus keyphrase does not appear in the first paragraph. Make sure the topic is clear immediately.","score":3,"maxScore":9,"error":1},"keyphraseInSubHeadings":{"title":"Focus keyphrase in Subheadings","description":"Your H2 and H3 subheadings reflects the topic of your copy. Good job!","score":9,"maxScore":9,"error":0},"keyphraseInImageAlt":{"title":"Focus keyphrase in image alt attributes","description":"Focus keyphrase not found in image alt attribute(s). Add an image with your Focus keyphrase as alt text.","score":3,"maxScore":9,"error":1}},"score":80},"additional":[{"keyphrase":"Web Cache","score":100,"analysis":{"keyphraseInDescription":{"title":"Keyphrase in meta description","description":"Keyphrase found in meta description.","score":9,"maxScore":9,"error":0},"keyphraseLength":{"title":"Keyphrase length","description":"Good job!","score":9,"maxScore":9,"error":0,"length":2},"keyphraseInIntroduction":{"title":"Keyphrase in introduction","description":"Your Keyphrase appears in the first paragraph. Well done!","score":9,"maxScore":9,"error":0},"keyphraseInImageAlt":{"title":"Keyphrase in image alt attributes","description":"Keyphrase found in image alt attribute(s).","score":9,"maxScore":9,"error":0}}},{"keyphrase":"Cache Poisoning","score":67,"analysis":{"keyphraseInDescription":{"title":"Keyphrase in meta description","description":"Keyphrase found in meta description.","score":9,"maxScore":9,"error":0},"keyphraseLength":{"title":"Keyphrase length","description":"Good job!","score":9,"maxScore":9,"error":0,"length":2},"keyphraseInIntroduction":{"title":"Keyphrase in introduction","description":"Your Keyphrase does not appear in the first paragraph. Make sure the topic is clear immediately.","score":3,"maxScore":9,"error":1},"keyphraseInImageAlt":{"title":"Keyphrase in image alt attributes","description":"Keyphrase not found in image alt attribute(s). Add an image with your Keyphrase as alt text.","score":3,"maxScore":9,"error":1}}}]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"featured","og_image_url":"https:\/\/www.varutra.com\/wp-content\/uploads\/2020\/11\/Web-Cache-Poisoning-\u2013-Through-Host-Header-Injection-2.jpg","og_image_width":"1060","og_image_height":"593","og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"Vulnerability Disclosure","og_article_tags":[],"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"reviewed_by":null,"open_ai":null,"created":"2021-10-27 15:12:31","updated":"2026-05-24 09:41:32","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":"2026-05-22 13:22:03"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/www.varutra.com\/varutravrt3\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/www.varutra.com\/varutravrt3\/category\/vulnerability-disclosure\/\" title=\"Vulnerability Disclosure\">Vulnerability Disclosure<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tWeb Cache Poisoning \u2013 Through Host Header Injection\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.varutra.com\/varutravrt3"},{"label":"Vulnerability Disclosure","link":"https:\/\/www.varutra.com\/varutravrt3\/category\/vulnerability-disclosure\/"},{"label":"Web Cache Poisoning \u2013 Through Host Header Injection","link":"https:\/\/www.varutra.com\/varutravrt3\/web-cache-poisoning-through-host-header-injection\/"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.varutra.com\/varutravrt3\/wp-json\/wp\/v2\/posts\/5398"}],"collection":[{"href":"https:\/\/www.varutra.com\/varutravrt3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.varutra.com\/varutravrt3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.varutra.com\/varutravrt3\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.varutra.com\/varutravrt3\/wp-json\/wp\/v2\/comments?post=5398"}],"version-history":[{"count":5,"href":"https:\/\/www.varutra.com\/varutravrt3\/wp-json\/wp\/v2\/posts\/5398\/revisions"}],"predecessor-version":[{"id":20331,"href":"https:\/\/www.varutra.com\/varutravrt3\/wp-json\/wp\/v2\/posts\/5398\/revisions\/20331"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.varutra.com\/varutravrt3\/wp-json\/wp\/v2\/media\/5648"}],"wp:attachment":[{"href":"https:\/\/www.varutra.com\/varutravrt3\/wp-json\/wp\/v2\/media?parent=5398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.varutra.com\/varutravrt3\/wp-json\/wp\/v2\/categories?post=5398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.varutra.com\/varutravrt3\/wp-json\/wp\/v2\/tags?post=5398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}