Re:Fuzzing Nginx – Hunting vulnerabilities with afl-fuzz
by mrob on Thursday April 30, 2015 @12:57PM
(#9466235)
Keegan McAllister has got AFL working with Rust code:
https://github.com/kmcallister/afl.rs
Rust is designed to be memory safe by default, but fuzzing is still useful for testing unsafe code, and for finding assertion failures.
What you may want is to use something like `quickcheck` (scalacheck or clojure's test.check I guess?) to send lots of "arbitrary" xml at your code and see what breaks. With sufficiently interesting definitions of "arbitrary" you can probably find bugs.
That approach would be testing inside the process, as opposed to passing in whole http requests. But if you know a section of code is more vulnerable than others, focus on it. No need to test all of tomcat's http parsing when you really care about your specific library.