【24h】

PHPIL: Fuzzing the PHP Interpreter with Custom Bytecode

机译:PHPIL:用自定义字节码模糊PHP解释器

获取原文

摘要

We aim to fuzz the PHP interpreter to search for bugs which may or may not be able to compromise the security of the interpreter and the system it is running on. In our research we propose to implement a fuzzing framework for the standard implementation of the PHP interpreter. What makes our fuzzer different from other PHP interpreter fuzzers is the ability to create syntactically and semantically correct code samples. We found in our research that most of the available PHP interpreter fuzzers, although able to create syntactically correct code samples, are unable to produce semantic correctness. We created our own intermediate language composed of custom opcodes, which is used by the code generator to generate the code samples. Code generator is governed by the rules which make sure that the resulting code follows the PHP syntax and symmetric conventions. The mutator is driven by the code generator and it performs the mutation on the generated intermediate language. We created a corpus which is used to store the desired code samples on which further mutations can be performed. Thus new inputs are generated by performing mutations to the code which increases the coverage, thus maximizing the chances of finding vulnerabilities. The lifter lifts the mutated intermediate language sample to the php code before feeding to the interpreter. The execution of the php code sample is monitored for any unexpected behaviour of the interpreter. A report is formed in case of any unexpected behaviour.
机译:我们的目标是使PHP解释器模糊不清,以寻找可能会或可能不会损害解释器及其运行系统安全性的错误。在我们的研究中,我们建议为PHP解释器的标准实现实现模糊测试框架。使我们的模糊器与其他PHP解释器模糊器不同的是,能够创建语法和语义上正确的代码示例。我们在研究中发现,大多数可用的PHP解释器模糊器尽管能够创建语法正确的代码样本,但无法产生语义正确性。我们创建了由定制操作码组成的自己的中间语言,代码生成器使用该中间语言来生成代码样本。代码生成器由规则控制,这些规则确保生成的代码遵循PHP语法和对称约定。增变器由代码生成器驱动,并且对生成的中间语言执行变体。我们创建了一个语料库,该语料库用于存储所需的代码样本,可以在其上执行进一步的突变。因此,通过对代码进行变异来生成新的输入,从而增加了覆盖范围,从而最大程度地提高了发现漏洞的机会。提升程序将变异的中间语言样本提升到php代码,然后再提供给解释程序。监视php代码示例的执行,以了解解释器的任何意外行为。如果出现任何意外行为,将形成报告。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号