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

Fuzzer details

Fuzzer: fuzz_oauth1_sig

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 14 19.7%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 57 80.2%
All colors 71 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
4 66 oauthlib.oauth1.rfc5849.signature._prepare_key_plus call site: 00066 urllib.parse.quote.encode
3 49 oauthlib.common.safe_string_equals call site: 00049 .zip
2 2 ...fuzz_oauth1_sig.TestOneInput call site: 00002 fdp.ConsumeUnicodeNoSurrogates
2 25 oauthlib.oauth1.rfc5849.signature.base_string_uri call site: 00025 host.lower
1 6 ...fuzz_oauth1_sig.TestOneInput call site: 00006 fdp.ConsumeUnicodeNoSurrogates
1 17 oauthlib.common.quote call site: 00017 urllib.parse.quote.decode
1 64 oauthlib.oauth1.rfc5849.signature._prepare_key_plus call site: 00064 keystr.decode

Runtime coverage analysis

Covered functions
47
Functions that are reachable but not covered
29
Reachable functions
44
Percentage of reachable functions covered
34.09%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/ 1
...fuzz_oauth1_sig 5
oauthlib.oauth1.rfc5849.signature 32
oauthlib.oauth1.rfc5849.utils 2
oauthlib.common 7

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
oauthlib.oauth1.rfc5849.Client.sign oauthlib.oauth1.rfc5849 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 3 6 5 93 0 299 232
oauthlib.oauth2.rfc6749.endpoints.base.catch_errors_and_unavailability.wrapper oauthlib.oauth2.rfc6749.endpoints.base 4 ['N/A', 'N/A', 'N/A', 'N/A'] 6 0 2 2 4 62 0 207 131
oauthlib.oauth2.rfc6749.grant_types.implicit.ImplicitGrant.create_token_response oauthlib.oauth2.rfc6749.grant_types.implicit 3 ['N/A', 'N/A', 'N/A'] 4 0 5 2 4 34 2 114 68
oauthlib.oauth1.rfc5849.endpoints.resource.ResourceEndpoint.validate_protected_resource_request oauthlib.oauth1.rfc5849.endpoints.resource 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 5 0 8 6 5 96 0 311 58
oauthlib.oauth2.rfc6749.tokens.prepare_mac_header oauthlib.oauth2.rfc6749.tokens 11 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 3 0 16 10 7 27 1 88 46
oauthlib.oauth2.rfc6749.endpoints.metadata.MetadataEndpoint.validate_metadata_server oauthlib.oauth2.rfc6749.endpoints.metadata 1 ['N/A'] 3 0 14 4 5 15 1 55 43
oauthlib.oauth2.rfc6749.parameters.parse_token_response oauthlib.oauth2.rfc6749.parameters 2 ['N/A', 'N/A'] 3 0 3 5 5 20 1 69 41

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

