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

Fuzzer details

Fuzzer: fuzz_reqparse

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 325 65.3%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 172 34.6%
All colors 497 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
42 274 werkzeug._internal._to_bytes call site: 00274 werkzeug.datastructures.Headers.__init__
40 214 werkzeug.datastructures.Headers.extend call site: 00214 werkzeug.datastructures.Headers.__init__
33 331 werkzeug.urls.url_encode call site: 00331 werkzeug.urls.url_join
33 418 werkzeug._internal._encode_idna call site: 00418 werkzeug.routing.Map.bind
25 188 werkzeug.datastructures.iter_multi_items call site: 00188 werkzeug.datastructures.Headers.add
16 76 werkzeug.urls.url_unparse call site: 00076 werkzeug._internal._to_str
15 125 werkzeug.urls.iri_to_uri call site: 00125 werkzeug.urls.url_fix
15 143 werkzeug.datastructures.MultiDict.__init__ call site: 00143 werkzeug.datastructures.OrderedMultiDict.lists
14 22 werkzeug._internal._to_str call site: 00022 werkzeug.urls.BaseURL.decode_netloc
14 256 werkzeug.test.EnvironBuilder.get_request call site: 00256 werkzeug.test.stream_encode_multipart
14 402 flask.ctx.AppContext.__init__ call site: 00402 werkzeug.routing.Map.bind_to_environ
8 164 werkzeug.datastructures.CombinedMultiDict.items call site: 00164 werkzeug.datastructures.OrderedMultiDict.items

Runtime coverage analysis

Covered functions
471
Functions that are reachable but not covered
175
Reachable functions
225
Percentage of reachable functions covered
22.22%
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_reqparse 9
werkzeug.wrappers.request 9
werkzeug.test 53
werkzeug._internal 17
werkzeug.urls 62
werkzeug.datastructures 43
werkzeug.http 10
werkzeug.sansio.multipart 4
werkzeug.wsgi 4
flask.app 3
flask.ctx 1
werkzeug.routing 20
werkzeug.sansio.utils 7
flask_restx.reqparse 19
flask_restx.errors 2

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
werkzeug.debug.DebuggedApplication.__call__ werkzeug.debug 3 ['N/A', 'N/A', 'N/A'] 5 0 1 6 5 349 0 1150 771
werkzeug.formparser.exhaust_stream.wrapper werkzeug.formparser 4 ['N/A', 'N/A', 'N/A', 'N/A'] 4 0 1 2 4 171 0 557 273
flask_restx.swagger.Swagger.as_dict flask_restx.swagger 1 ['N/A'] 4 0 2 9 7 96 1 330 267
flask.app.Flask.run flask.app 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 4 0 8 10 7 107 0 347 233
werkzeug.wrappers.response.Response.make_conditional werkzeug.wrappers.response 4 ['N/A', 'N/A', 'N/A', 'N/A'] 3 0 1 6 5 92 0 313 217
flask_restx.api.Api._deferred_blueprint_init flask_restx.api 2 ['N/A', 'N/A'] 3 0 2 2 4 66 0 205 166
flask_restx.reqparse.Argument.parse flask_restx.reqparse 3 ['N/A', 'N/A', 'N/A'] 5 0 3 15 9 94 0 319 153

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

Functions statically reachable by fuzzers
27.7%
825/2973
Cyclomatic complexity statically reachable by fuzzers
28.6%
2759 / 9633

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

Runtime coverage analysis

This section shows analysis of runtime coverage data.

For futher technical details on how this section is generated, please see the Glossary .

Complex functions with low coverage

