HSTS multi-trailing-dot bypass-ish: possible incomplete fix for CVE-2022-30115
该报告还没有中文解读。
原文摘录
摘自原文(5158 字符中的一小部分)
Honestly, I'm not completely certain about this issue, but I _think_ the CVE-2022-30115 fix ("HSTS bypass via trailing dot") is incomplete: the same asymmetry exists for hostnames with two or more trailing dots, so `http://example.com../` still gets sent in plaintext when there's a valid HSTS entry …原文中的代码
echo 'example.com "29991231 23:59:59"' > /tmp/hsts.txt
for H in 'example.com' 'example.com.' 'example.com..'; do
echo "=== http://$H/ ===";
./src/curl -sv --hsts /tmp/hsts.txt \
--resolve "$H:80:127.0.0.1" --resolve "$H:443:127.0.0.1" \
--max-time 1 --connect-timeout 1 -o /dev/null …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @giant_anteater · 版权归作者与 curl 所有