arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.04642cs.CRcs.NI
收藏

使用HSTS-Enforced保护Web安全

Securing the Web with HSTS-Enforced

Delft University of Technology(代尔夫特理工大学)

Aaron van Diepen, Adrian Zapletal, Fernando Kuipers

AI总结:

提出HSTS-Enforced机制,通过将安全模型从选择加入改为选择退出,默认使用HTTPS,并允许网站通过HTTP-Required指示器选择退出,从而消除TLS剥离攻击面,同时保持对需要HTTP的网站的兼容性。

摘要:

TLS剥离攻击通过强制安全的HTTPS连接回退到未加密的HTTP来暴露敏感的Web流量。目前,针对这些攻击的保护依赖于网站运营商通过部署诸如HTTP严格传输安全(HSTS)头等机制明确选择安全。这些机制存在显著局限性:有些机制较弱或难以配置,这增加了配置错误的风险并降低了实际采用率;其他机制违反了HTTP向后兼容性;至少有一种机制甚至可能被滥用以实现非预期的用户跟踪。我们引入了HSTS-Enforced,这是一种消除TLS剥离剩余攻击面的机制,同时仍然允许运营商在必要时安全地指定其网站需要通过HTTP访问,从而保持可访问性。为实现这一点,我们将当前的选择加入安全模型转变为选择退出模型:所有连接默认使用HTTPS,如果运营商需要其网站使用HTTP,则可以使用所谓的HTTP-Required指示器明确选择退出。我们提出了两种这样的HTTP-Required指示器:一种新的DNS记录和一个HTTP-Required预加载列表。我们在多种部署场景下评估了HSTS-Enforced,证明它能够阻止所有实际的TLS剥离尝试,同时保持对需要HTTP的网站的兼容性,且在典型情况下不会引入开销。最后,我们概述了一条实用的过渡路径,以加速全球采用。

英文摘要:

TLS stripping attacks expose sensitive web traffic by forcing secure HTTPS connections to fall back to unencrypted HTTP. At present, protection against these attacks relies on website operators explicitly opting into security by deploying mechanisms such as HTTP Strict Transport Security (HSTS) headers. These mechanisms have significant limitations: some are weak or difficult to configure, which raises the risk of misconfiguration and reduces practical adoption; others violate HTTP backward compatibility; at least one can even be abused to enable unintended user tracking. We introduce HSTS-Enforced, a mechanism that eliminates the remaining attack surface for TLS stripping while still allowing operators to securely specify that their websites need to be accessed over HTTP when necessary, thereby maintaining accessibility. To achieve this, we flip the current opt-in security model to an opt-out model: all connections default to HTTPS, and operators can explicitly opt out if their websites require HTTP using so-called HTTP-Required indicators. We propose two such HTTP-Required indicators: a new DNS record and an HTTP-Required Preload list. We evaluate HSTS-Enforced under multiple deployment scenarios, demonstrating that it blocks all practical TLS stripping attempts while maintaining compatibility for sites that require HTTP - without introducing overhead in the typical case. Finally, we outline a practical transition path to accelerate global adoption.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