Func name Function total lines Lines covered at runtime percentage covered Reached by fuzzers
flask.app.Flask.run 34 0 0.0% []
flask.app.Flask.make_response 32 0 0.0% []
flask_restx.reqparse.Argument.parse 48 26 54.16% []
werkzeug.serving.WSGIRequestHandler.make_environ 33 0 0.0% []
werkzeug.serving.BaseWSGIServer.__init__ 34 0 0.0% []
werkzeug.urls.url_join 40 0 0.0% ['fuzz_reqparse']
werkzeug.wsgi.extract_path_info._normalize_netloc 32 2 6.25% []
werkzeug.wsgi.make_line_iter._iter_basic_lines 32 0 0.0% []
werkzeug.wsgi.make_chunk_iter 38 2 5.263% []
werkzeug.wrappers.response.Response.get_wsgi_headers 37 0 0.0% []
flask.cli.find_app_by_string 34 0 0.0% []
werkzeug.utils.send_file 81 0 0.0% []
werkzeug.http.parse_options_header 47 8 17.02% []
werkzeug.http.parse_range_header 38 0 0.0% []
werkzeug.http.dump_cookie 39 0 0.0% []
werkzeug.test.stream_encode_multipart.write_binary 38 0 0.0% ['fuzz_reqparse']
werkzeug.test.EnvironBuilder.__init__ 65 35 53.84% ['fuzz_reqparse']
werkzeug.test.Client.open 34 0 0.0% []
time.sleep 77 14 18.18% []
re.match 1155 350 30.30% []
p.get 54 9 16.66% []
werkzeug.sansio.multipart.MultipartDecoder.next_event 48 0 0.0% []
safe.encode 41 17 41.46% ['fuzz_reqparse']
werkzeug.routing.Rule.match 33 0 0.0% []
werkzeug.routing.MapAdapter.match 36 0 0.0% []
list.index 145 52 35.86% []
val.split 146 16 10.95% []
flask.blueprints.Blueprint.register.extend 39 0 0.0% []
r.as_dict 252 43 17.06% []
info.append 37 20 54.05% []
jinja2.utils.htmlsafe_json_dumps 315 104 33.01% []
flask.helpers.url_for 40 0 0.0% []
types.MethodType 416 160 38.46% []
gen.close 37 13 35.13% []
flask_restx.inputs.URL.__call__ 45 0 0.0% []
flask_restx.api.Api.__init__ 43 0 0.0% []
flask_restx.api.Api.handle_error 45 0 0.0% []
flask_restx.swagger.Swagger.as_dict 33 0 0.0% []
flask_restx.swagger.Swagger.extract_resource_doc 42 0 0.0% []
flask_restx.swagger.Swagger.responses_for 42 0 0.0% []

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
[] []
cryptography [] []
email [] []
mimetypes [] []
textwrap [] []
datetime [] []
jsonschema [] []
operator [] []
dotenv [] []
flask_restx.inputs [] []
flask_restx.cors [] []
flask_restx._http [] []
itsdangerous [] []
flask.cli [] []
fnmatch [] []
weakref [] []
werkzeug.middleware.http_proxy [] []
[] []
posixpath [] []
flask_restx.utils [] []
json [] []
werkzeug.debug.console [] []
werkzeug.wrappers.response [] []
difflib [] []
flask [] []
base64 [] []
subprocess [] []
colorama [] []
werkzeug.sansio.response [] []
codecs [] []
werkzeug.testapp [] []
...fuzz_reqparse ['fuzz_reqparse'] []
sysconfig [] []
string [] []
threading [] []
flask_restx.namespace [] []
socket [] []
flask.app ['fuzz_reqparse'] []
werkzeug.http ['fuzz_reqparse'] []
werkzeug.middleware [] []
werkzeug.wrappers [] []
flask.typing [] []
os [] []
contextvars [] []
werkzeug.wsgi ['fuzz_reqparse'] []
functools [] []
random [] []
io [] []
winreg [] []
flask_restx.reqparse ['fuzz_reqparse'] []
flask.testing [] []
collections [] []
werkzeug.sansio.request [] []
werkzeug.serving [] []
unicodedata [] []
flask_restx [] []
flask.wrappers [] []
flask_restx.api [] []
hashlib [] []
watchdog [] []
ujson [] []
werkzeug.middleware.lint [] []
dataclasses [] []
werkzeug.sansio [] []
werkzeug.security [] []
flask_restx.__about__ [] []
flask_restx.model [] []
flask_restx.swagger [] []
asgiref [] []
flask_restx.resource [] []
atheris [] []
itertools [] []
pstats [] []
flask_restx.apidoc [] []
pkgutil [] []
flask.scaffold [] []
types [] []
werkzeug.utils [] []
flask.globals [] []
cProfile [] []
platform [] []
termios [] []
html [] []
flask.ctx ['fuzz_reqparse'] []
math [] []
atexit [] []
inspect [] []
blinker [] []
werkzeug [] []
time [] []
importlib_metadata [] []
werkzeug.middleware.profiler [] []
werkzeug.debug.tbtools [] []
werkzeug.sansio.utils ['fuzz_reqparse'] []
flask.sessions [] []
werkzeug.debug.repr [] []
flask.blueprints [] []
werkzeug.user_agent [] []
flask.signals [] []
pathlib [] []
readline [] []
linecache [] []
flask.__main__ [] []
flask_restx.mask [] []
flask.logging [] []
werkzeug.debug [] []
rlcompleter [] []
enum [] []
getpass [] []
flask.json [] []
pydoc [] []
pytz [] []
pkg_resources [] []
importlib [] []
uuid [] []
werkzeug.middleware.shared_data [] []
secrets [] []
werkzeug.exceptions [] []
flask.views [] []
werkzeug.urls ['fuzz_reqparse'] []
hmac [] []
werkzeug.test ['fuzz_reqparse'] []
flask.helpers [] []
decimal [] []
flask_restx.errors ['fuzz_reqparse'] []
werkzeug._internal ['fuzz_reqparse'] []
tempfile [] []
signal [] []
shutil [] []
traceback [] []
code [] []
flask_restx.marshalling [] []
werkzeug.datastructures ['fuzz_reqparse'] []
flask_restx.fields [] []
ast [] []
zlib [] []
re [] []
flask.config [] []
typing [] []
profile [] []
flask.templating [] []
ntpath [] []
werkzeug.middleware.dispatcher [] []
flask_restx.schemas [] []
markupsafe [] []
logging [] []
werkzeug.middleware.proxy_fix [] []
flask.debughelpers [] []
werkzeug.sansio.multipart ['fuzz_reqparse'] []
calendar [] []
werkzeug.local [] []
http [] []
sys [] []
werkzeug._reloader [] []
flask.json.tag [] []
werkzeug.routing ['fuzz_reqparse'] []
flask_restx.postman [] []
flask_restx.representations [] []
click [] []
werkzeug.wrappers.request ['fuzz_reqparse'] []
warnings [] []
pprint [] []
copy [] []
urllib [] []
aniso8601 [] []
jinja2 [] []
werkzeug.formparser [] []
ssl [] []

