Certificate Hostname Validation Bypass via Leading Dot in Hostname
该报告还没有中文解读。
原文摘录
摘自原文(2428 字符中的一小部分)
A hostname validation bypass in libcurl's wildcard certificate matching. The hostmatch() function fails to handle hostnames starting with a dot, causing .example.com to match *.example.com.
原文中的代码
#!/bin/bash
CURL="${1:-curl}"
PORT=9443
cat > /tmp/san.cnf << 'EOF'
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
CN = *.test.local
[v3_req]
subjectAltName = DNS:*.test.local
EOF
openssl req -x509 -newkey rsa:2048 -keyout …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @4bccc · 版权归作者与 curl 所有