Functions statically reachable by fuzzers
25.0%
99 / 389
Cyclomatic complexity statically reachable by fuzzers
28.0%
362 / 1304

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
[] []
datetime [] []
random [] []
oauthlib.openid.connect.core [] []
oauthlib.oauth2.rfc6749.utils [] []
oauthlib.openid.connect.core.grant_types.base [] []
oauthlib.openid.connect.core.grant_types.hybrid [] []
oauthlib.oauth1.rfc5849.endpoints [] []
...fuzz_oauth1_sig ['fuzz_oauth1_sig'] []
warnings [] []
oauthlib.openid.connect.core.grant_types.authorization_code [] []
oauthlib.oauth1.rfc5849.request_validator [] []
oauthlib.oauth1.rfc5849.endpoints.request_token [] []
oauthlib.openid [] []
jwt [] []
oauthlib.oauth2.rfc6749.parameters [] []
AccessTokenEndpoint [] []
oauthlib.oauth2.rfc6749 [] []
oauthlib.oauth1.rfc5849.parameters [] []
oauthlib.oauth2.rfc6749.grant_types [] []
oauthlib.oauth1.rfc5849.endpoints.resource [] []
blinker [] []
oauthlib.openid.connect.core.grant_types.refresh_token [] []
urllib [] []
oauthlib.oauth2.rfc6749.endpoints.authorization [] []
oauthlib.openid.connect.core.request_validator [] []
oauthlib.oauth2.rfc6749.endpoints.pre_configured [] []
re [] []
oauthlib.oauth2.rfc8628 [] []
oauthlib [] []
oauthlib.oauth2.rfc6749.grant_types.implicit [] []
oauthlib.openid.connect [] []
oauthlib.oauth2.rfc6749.endpoints.resource [] []
oauthlib.oauth2.rfc6749.tokens [] []
os [] []
oauthlib.oauth1.rfc5849.signature ['fuzz_oauth1_sig'] []
oauthlib.oauth2.rfc6749.clients.service_application [] []
secrets [] []
oauthlib.oauth2.rfc6749.endpoints.token [] []
oauthlib.oauth2.rfc6749.grant_types.client_credentials [] []
oauthlib.openid.connect.core.exceptions [] []
oauthlib.oauth2.rfc6749.request_validator [] []
time [] []
oauthlib.openid.connect.core.endpoints [] []
oauthlib.oauth1.rfc5849.endpoints.signature_only [] []
oauthlib.oauth2.rfc6749.endpoints.introspect [] []
contextlib [] []
copy [] []
base64 [] []
oauthlib.oauth1.rfc5849.endpoints.access_token [] []
oauthlib.openid.connect.core.endpoints.pre_configured [] []
get_debug [] []
binascii [] []
atheris [] []
oauthlib.oauth2.rfc6749.clients.base [] []
oauthlib.oauth1.rfc5849.endpoints.authorization [] []
oauthlib.oauth1 [] []
oauthlib.uri_validate [] []
[] []
ipaddress [] []
oauthlib.openid.connect.core.grant_types.dispatchers [] []
oauthlib.oauth2.rfc6749.grant_types.resource_owner_password_credentials [] []
inspect [] []
logging [] []
oauthlib.oauth2 [] []
oauthlib.oauth1.rfc5849.endpoints.pre_configured [] []
json [] []
oauthlib.oauth2.rfc8628.clients.device [] []
oauthlib.oauth1.rfc5849 [] []
oauthlib.oauth2.rfc6749.endpoints.base [] []
oauthlib.oauth1.rfc5849.utils ['fuzz_oauth1_sig'] []
ResourceEndpoint [] []
oauthlib.oauth2.rfc6749.endpoints.metadata [] []
oauthlib.oauth1.rfc5849.endpoints.base [] []
oauthlib.openid.connect.core.tokens [] []
oauthlib.oauth2.rfc6749.endpoints [] []
oauthlib.oauth2.rfc6749.grant_types.base [] []
oauthlib.oauth2.rfc6749.grant_types.authorization_code [] []
collections [] []
hashlib [] []
oauthlib.oauth2.rfc6749.clients.legacy_application [] []
hmac [] []
functools [] []
oauthlib.signals [] []
oauthlib.oauth2.rfc6749.clients.backend_application [] []
oauthlib.oauth2.rfc6749.clients [] []
oauthlib.oauth1.rfc5849.errors [] []
RequestTokenEndpoint [] []
AuthorizationEndpoint [] []
oauthlib.openid.connect.core.endpoints.userinfo [] []
oauthlib.openid.connect.core.grant_types [] []
oauthlib.oauth2.rfc6749.endpoints.revocation [] []
oauthlib.openid.connect.core.grant_types.implicit [] []
oauthlib.oauth2.rfc6749.clients.web_application [] []
oauthlib.common ['fuzz_oauth1_sig'] []
oauthlib.oauth2.rfc6749.clients.mobile_application [] []
oauthlib.oauth2.rfc6749.grant_types.refresh_token [] []
itertools [] []
oauthlib.oauth2.rfc6749.errors [] []
oauthlib.oauth2.rfc8628.clients [] []

Directories in report

Directory