arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1812.04959cs.CR
收藏

X.509的系统解析:使用解析树消除安全问题

Systematic Parsing of X.509: Eradicating Security Issues with a Parse Tree

Alessandro Barenghi, Nicholas Mainardi, Gerardo Pelosi

摘要:

X.509证书解析和验证是一项关键任务,但一直缺乏有效性,在过去10年中,实际攻击的报告率稳定。在这项工作中,我们分析了X.509标准,并提供了一个语法描述,它服从自动生成的解析器具有强大的终止保证,提供明确的输入解析。我们报告了在整个IPv4空间上运行的HTTPS服务器的11 M X.509证书转储的分析结果,显示21.5%的证书在语法上无效。我们将我们的解析结果与7个广泛使用的TLS库进行了比较,结果显示631 k到1, 156 k的语法错误证书被他们认为是有效的(5.7%-10.5%),包括安全关键错误解析的实例。我们证明了这种错误解析的关键性,利用现有证书中发现的语法缺陷之一,执行模拟攻击。

英文摘要:

X.509 certificate parsing and validation is a critical task which has shown consistent lack of effectiveness, with practical attacks being reported with a steady rate during the last 10 years. In this work we analyze the X.509 standard and provide a grammar description of it amenable to the automated generation of a parser with strong termination guarantees, providing unambiguous input parsing. We report the results of analyzing a 11M X.509 certificate dump of the HTTPS servers running on the entire IPv4 space, showing that 21.5% of the certificates in use are syntactically invalid. We compare the results of our parsing against 7 widely used TLS libraries showing that 631k to 1,156k syntactically incorrect certificates are deemed valid by them (5.7%--10.5%), including instances with security critical mis-parsings. We prove the criticality of such mis-parsing exploiting one of the syntactic flaws found in existing certificates to perform an impersonation attack.

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

↑