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

Project functions overview

The following table shows data about each function in the project. The functions included in this table correspond to all functions that exist in the executables of the fuzzers. As such, there may be functions that are from third-party libraries.

For further technical details on the meaning of columns in the below table, please see the Glossary .

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined 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

Fuzzer details

Fuzzer: fuzz_flask_wtf

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 19 24.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 60 75.9%
All colors 79 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
7 55 ...fuzz_flask_wtf.fuzz_csrf call site: 00055 flask_wtf.csrf._get_config
4 8 flask_wtf.i18n._get_translations call site: 00008 os.path.abspath
2 5 flask_wtf.i18n.Translations.gettext call site: 00005 .getattr
2 71 flask_wtf.csrf.generate_csrf call site: 00071 os.urandom
1 28 flask.app.Flask.__init__ call site: 00028 flask.sansio.scaffold._endpoint_from_view_func
1 42 flask.app.Flask.test_request_context call site: 00042 .bool
1 45 flask.testing.EnvironBuilder.__init__ call site: 00045 app_root.lstrip
1 75 flask_wtf.csrf.generate_csrf call site: 00075 g.get

Runtime coverage analysis

Covered functions
265
Functions that are reachable but not covered
43
Reachable functions
57
Percentage of reachable functions covered
24.56%
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_flask_wtf 12
flask_wtf.i18n 7
wtforms.i18n 4
flask.app 11
flask.sansio.app 8
flask.testing 5
flask.ctx 2
flask_wtf.csrf 10

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
flask.app.Flask.wsgi_app flask.app 3 ['N/A', 'N/A', 'N/A'] 6 0 5 2 4 61 1 210 187
flask.sansio.app.App.__init__ flask.sansio.app 11 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 4 0 2 2 4 30 0 98 83
flask.sansio.blueprints.Blueprint.register flask.sansio.blueprints 3 ['N/A', 'N/A', 'N/A'] 3 0 8 14 9 24 0 84 75
flask.cli.ScriptInfo.load_app flask.cli 1 ['N/A'] 4 0 1 6 5 29 0 99 60
wtforms.widgets.core.Select.__call__ wtforms.widgets.core 3 ['N/A', 'N/A', 'N/A'] 3 0 6 3 4 20 0 66 60
flask.sessions.SecureCookieSessionInterface.save_session flask.sessions 4 ['N/A', 'N/A', 'N/A', 'N/A'] 2 0 5 4 5 19 0 63 54
flask.cli.routes_command flask.cli 2 ['N/A', 'N/A'] 1 0 13 3 4 19 1 61 49
flask.cli.FlaskGroup.get_command flask.cli 3 ['N/A', 'N/A', 'N/A'] 2 0 3 2 4 14 0 47 44
wtforms.form.BaseForm.__init__ wtforms.form 4 ['N/A', 'N/A', 'N/A', 'N/A'] 5 0 2 3 4 21 0 68 44
flask.templating.DispatchingJinjaLoader._get_source_explained flask.templating 3 ['N/A', 'N/A', 'N/A'] 3 0 2 2 4 15 1 55 40

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

Functions statically reachable by fuzzers
15.0%
89 / 589
Cyclomatic complexity statically reachable by fuzzers
17.0%
341 / 1975

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 Runtime reached by Fuzzers Combined 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
[] []
flask.sessions [] []
pathlib [] []
werkzeug [] []
flask.cli [] []
flask_wtf.file [] []
base64 [] []
wtforms.i18n ['fuzz_flask_wtf'] []
re [] []
contextlib [] []
importlib_metadata [] []
weakref [] []
flask.logging [] []
hashlib [] []
functools [] []
flask.app ['fuzz_flask_wtf'] []
traceback [] []
flask_wtf.recaptcha.validators [] []
flask_wtf.i18n ['fuzz_flask_wtf'] []
dotenv [] []
code [] []
flask.json [] []
atheris [] []
wtforms [] []
flask.sansio.scaffold [] []
json [] []
flask_wtf.recaptcha.widgets [] []
itsdangerous [] []
click [] []
wtforms.fields.numeric [] []
wtforms.fields.core [] []
sys [] []
flask.testing ['fuzz_flask_wtf'] []
wtforms.fields [] []
urllib [] []
hmac [] []
flask.ctx ['fuzz_flask_wtf'] []
wtforms.fields.simple [] []
wtforms.fields.datetime [] []
ipaddress [] []
wtforms.fields.choices [] []
contextvars [] []
platform [] []
flask_wtf.recaptcha [] []
flask.json.tag [] []
inspect [] []
dataclasses [] []
rlcompleter [] []
flask_wtf.form [] []
math [] []
flask.json.provider [] []
wtforms.validators [] []
markupsafe [] []
wtforms.fields.form [] []
wtforms.widgets [] []
babel [] []
readline [] []
flask [] []
flask.blueprints [] []
wtforms.meta [] []
wtforms.fields.list [] []
operator [] []
jinja2 [] []
[] []
...fuzz_flask_wtf ['fuzz_flask_wtf'] []
flask.globals [] []
flask.typing [] []
flask.sansio.blueprints [] []
warnings [] []
blinker [] []
flask.helpers [] []
gettext [] []
collections [] []
decimal [] []
wtforms.csrf.session [] []
flask.debughelpers [] []
wtforms.csrf [] []
uuid [] []
ast [] []
types [] []
flask.config [] []
wtforms.form [] []
flask_wtf._compat [] []
wtforms.utils [] []
asgiref [] []
wtforms.widgets.core [] []
flask_wtf [] []
flask.__main__ [] []
flask_wtf.recaptcha.fields [] []
datetime [] []
flask.sansio.app ['fuzz_flask_wtf'] []
logging [] []
flask_wtf.csrf ['fuzz_flask_wtf'] []
flask_babel [] []
flask.signals [] []
typing [] []
wtforms.csrf.core [] []
os [] []
email_validator [] []
importlib [] []
copy [] []
flask.views [] []
flask.templating [] []
itertools [] []
flask.wrappers [] []

Directories in report

Directory