基于Web API模式的语义感知模糊器
Deriving Semantics-Aware Fuzzers from Web API Schemas
摘要:
Fuzzing --无论是生成输入还是改变输入--都在广泛的领域中发现了许多错误和安全漏洞。有状态和高度结构化的Web API对传统的模糊技术提出了重大挑战,因为执行反馈通常仅限于响应代码而不是代码覆盖率,并且感兴趣的漏洞除了显式错误之外还包括无声的信息泄露。我们的工具Schemathesis使用基于属性的测试工具,从OpenAPI或GraphQL格式的Web API模式中导出结构和语义感知模糊器。派生的模糊器可以合并到单元测试套件中或直接运行,有或没有最终用户定制的数据生成和语义检查。我们构建了迄今为止最全面的Web API模糊器评估,对16个真实世界的开源Web服务运行8个模糊器。在野外发现的OpenAPI模式有一个罕见的特征和复杂结构的长尾。在我们评估的工具中,Schemathesis是唯一一个处理超过三分之二的目标服务而没有致命内部错误的工具。图式发现1.4倍至4.5倍以上的独特的缺陷,分别为每个目标的第二个最好的模糊,是唯一的模糊发现缺陷的四个目标。
英文摘要:
Fuzzing -- whether generating or mutating inputs -- has found many bugs and security vulnerabilities in a wide range of domains. Stateful and highly structured web APIs present significant challenges to traditional fuzzing techniques, as execution feedback is usually limited to a response code instead of code coverage and vulnerabilities of interest include silent information-disclosure in addition to explicit errors. Our tool, Schemathesis, derives structure- and semantics-aware fuzzers from web API schemas in the OpenAPI or GraphQL formats, using property-based testing tools. Derived fuzzers can be incorporated into unit-test suites or run directly, with or without end-user customisation of data generation and semantic checks. We construct the most comprehensive evaluation of web API fuzzers to date, running eight fuzzers against sixteen real-world open source web services. OpenAPI schemas found in the wild have a long tail of rare features and complex structures. Of the tools we evaluated, Schemathesis was the only one to handle more than two-thirds of our target services without a fatal internal error. Schemathesis finds 1.4 times to 4.5 times more unique defects than the respectively second-best fuzzer for each target, and is the only fuzzer to find defects in four targets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。