模糊测试 XML 解析器
我想对 XML 解析器进行模糊测试,并想知道是否有一些合适的模糊器。
如果不仅能生成随机垃圾,还能利用 XSD 或 DTD 等现有模式规范,那就太好了。
I want to fuzz-test a XML-parser and wonder if there are some appropriate fuzzers.
It would be nice not only generate random garbage, but take advantages of existing schema specification like XSD or DTD.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
以下是我在几个月前的搜索过程中偶然发现的一些 XML 模糊器:
untidy。这似乎并没有处于积极的开发中,最后一次更新是在 2007 年。(Sourceforge 上不再提供该项目,后代请参阅 archive.org 获取部分内容,以及packetstorm 可供下载。它已添加到 Peach-1.0 中,但不再出现在 Peach-3.1 社区版源代码中)。Following are some XML fuzzers that I chanced upon, during a search several months back:
untidy. This is does not appear to be in active development, with the last update in 2007. (Project no longer available on Sourceforge, for posterity see archive.org for partial content, and packetstorm for download. It was added to Peach-1.0, but no longer appears in the Peach-3.1 Community Edition source at all).这可能是您认为的“垃圾生成器”,但无论如何我都会请您检查一下。
Radamsa 来自奥卢大学安全编程小组是免费的通用模糊器。你可以很容易地用它进行模糊测试。给它一些示例文件,Radamsa 会为您生成模糊文件。
所包含的不同模糊器可以执行从简单的位翻转到复杂的结构学习和模糊测试。
该代码可以从 Google 代码中找到。
This might be what you consider "garbage generator", but I'll ask you to check it out anyhow.
Radamsa from Oulu University Secure Programming Group is free general purpose fuzzer. You can get fuzzing with it really easily. Give it some example files and Radamsa generates fuzzed files for you.
The different fuzzers included can do from simple bit flips to complex learning of the structure and fuzzing it.
The code can be found from Google Code.
美国模糊 lop 可能是一个不错的选择。它采用遗传算法,学习如何在程序中引入新的代码路径,并提出最大化覆盖范围的测试用例。
american fuzzy lop might be a good choice here. It employs a genetic algorithm that will learn how to induce new code paths in your program and come up with test cases that maximize coverage.