Home | History | Annotate | only in /external/honggfuzz
Up to higher level directory
NameDateSize
Android.bp22-Oct-20202K
arch.h22-Oct-20201.1K
CHANGELOG22-Oct-20205.8K
cmdline.c22-Oct-202028.4K
cmdline.h22-Oct-20201.1K
CONTRIBUTING22-Oct-20201.4K
COPYING22-Oct-202011.1K
display.c22-Oct-202011.2K
display.h22-Oct-2020976
Dockerfile22-Oct-2020342
docs/22-Oct-2020
examples/22-Oct-2020
fuzz.c22-Oct-202017.7K
fuzz.h22-Oct-20201,019
hfuzz_cc/22-Oct-2020
honggfuzz.c22-Oct-202010K
honggfuzz.h22-Oct-202011.3K
includes/22-Oct-2020
input.c22-Oct-202012.9K
input.h22-Oct-20201.3K
libhfcommon/22-Oct-2020
libhfnetdriver/22-Oct-2020
libhfuzz/22-Oct-2020
LICENSE22-Oct-202011.1K
linux/22-Oct-2020
mac/22-Oct-2020
Makefile22-Oct-202019.6K
mangle.c22-Oct-202035.8K
mangle.h22-Oct-2020888
METADATA22-Oct-2020413
MODULE_LICENSE_APACHE222-Oct-20200
netbsd/22-Oct-2020
NOTICE22-Oct-202011.1K
OWNERS22-Oct-2020162
posix/22-Oct-2020
README.md22-Oct-202010.6K
report.c22-Oct-20204.2K
report.h22-Oct-2020866
sanitizers.c22-Oct-20205.8K
sanitizers.h22-Oct-2020971
screenshot-honggfuzz-1.png22-Oct-2020576.6K
socketfuzzer/22-Oct-2020
socketfuzzer.c22-Oct-20203.9K
socketfuzzer.h22-Oct-2020331
subproc.c22-Oct-202016.5K
subproc.h22-Oct-20201.4K
third_party/22-Oct-2020
tools/22-Oct-2020

