News for hackers. Stuff that matters.
Re:Generating Software Tests: Breaking Software for Fun and ... by slow_donkey on Monday November 05, 2018 @12:37PM (#18384182)
At risk of sounding ignorant but has anyone fuzzed something like APIs before? Would love to get some anecdotes from fuzzing more abstracted systems.
Re:Generating Software Tests: Breaking Software for Fun and ... by paulgdp on Monday November 05, 2018 @02:16PM (#18385045)
The Rust ecosystem has a team that tries to fuzz as many crates (rust packages) as possible [1].

Unlike C/C++ and like Python, fuzzing Rust code is not really about finding memory bugs but more about finding logical errors [2].

To do this, a project has been set up with 83 (so far) targets fuzzing the public API of 48 (so far) important crates [3].

All those targets can be fuzzed using any of the three major native code feedback-based fuzzers (AFL, LibFuzzer, and Honggfuzz).

[1] https://github.com/rust-fuzz/targets

[2] see the trophy case: https://github.com/rust-fuzz/trophy-case

[3] https://github.com/rust-fuzz/targets/blob/master/common/src/...

Disclaimer: I'm a member of this team and the author of the honggfuzz crate that makes honggfuzz work with Rust code.

Re:Generating Software Tests: Breaking Software for Fun and ... by cpeterso on Monday November 05, 2018 @06:48PM (#18387049)
And Cargo has good support for integrating Rust fuzzers into one's own projects:

https://medium.com/@seasoned_sw/fuzz-testing-in-rust-with-ca...

btw, I'm impressed that the rust-fuzz trophy list includes only one UAF, one uninitialized memory read, and no segfaults. :)

https://github.com/rust-fuzz/trophy-case

Re:Generating Software Tests: Breaking Software for Fun and ... by QuinnWilton on Monday November 05, 2018 @09:29PM (#18387855)
I'm an engineer at Tinfoil Security, working on a security scanner for REST APIs. At a high level, it ingests Swagger specifications, which it uses to build property testing generators to test the implementation against the schema + against various security tests.

It isn't ready for public consumption yet, but we have a few customers using a private beta.

We're still exploring the problem space, but so far it has been very successful at quickly confirming an API conforms to its specification, and automating the detection of most "input validation" bugs.

Re:Generating Software Tests: Breaking Software for Fun and ... by paulgdp on Monday November 05, 2018 @02:27PM (#18385129)
Also, for a toy rust project, I wrote an implementation of a copy-on-write B+tree and I used a fuzzer (honggfuzz) to generate automatically all the test cases.

Ii was insanely effective, there were so much more edge cases than I thought. The fuzzer found all of them and got me a 100% code coverage in no time.

All I had to write as test code was a function mapping an array of random data to a series of btree instructions, apply those to both my implementation and a reference and then check that the two structures had the same data.

Re:Generating Software Tests: Breaking Software for Fun and ... by Joky on Monday November 05, 2018 @04:36PM (#18386217)
Re:Generating Software Tests: Breaking Software for Fun and ... by bch on Monday November 05, 2018 @01:39PM (#18384714)