隐藏Web缓存发现
Hidden Web Caches Discovery
AI总结:
本文提出一种基于时间分析的Web缓存检测方法,通过发送成对请求并利用缓存破坏技术,无需依赖缓存状态头部即可发现隐藏缓存,并成功检测出其中的Web缓存欺骗漏洞。
摘要:
Web缓存在Web性能和可扩展性中起着至关重要的作用。然而,当Web服务器未能通过标准化头部可靠地传达缓存状态时,检测缓存响应便极具挑战。本文提出了一种基于时间分析的缓存检测新方法。该方法消除了对缓存状态头部的依赖,使其适用于任何Web服务器。该方法利用HTTP多路复用功能发送成对请求,并大量使用缓存破坏技术来控制响应的来源。通过测量接收成对请求响应所需的时间,我们能够判断响应是否已被缓存。在每对请求中,一个请求被缓存破坏以强制从源服务器检索,而另一个请求未被缓存破坏,若存在缓存则可能由缓存提供服务。与被缓存破坏的请求相比,未被缓存破坏的请求响应时间更快,表明前者来自缓存。我们将该方法实现为工具,与基于缓存状态头部的最先进方法相比,达到了约89.6%的估计准确率。利用该缓存检测方法,我们在Tranco Top 50k网站上进行了大规模实验。我们发现了大量未通过头部表明自身存在的隐藏缓存(5.8%)。此外,我们运用该方法检测这些隐藏缓存中的Web缓存欺骗(WCD)漏洞。我们发现其中1.020个易受WCD漏洞攻击,可能导致敏感数据泄露。我们的发现证明了时间分析方法在缓存发现中的有效性,并强调了不依赖缓存传达状态头部的工具的重要性。
英文摘要:
Web caches play a crucial role in web performance and scalability. However, detecting cached responses is challenging when web servers do not reliably communicate the cache status through standardized headers. This paper presents a novel methodology for cache detection using timing analysis. Our approach eliminates the dependency on cache status headers, making it applicable to any web server. The methodology relies on sending paired requests using HTTP multiplexing functionality and makes heavy use of cache-busting to control the origin of the responses. By measuring the time it takes to receive responses from paired requests, we can determine if a response is cached or not. In each pair, one request is cache-busted to force retrieval from the origin server, while the other request is not and might be served from the cache, if present. A faster response time for the non-cache-busted request compared to the cache-busted one suggests the first one is coming from the cache. We implemented this approach in a tool and achieved an estimated accuracy of 89.6% compared to state-of-the-art methods based on cache status headers. Leveraging our cache detection approach, we conducted a large-scale experiment on the Tranco Top 50k websites. We identified a significant presence of hidden caches (5.8%) that do not advertise themselves through headers. Additionally, we employed our methodology to detect Web Cache Deception (WCD) vulnerabilities in these hidden caches. We discovered that 1.020 of them are susceptible to WCD vulnerabilities, potentially leaking sensitive data. Our findings demonstrate the effectiveness of our timing analysis methodology for cache discovery and highlight the importance of a tool that does not rely on cache-communicated cache status headers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。