Directories in report

Directory

Function call coverage

This section shows a chosen list of functions / methods calls and their relative coverage information. By static analysis of the target project code, all of these function call and their caller information, including the source file or class and line number that initiate the call are captured. Column 1 is the function name of that selected functions or methods. Column 2 of each row indicate if the target function covered by any fuzzer calltree information. Column 3 lists all fuzzers (or no fuzzers at all) that have coered that particular function call dynamically. Column 4 shows list of parent function for the specific function call, while column 5 shows possible blocker functions that make the fuzzers fail to reach the specific functions. Both column 4 and 5 will only show information if none of the fuzzers cover the target function calls.

Function in each files in report

Target sink Callsite location Reached by fuzzer Function call path Covered by fuzzer Possible branch blockers
.exec Not in fuzzer provided call tree []
Parent functions Callpaths
werkzeug.middleware.shared_data.SharedDataMiddleware.__call__
in werkzeug.middleware.shared_data:224
Path 1
flask.app.Flask.__init__
in flask.app:378
Path 1
werkzeug.debug.console._InteractiveConsole.runcode
in werkzeug.debug.console:172
Path 1
flask.app.Flask.add_url_rule
in flask.app:1032
Path 1
Path 2
flask.config.Config.from_envvar
in flask.config:77
Path 1
werkzeug.routing.Rule.refresh
in werkzeug.routing:782
Path 1
0
Blocker function Arguments type Return type Constants touched
werkzeug.middleware.shared_data.SharedDataMiddleware.__call__
in werkzeug.middleware.shared_data:224
['N/A', 'N/A', 'N/A'] N/A []
werkzeug.debug.DebuggedApplication.__call__
in werkzeug.debug:470
['N/A', 'N/A', 'N/A'] N/A []
werkzeug.debug.console._InteractiveConsole.runcode
in werkzeug.debug.console:172
['N/A', 'N/A'] N/A []
flask.app.Flask.add_url_rule
in flask.app:1032
['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] N/A []
flask.app.Flask.add_url_rule
in flask.app:1032
['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] N/A []
flask.config.Config.from_envvar
in flask.config:77
['N/A', 'N/A', 'N/A'] N/A []
werkzeug.routing.Rule.refresh
in werkzeug.routing:782
['N/A'] N/A []
.eval Not in fuzzer provided call tree []
Parent functions Callpaths
werkzeug.wsgi.responder.
in werkzeug.wsgi:-1
Path 1
flask.cli.shell_command
in flask.cli:867
Path 1
Path 2
Path 3
0
Blocker function Arguments type Return type Constants touched
werkzeug.wsgi.responder.
in werkzeug.wsgi:-1
[] N/A []
flask.cli.shell_command
in flask.cli:867
[] N/A []
flask.cli.shell_command
in flask.cli:867
[] N/A []
flask.cli.shell_command
in flask.cli:867
[] N/A []