arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2301.08700cs.CRcs.PL
收藏

盲点:自动检测被忽略的程序输入

Blind Spots: Automatically detecting ignored program inputs

Henrik Brodin, Evan Sultanik, Marek Surovič

AI总结:

本文形式化了程序输入盲点的操作语义,提出基于动态信息流跟踪的自动检测技术,在PDF语料库评估中有效发现解析器漏洞、过度宽松性和差异,并可推广至ELF、X.509和XML等格式。

摘要:

盲点是指程序的任何输入,这些输入可以被任意修改而不影响程序的输出。盲点可用于隐写术或嵌入恶意软件载荷。如果盲点与文件格式关键字重叠,它们表明存在解析漏洞,可能导致可利用的差异。例如,可以构造一个文档,在一个查看器中以某种方式渲染,而在另一个查看器中以完全不同的方式渲染。它们也被用于规避Android二进制文件中的代码签名,迫使证书颁发机构行为异常,以及执行HTTP请求走私和参数污染攻击。本文形式化了盲点的操作语义,提出了一种基于动态信息流跟踪的技术,自动检测盲点。我们引入了一种高效的实现,并在通过MuPDF解析的超过一千个多样化PDF组成的语料库上进行了评估,揭示了解析器中的可利用漏洞。所有盲点分类均被确认正确,漏检率不高于11%。平均而言,每个PDF文件至少有5%被解析器完全忽略。我们的结果表明,该技术有望成为检测可利用解析器漏洞、过度宽松性和差异的有效自动化手段。该技术中没有任何内容与PDF特定相关,因此可以立即应用于其他出了名难以解析的格式,如ELF、X.509和XML。

英文摘要:

A blind spot is any input to a program that can be arbitrarily mutated without affecting the program's output. Blind spots can be used for steganography or to embed malware payloads. If blind spots overlap file format keywords, they indicate parsing bugs that can lead to exploitable differentials. For example, one could craft a document that renders one way in one viewer and a completely different way in another viewer. They have also been used to circumvent code signing in Android binaries, to coerce certificate authorities to misbehave, and to execute HTTP request smuggling and parameter pollution attacks. This paper formalizes the operational semantics of blind spots, leading to a technique based on dynamic information flow tracking that automatically detects blind spots. An efficient implementation is introduced and evaluated against a corpus of over a thousand diverse PDFs parsed through MuPDF, revealing exploitable bugs in the parser. All of the blind spot classifications are confirmed to be correct and the missed detection rate is no higher than 11%. On average, at least 5% of each PDF file is completely ignored by the parser. Our results show promise that this technique is an efficient automated means to detect exploitable parser bugs, over-permissiveness and differentials. Nothing in the technique is tied to PDF in general, so it can be immediately applied to other notoriously difficult-to-parse formats like ELF, X.509, and XML.

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

↑