Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Fuzzer details

Fuzzer: fuzz_helpers

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 12 18.1%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 54 81.8%
All colors 66 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
6 24 ...fuzz_helpers.TestInput call site: 00024 fdp.ConsumeUnicodeNoSurrogates
2 3 oauth2client._helpers.scopes_to_string call site: 00003 fdp.ConsumeUnicodeNoSurrogates
1 32 oauth2client._helpers._add_query_parameter call site: 00032 fdp.ConsumeUnicodeNoSurrogates
1 34 ...fuzz_helpers.TestInput call site: 00034 fdp.ConsumeUnicodeNoSurrogates
1 48 oauth2client._helpers._to_bytes call site: 00048 .isinstance
1 53 oauth2client._helpers._from_bytes call site: 00053 .isinstance

Runtime coverage analysis

Covered functions
17
Functions that are reachable but not covered
24
Reachable functions
35
Percentage of reachable functions covered
31.43%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/ 1
...fuzz_helpers 14
oauth2client._helpers 23

Analyses and suggestions

Optimal target analysis

Remaining optimal interesting functions

The following table shows a list of functions that are optimal targets. Optimal targets are identified by finding the functions that in combination, yield a high code coverage.

Func name Functions filename Arg count Args Function depth hitcount instr count bb count cyclomatic complexity Reachable functions Incoming references total cyclomatic complexity Unreached complexity
oauth2client.contrib.appengine.OAuth2Decorator.oauth_required.check_oauth oauth2client.contrib.appengine 3 ['N/A', 'N/A', 'N/A'] 6 0 3 3 4 106 0 334 280
oauth2client.client.verify_id_token oauth2client.client 4 ['N/A', 'N/A', 'N/A', 'N/A'] 6 0 2 2 4 51 0 161 116
oauth2client.transport.wrap_http_for_auth.new_request oauth2client.transport 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 8 4 5 58 0 182 104
oauth2client.contrib.appengine.OAuth2Decorator.callback_handler.OAuth2Handler.get oauth2client.contrib.appengine 1 ['N/A'] 5 0 5 3 4 85 0 272 94
oauth2client.contrib.django_util.views.oauth2_authorize oauth2client.contrib.django_util.views 1 ['N/A'] 9 0 1 4 5 105 0 331 74
oauth2client.contrib.flask_util.UserOAuth2.init_app oauth2client.contrib.flask_util 9 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 3 0 3 2 4 19 1 65 56
oauth2client.tools.run_flow oauth2client.tools 4 ['N/A', 'N/A', 'N/A', 'N/A'] 1 0 14 8 6 15 0 51 45
oauth2client.client.save_to_well_known_file oauth2client.client 2 ['N/A', 'N/A'] 2 0 2 2 4 13 0 44 41
oauth2client.client.OAuth2Credentials._do_revoke oauth2client.client 3 ['N/A', 'N/A', 'N/A'] 4 0 3 4 5 31 4 99 35

Implementing fuzzers that target the above functions will improve reachability such that it becomes:

Functions statically reachable by fuzzers
35.0%
119 / 338
Cyclomatic complexity statically reachable by fuzzers
37.0%
406 / 1111

All functions overview

If you implement fuzzers for these functions, the status of all functions in the project will be:

Func name Functions filename Args Function call depth Reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Files and Directories in report

This section shows which files and directories are considered in this report. The main reason for showing this is fuzz introspector may include more code in the reasoning than is desired. This section helps identify if too many files/directories are included, e.g. third party code, which may be irrelevant for the threat model. In the event too much is included, fuzz introspector supports a configuration file that can exclude data from the report. See the following link for more information on how to create a config file: link

Files in report

Source file Reached by Covered by
[] []
oauth2client.contrib.django_util.apps [] []
oauth2client.contrib.xsrfutil [] []
oauth2client.contrib.appengine [] []
oauth2client.tools [] []
oauth2client.contrib.keyring_storage [] []
keyring [] []
oauth2client.crypt [] []
oauth2client.contrib [] []
datetime [] []
rsa [] []
socket [] []
oauth2client.contrib.django_util.site [] []
oauth2client.client [] []
fasteners [] []
oauth2client.contrib.django_util.decorators [] []
oauth2client.service_account [] []
cgi [] []
threading [] []
oauth2client.contrib._appengine_ndb [] []
oauth2client.contrib.flask_util [] []
logging [] []
markupsafe [] []
...fuzz_helpers ['fuzz_helpers'] []
functools [] []
Crypto [] []
pyasn1_modules [] []
oauth2client.clientsecrets [] []
oauth2client._helpers ['fuzz_helpers'] []
oauth2client.contrib.django_util [] []
inspect [] []
webbrowser [] []
flask [] []
oauth2client.contrib.multiprocess_file_storage [] []
tempfile [] []
oauth2client.contrib.django_util.views [] []
os [] []
oauth2client.contrib.django_util.signals [] []
json [] []
pickle [] []
oauth2client._openssl_crypt [] []
webapp2 [] []
base64 [] []
oauth2client._pycrypto_crypt [] []
oauth2client._pkce [] []
copy [] []
importlib [] []
oauth2client.contrib.sqlalchemy [] []
OpenSSL [] []
google [] []
oauth2client.contrib.django_util.models [] []
sys [] []
oauth2client.contrib._metadata [] []
atheris [] []
hashlib [] []
oauth2client.contrib.django_util.storage [] []
oauth2client.contrib.gce [] []
oauth2client.contrib.dictionary_storage [] []
pyasn1 [] []
hmac [] []
oauth2client [] []
argparse [] []
shutil [] []
six [] []
time [] []
httplib2 [] []
oauth2client.transport [] []
collections [] []
jsonpickle [] []
warnings [] []
oauth2client.file [] []
oauth2client.contrib.devshell [] []
[] []
oauth2client._pure_python_crypt [] []
django [] []

Directories in report

Directory