README.md

      1 # honggfuzz
      2 
      3 ## Description
      4 
      5 A security oriented, feedback-driven, evolutionary, easy-to-use fuzzer with interesting analysis options. See [USAGE](https://github.com/google/honggfuzz/blob/master/docs/USAGE.md) for the description of command-line options.
      6 
      7   * It's __multi-process__ and __multi-threaded__: no need to run multiple copies of your fuzzer, as honggfuzz can unlock potential of all your available CPU cores with a single supervising process. The file corpus is automatically shared and improved between the fuzzing threads and fuzzed processes.
      8   * It's blazingly fast when in the [persistent fuzzing mode](https://github.com/google/honggfuzz/blob/master/docs/PersistentFuzzing.md)). A simple/empty _LLVMFuzzerTestOneInput_ function can be tested with __up to 1mo iterations per second__ on a relatively modern CPU (e.g. i7-6700K)
      9   * Has a [solid track record](#trophies) of uncovered security bugs: the __only__ (to the date) __vulnerability in OpenSSL with the [critical](https://www.openssl.org/news/secadv/20160926.txt) score mark__ was discovered by honggfuzz. See the [Trophies](#trophies) paragraph for the summary of findings to the date
     10   * Uses low-level interfaces to monitor processes (e.g. _ptrace_ under Linux and NetBSD). As opposed to other fuzzers, it __will discover and report hijacked/ignored signals from crashes__ (intercepted and potentially hidden by a fuzzed program)
     11   * Easy-to-use, feed it a simple corpus directory (can even be empty) and it will work its way up expanding it utilizing feedback-based coverage metrics
     12   * Supports several (more than any other coverage-based feedback-driven fuzzer) hardware-based (CPU: branch/instruction counting, __Intel BTS__, __Intel PT__) and software-based [feedback-driven fuzzing](https://github.com/google/honggfuzz/blob/master/docs/FeedbackDrivenFuzzing.md) methods known from other fuzzers (libfuzzer, afl)
     13   * Works (at least) under GNU/Linux, FreeBSD, NetBSD, Mac OS X, Windows/CygWin and [Android](https://github.com/google/honggfuzz/blob/master/docs/Android.md)
     14   * Supports the __persistent fuzzing mode__ (long-lived process calling a fuzzed API repeatedly) with libhfuzz/libhfuzz.a. More on that can be found [here](https://github.com/google/honggfuzz/blob/master/docs/PersistentFuzzing.md)
     15   * It comes with the __[examples](https://github.com/google/honggfuzz/tree/master/examples) directory__, consisting of real world fuzz setups for widely-used software (e.g. Apache and OpenSSL)
     16 
     17 ---
     18 
     19 <p align="center">
     20  <img src="https://raw.githubusercontent.com/google/honggfuzz/master/screenshot-honggfuzz-1.png" width="75%" height="75%">
     21 </p>
     22 
     23 ---
     24 
     25 ## Code
     26 
     27   * Latest stable version: [1.8](https://github.com/google/honggfuzz/releases)
     28   * [Changelog](https://github.com/google/honggfuzz/blob/master/CHANGELOG)
     29 
     30 ## Requirements
     31 
     32   * **Linux** - The BFD library (libbfd-dev) and libunwind (libunwind-dev/libunwind8-dev), clang-4.0 or higher for software-based coverage modes
     33   * **FreeBSD** - gmake, clang-3.6 or newer (clang-devel/4.0 suggested)
     34   * **NetBSD** - gmake, clang, capstone, libBlocksRuntime
     35   * **Android** - Android SDK/NDK. Also see [this detailed doc](https://github.com/google/honggfuzz/blob/master/docs/Android.md) on how to build and run it
     36   * **Windows** - CygWin
     37   * **Darwin/OS X** - Xcode 10.8+
     38   * if **Clang/LLVM** is used to compile honggfuzz - link it with the BlocksRuntime Library (libblocksruntime-dev)
     39 
     40 
     41 ## Trophies
     42 
     43 Honggfuzz has been used to find a few interesting security problems in major software packages; An incomplete list:
     44 
     45   * [Pre-auth remote crash in __OpenSSH__](https://anongit.mindrot.org/openssh.git/commit/?id=28652bca29046f62c7045e933e6b931de1d16737)
     46   * __Apache HTTPD__
     47     * [Remote crash in __mod\_http2__  CVE-2017-7659](http://seclists.org/oss-sec/2017/q2/504)
     48     * [Use-after-free in __mod\_http2__  CVE-2017-9789](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9789)
     49     * [Memory leak in __mod\_auth\_digest__  CVE-2017-9788](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9788)
     50     * [Out of bound access  CVE-2018-1301](http://seclists.org/oss-sec/2018/q1/265)
     51     * [Write after free in HTTP/2  CVE-2018-1302](http://seclists.org/oss-sec/2018/q1/268)
     52     * [Out of bound read  CVE-2018-1303](http://seclists.org/oss-sec/2018/q1/266)
     53   * Various __SSL__ libs
     54     * [Remote OOB read in __OpenSSL__  CVE-2015-1789]( https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-1789)
     55     * [Remote Use-after-Free (potential RCE, rated as __critical__) in __OpenSSL__  CVE-2016-6309](https://www.openssl.org/news/secadv/20160926.txt)
     56     * [Remote OOB write in __OpenSSL__  CVE-2016-7054](https://www.openssl.org/news/secadv/20161110.txt)
     57     * [Remote OOB read in __OpenSSL__  CVE-2017-3731](https://www.openssl.org/news/secadv/20170126.txt)
     58     * [Uninitialized mem use in __OpenSSL__](https://github.com/openssl/openssl/commit/bd5d27c1c6d3f83464ddf5124f18a2cac2cbb37f)
     59     * [Crash in __LibreSSL__](https://github.com/openbsd/src/commit/c80d04452814d5b0e397817ce4ed34edb4eb520d)
     60     * [Invalid free in __LibreSSL__](https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.6.2-relnotes.txt)
     61     * [Uninitialized mem use in __BoringSSL__](https://github.com/boringssl/boringssl/commit/7dccc71e08105b100c3acd56fa5f6fc1ba9b71d3)
     62   * [Adobe __Flash__ memory corruption  CVE-2015-0316](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-0316)
     63   * [Multiple bugs in the __libtiff__ library](http://bugzilla.maptools.org/buglist.cgi?query_format=advanced;emailreporter1=1;email1=robert@swiecki.net;product=libtiff;emailtype1=substring)
     64   * [Multiple bugs in the __librsvg__ library](https://bugzilla.gnome.org/buglist.cgi?query_format=advanced;emailreporter1=1;email1=robert%40swiecki.net;product=librsvg;emailtype1=substring)
     65   * [Multiple bugs in the __poppler__ library](http://lists.freedesktop.org/archives/poppler/2010-November/006726.html)
     66   * [Multiple exploitable bugs in __IDA-Pro__](https://www.hex-rays.com/bugbounty.shtml)
     67   * [Remote DoS in __Crypto++__  CVE-2016-9939](http://www.openwall.com/lists/oss-security/2016/12/12/7)
     68   * Programming language interpreters
     69     * [__PHP/Python/Ruby__](https://github.com/dyjakan/interpreter-bugs)
     70     * [PHP WDDX](https://bugs.php.net/bug.php?id=74145)
     71     * [PHP](https://bugs.php.net/bug.php?id=74194)
     72     * [Perl](https://www.nntp.perl.org/group/perl.perl5.porters/2018/03/msg250072.html)
     73   * [Double-free in __LibXMP__](https://github.com/cmatsuoka/libxmp/commit/bd1eb5cfcd802820073504c234c3f735e96c3355)
     74   * [Heap buffer overflow in SAPCAR  CVE-2017-8852](https://www.coresecurity.com/blog/sapcar-heap-buffer-overflow-crash-exploit)
     75   * [Crashes in __libbass__](http://seclists.org/oss-sec/2017/q4/185)
     76   * __FreeType 2__:
     77     * [CVE-2010-2497](https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-2497)
     78     * [CVE-2010-2498](https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-2498)
     79     * [CVE-2010-2499](https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-2499)
     80     * [CVE-2010-2500](https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-2500)
     81     * [CVE-2010-2519](https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-2519)
     82     * [CVE-2010-2520](https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-2520)
     83     * [CVE-2010-2527](https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-2527)
     84   * [Infinite loop in __NGINX Unit__](https://github.com/nginx/unit/commit/477e8177b70acb694759e62d830b8a311a736324)
     85   * A couple of problems in the [__MATLAB MAT File I/O Library__](https://sourceforge.net/projects/matio): [#1](https://github.com/tbeu/matio/commit/406438f497931f45fb3edf6de17d3a59a922c257), [#2](https://github.com/tbeu/matio/commit/406438f497931f45fb3edf6de17d3a59a922c257), [#3](https://github.com/tbeu/matio/commit/a55b9c2c01582b712d5a643699a13b5c41687db1), [#4](https://github.com/tbeu/matio/commit/3e6283f37652e29e457ab9467f7738a562594b6b), [#5](https://github.com/tbeu/matio/commit/783ee496a6914df68e77e6019054ad91e8ed6420)
     86   * [Samba's tdbdump + tdbtool](http://seclists.org/oss-sec/2018/q2/206)
     87   * [Crash in __djvulibre__](https://github.com/barak/djvulibre/commit/89d71b01d606e57ecec2c2930c145bb20ba5bbe3)
     88   * __Rust__:
     89     * panic() in regex [#1](https://github.com/rust-lang/regex/issues/464), [#2](https://github.com/rust-lang/regex/issues/465), [#3](https://github.com/rust-lang/regex/issues/465#issuecomment-381412816)
     90     * panic() in h2 [#1](https://github.com/carllerche/h2/pull/260), [#2](https://github.com/carllerche/h2/pull/261), [#3](https://github.com/carllerche/h2/pull/262)
     91     * panic() in sleep-parser [#1](https://github.com/datrs/sleep-parser/issues/3)
     92     * panic() in lewton [#1](https://github.com/RustAudio/lewton/issues/27)
     93   * ... and more
     94 
     95 ## Projects utilizing Honggfuzz
     96 
     97   * [__QuickFuzz__ by CIFASIS](http://quickfuzz.org)
     98   * [__OSS-Fuzz__](https://github.com/google/oss-fuzz)
     99   * [__Frog And Fuzz__](https://github.com/warsang/FrogAndFuzz/tree/develop)
    100   * [dyjakan's __interpreters fuzzing__ project](https://github.com/dyjakan/interpreter-bugs)
    101   * [__riufuzz__: honggfuzz with AFL-like UI](https://github.com/riusksk/riufuzz)
    102   * [__h2fuzz__: fuzzing Apache's HTTP/2 implementation](https://github.com/icing/h2fuzz)
    103   * [__honggfuzz-dharma__: honggfuzz with dharma grammar fuzzer](https://github.com/Sbouber/honggfuzz-dharma)
    104   * [__Owl__: a system for finding concurrency attacks](https://github.com/hku-systems/owl)
    105   * [__honggfuzz-docker-apps__](https://github.com/skysider/honggfuzz_docker_apps)
    106   * [__FFW - Fuzzing For Worms__](https://github.com/dobin/ffw)
    107   * [__honggfuzz-rs__: fuzzing Rust with Honggfuzz](https://github.com/rust-fuzz/honggfuzz-rs)
    108   * [__roughenough-fuzz__](https://github.com/int08h/roughenough-fuzz)
    109   * [__Rust's fuzztest__](https://docs.rs/crate/fuzztest)
    110   * [__Monkey__: a HTTP server](https://github.com/monkey/monkey/blob/master/FUZZ.md)
    111   * [__Killerbeez API__](https://github.com/grimm-co/killerbeez-mutators)
    112   * [__FuzzM__: a gray box model-based fuzzing framework](https://github.com/collins-research/FuzzM)
    113   * [__FuzzOS__: by Mozilla Security](https://github.com/MozillaSecurity/fuzzos)
    114   * [__Android__: by OHA](https://android.googlesource.com/platform/external/honggfuzz)
    115 
    116 ## Examples
    117 
    118 The [examples](https://github.com/google/honggfuzz/tree/master/examples/)
    119 directory contains code demonstrating (among others) how to use honggfuzz to find bugs in the
    120 [OpenSSL](https://github.com/google/honggfuzz/tree/master/examples/openssl)
    121 library and in the [Apache](https://github.com/google/honggfuzz/tree/master/examples/apache-httpd)
    122 HTTPD web server.
    123 
    124 ## Other
    125 
    126   * User mailing list: [honggfuzz (a] googlegroups.com](mailto:honggfuzz (a] googlegroups.com), sign up with [this link](https://groups.google.com/forum/#!forum/honggfuzz).
    127 
    128 __This is NOT an official Google product__
    129