An interactive TLS-capable intercepting HTTP proxy for penetration testers and software developers.
697 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/filename_matching.py | 8 | def check_src_files_have_test(): |
| LOW | test/filename_matching.py | 33 | def check_test_files_have_src(): |
| LOW | test/mitmproxy/test_command.py | 687 | def test_verify_arg_signature(): |
| LOW | test/mitmproxy/test_flow.py | 119 | async def test_load_http_flow_reverse(self): |
| LOW | test/mitmproxy/test_command_lexer.py | 23 | def test_partial_quoted_string(test_input, valid): |
| LOW | test/mitmproxy/test_log.py | 14 | def test_dont_pick_up_mutations(): |
| LOW | test/mitmproxy/test_http.py | 197 | def test_host_update_also_updates_header(self): |
| LOW | test/mitmproxy/test_http.py | 308 | def test_pretty_url_authority(self): |
| LOW | test/mitmproxy/test_http.py | 350 | def test_get_cookies_withequalsign(self): |
| LOW | test/mitmproxy/test_http.py | 559 | def test_get_cookies_with_parameters(self): |
| LOW | test/mitmproxy/test_http.py | 574 | def test_get_cookies_no_value(self): |
| LOW | test/mitmproxy/test_http.py | 585 | def test_get_cookies_twocookies(self): |
| LOW | test/mitmproxy/test_http.py | 945 | def test_content_length_update(self): |
| LOW | test/mitmproxy/test_http.py | 957 | def test_content_length_not_added_for_response_with_transfer_encoding(self): |
| LOW | test/mitmproxy/test_http.py | 995 | def test_update_content_length_header(self): |
| LOW | test/mitmproxy/test_http.py | 1077 | def test_decode_noop_on_empty_content(self): |
| LOW | test/mitmproxy/test_certs.py | 66 | def test_create_no_common_name(self, tstore): |
| LOW | test/mitmproxy/test_certs.py | 244 | def test_aki_falls_back_when_issuer_has_no_ski(self): |
| LOW | test/mitmproxy/test_certs.py | 394 | def test_from_store_with_passphrase(self, tdata, tstore): |
| LOW | test/mitmproxy/test_certs.py | 416 | def test_add_cert_with_no_private_key(self, tdata, tstore): |
| LOW | test/mitmproxy/test_certs.py | 425 | def test_add_cert_private_public_mismatch(self, tdata, tstore): |
| LOW | test/mitmproxy/test_certs.py | 445 | def test_add_cert_chain_invalid(self, tdata, tstore, caplog): |
| LOW | test/mitmproxy/test_certs.py | 517 | def test_crl_distribution_points(self, tdata, filename, crls): |
| LOW | test/mitmproxy/contentviews/test___init__.py | 85 | def test_view_failure_explicit(self): |
| LOW | test/mitmproxy/contentviews/test__utils.py | 44 | def test_make_metadata_websocket(self): |
| LOW | test/mitmproxy/contentviews/test__utils.py | 62 | def test_get_data_regular_content(self): |
| LOW | test/mitmproxy/contentviews/test__utils.py | 77 | def test_get_data_http_decode_error(self): |
| LOW | test/mitmproxy/contentviews/test__utils.py | 112 | def test_byte_pairs_to_str_pairs(): |
| LOW | test/mitmproxy/contentviews/test__api.py | 59 | def test_syntaxhighlight_matches(self): |
| LOW | test/mitmproxy/contentviews/test__registry.py | 9 | def test_register_triggers_on_change(): |
| LOW | test/mitmproxy/contentviews/test__registry.py | 20 | def test_replace_view_triggers_on_change_and_logs(caplog): |
| LOW | test/mitmproxy/contentviews/test__registry.py | 50 | def test_get_view_unknown_name(caplog): |
| LOW | test/mitmproxy/contentviews/test__registry.py | 63 | def test_render_priority_error(caplog): |
| LOW | test/mitmproxy/tools/test_main.py | 35 | def test_options_includes_addon_options(tdata, capsys): |
| LOW | test/mitmproxy/tools/test_main.py | 49 | def test_options_without_scripts(capsys): |
| LOW | test/mitmproxy/tools/web/test_app.py | 49 | def test_all_handlers_have_auth(): |
| LOW | test/mitmproxy/tools/web/test_app.py | 114 | def test_javascript_mime_type(self): |
| LOW | test/mitmproxy/tools/web/test_app.py | 146 | def test_flows_dump_filter_error(self): |
| LOW | test/mitmproxy/tools/web/test_app.py | 300 | def test_flow_content_returns_raw_content_when_decoding_fails(self): |
| LOW | test/mitmproxy/tools/web/test_app.py | 327 | def test_update_flow_content_multipart(self): |
| LOW | test/mitmproxy/tools/web/test_app.py | 366 | def test_flow_contentview_websocket(self): |
| LOW | test/mitmproxy/tools/web/test_app.py | 453 | def test_websocket_filter_application(self): |
| LOW | test/mitmproxy/tools/web/test_app.py | 535 | def test_websocket_filter_command_error(self): |
| LOW | test/mitmproxy/tools/web/test_app.py | 585 | def test_login_with_token_header(self): |
| LOW | test/mitmproxy/tools/web/test_app.py | 590 | def test_login_with_token_param(self): |
| LOW | test/mitmproxy/tools/web/test_app.py | 595 | def test_login_with_malformed_auth_header(self): |
| LOW | test/mitmproxy/tools/web/test_app.py | 599 | def test_login_with_invalid_auth_header(self): |
| LOW | test/mitmproxy/tools/web/test_app.py | 608 | def test_unauthorized_websocket(self): |
| LOW | test/mitmproxy/tools/web/test_app.py | 618 | def test_auth_cookie_port_suffix_modification(self): |
| LOW | test/mitmproxy/tools/console/test_flowview.py | 40 | async def test_content_missing_returns_error(console): |
| LOW | test/mitmproxy/tools/console/test_flowview.py | 58 | async def test_empty_content_request_and_response(console): |
| LOW | test/mitmproxy/tools/console/test_flowview.py | 85 | async def test_content_view_fullcontents_true_uses_unlimited_limit(console): |
| LOW | test/mitmproxy/tools/console/test_statusbar.py | 62 | def test_shorten_message_narrow(): |
| LOW | test/mitmproxy/tools/console/test_statusbar.py | 67 | async def test_console_quickhelp_option(console, monkeypatch): |
| LOW | test/mitmproxy/tools/console/test_statusbar.py | 86 | async def test_console_quickhelp_toggle(console, monkeypatch): |
| LOW | test/mitmproxy/tools/console/test_statusbar.py | 115 | async def test_console_quickhelp_hotkey(console): |
| LOW | test/mitmproxy/tools/console/test_statusbar.py | 126 | async def test_console_quickhelp_prompts_visible_when_disabled(console, monkeypatch): |
| LOW | test/mitmproxy/tools/console/test_integration.py | 15 | def test_keybindings_home_end(console): |
| LOW | test/mitmproxy/tools/console/test_contentview.py | 22 | async def test_contentview_flowview(console, monkeypatch): |
| LOW | test/mitmproxy/net/test_tls.py | 18 | def test_make_master_secret_logger(): |
| 273 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/mitmproxy/tools/console/test_quickhelp.py | 44 | |
| LOW | test/mitmproxy/proxy/tutils.py | 193 | |
| LOW | test/mitmproxy/proxy/tutils.py | 324 | |
| LOW | test/mitmproxy/proxy/test_tunnel.py | 24 | |
| LOW | test/mitmproxy/proxy/layers/http/test_http_fuzz.py | 430 | |
| LOW | test/mitmproxy/proxy/layers/http/test_http.py | 541 | |
| LOW | test/mitmproxy/proxy/layers/quic/test__stream_layers.py | 64 | |
| LOW | mitmproxy/addonmanager.py | 243 | |
| LOW | mitmproxy/command.py | 174 | |
| LOW | mitmproxy/flowfilter.py | 301 | |
| LOW | mitmproxy/flowfilter.py | 337 | |
| LOW | mitmproxy/flowfilter.py | 364 | |
| LOW | mitmproxy/certs.py | 284 | |
| LOW | mitmproxy/types.py | 414 | |
| LOW | mitmproxy/optmanager.py | 564 | |
| LOW | mitmproxy/optmanager.py | 364 | |
| LOW | mitmproxy/optmanager.py | 412 | |
| LOW | mitmproxy/connection.py | 147 | |
| LOW | mitmproxy/http.py | 1174 | |
| LOW | mitmproxy/contentviews/_view_xml_html.py | 104 | |
| LOW | mitmproxy/contentviews/_view_xml_html.py | 209 | |
| LOW | mitmproxy/contentviews/_view_http3.py | 25 | |
| LOW | mitmproxy/contentviews/_view_mqtt.py | 60 | |
| LOW | mitmproxy/contentviews/_view_mqtt.py | 87 | |
| LOW | mitmproxy/contentviews/_view_mqtt.py | 193 | |
| LOW | mitmproxy/contentviews/_view_image/view.py | 21 | |
| LOW | mitmproxy/contentviews/_view_image/image_parser.py | 13 | |
| LOW | mitmproxy/contentviews/_view_image/image_parser.py | 63 | |
| LOW | mitmproxy/tools/main.py | 45 | |
| LOW | mitmproxy/tools/main.py | 56 | |
| LOW | mitmproxy/tools/web/app.py | 82 | |
| LOW | mitmproxy/tools/web/app.py | 580 | |
| LOW | mitmproxy/tools/web/app.py | 717 | |
| LOW | mitmproxy/tools/web/static_viewer.py | 51 | |
| LOW | mitmproxy/tools/console/options.py | 165 | |
| LOW | mitmproxy/tools/console/statusbar.py | 157 | |
| LOW | mitmproxy/tools/console/window.py | 285 | |
| LOW | mitmproxy/tools/console/searchable.py | 25 | |
| LOW | mitmproxy/tools/console/palettes.py | 97 | |
| LOW | mitmproxy/tools/console/flowview.py | 68 | |
| LOW | mitmproxy/tools/console/common.py | 245 | |
| LOW | mitmproxy/tools/console/common.py | 274 | |
| LOW | mitmproxy/tools/console/common.py | 313 | |
| LOW | mitmproxy/tools/console/common.py | 479 | |
| LOW | mitmproxy/tools/console/common.py | 726 | |
| LOW | mitmproxy/tools/console/quickhelp.py | 52 | |
| LOW | mitmproxy/tools/console/consoleaddons.py | 395 | |
| LOW | mitmproxy/tools/console/consoleaddons.py | 468 | |
| LOW | mitmproxy/tools/console/commandexecutor.py | 14 | |
| LOW | mitmproxy/tools/console/grideditor/base.py | 81 | |
| LOW | mitmproxy/tools/console/grideditor/base.py | 329 | |
| LOW | mitmproxy/tools/console/commander/commander.py | 76 | |
| LOW | mitmproxy/tools/console/commander/commander.py | 177 | |
| LOW | mitmproxy/net/http/cookies.py | 67 | |
| LOW | mitmproxy/net/http/cookies.py | 139 | |
| LOW | mitmproxy/net/http/multipart.py | 11 | |
| LOW | mitmproxy/net/http/multipart.py | 48 | |
| LOW | mitmproxy/net/http/validate.py | 66 | |
| LOW | mitmproxy/net/http/headers.py | 39 | |
| LOW | mitmproxy/net/http/http1/read.py | 166 | |
| 81 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/conftest.py | 1 | |
| LOW | test/mitmproxy/coretypes/test_serializable.py | 1 | |
| LOW | test/mitmproxy/addons/test_proxyserver.py | 1 | |
| LOW | test/mitmproxy/addons/test_next_layer.py | 1 | |
| LOW | mitmproxy/dns.py | 1 | |
| LOW | mitmproxy/log.py | 1 | |
| LOW | mitmproxy/flow.py | 1 | |
| LOW | mitmproxy/types.py | 16 | |
| LOW | mitmproxy/optmanager.py | 1 | |
| LOW | mitmproxy/ctx.py | 1 | |
| LOW | mitmproxy/contentviews/_api.py | 1 | |
| LOW | mitmproxy/contentviews/__init__.py | 18 | |
| LOW | mitmproxy/contentviews/__init__.py | 20 | |
| LOW | mitmproxy/contentviews/__init__.py | 22 | |
| LOW | mitmproxy/contentviews/_registry.py | 1 | |
| LOW | mitmproxy/contentviews/_compat.py | 1 | |
| LOW | mitmproxy/contentviews/_view_image/__init__.py | 1 | |
| LOW | mitmproxy/tools/main.py | 1 | |
| LOW | mitmproxy/tools/web/webaddons.py | 1 | |
| LOW | mitmproxy/tools/web/__init__.py | 1 | |
| LOW | mitmproxy/tools/web/app.py | 1 | |
| LOW | mitmproxy/tools/console/options.py | 1 | |
| LOW | mitmproxy/tools/console/signals.py | 1 | |
| LOW | mitmproxy/tools/console/statusbar.py | 1 | |
| LOW | mitmproxy/tools/console/palettes.py | 6 | |
| LOW | mitmproxy/tools/console/__init__.py | 1 | |
| LOW | mitmproxy/tools/console/flowlist.py | 5 | |
| LOW | mitmproxy/tools/console/grideditor/__init__.py | 1 | |
| LOW | mitmproxy/tools/console/grideditor/__init__.py | 2 | |
| LOW | mitmproxy/tools/console/grideditor/__init__.py | 3 | |
| LOW | mitmproxy/tools/console/grideditor/__init__.py | 4 | |
| LOW | mitmproxy/tools/console/grideditor/__init__.py | 5 | |
| LOW | mitmproxy/tools/console/grideditor/__init__.py | 6 | |
| LOW | mitmproxy/tools/console/grideditor/__init__.py | 7 | |
| LOW | mitmproxy/tools/console/grideditor/__init__.py | 8 | |
| LOW | mitmproxy/tools/console/grideditor/__init__.py | 9 | |
| LOW | mitmproxy/tools/console/grideditor/__init__.py | 10 | |
| LOW | mitmproxy/tools/console/grideditor/__init__.py | 11 | |
| LOW | mitmproxy/tools/console/grideditor/__init__.py | 12 | |
| LOW | mitmproxy/tools/console/grideditor/__init__.py | 13 | |
| LOW | mitmproxy/tools/console/grideditor/base.py | 16 | |
| LOW | mitmproxy/net/local_ip.py | 1 | |
| LOW | mitmproxy/net/http/multipart.py | 1 | |
| LOW | mitmproxy/net/http/url.py | 1 | |
| LOW | mitmproxy/net/http/http1/__init__.py | 1 | |
| LOW | mitmproxy/net/http/http1/__init__.py | 2 | |
| LOW | mitmproxy/net/http/http1/__init__.py | 3 | |
| LOW | mitmproxy/net/http/http1/__init__.py | 4 | |
| LOW | mitmproxy/net/http/http1/__init__.py | 5 | |
| LOW | mitmproxy/net/http/http1/__init__.py | 6 | |
| LOW | mitmproxy/net/http/http1/__init__.py | 7 | |
| LOW | mitmproxy/net/http/http1/__init__.py | 8 | |
| LOW | mitmproxy/net/http/http1/__init__.py | 9 | |
| LOW | mitmproxy/proxy/mode_servers.py | 13 | |
| LOW | mitmproxy/proxy/context.py | 7 | |
| LOW | mitmproxy/proxy/mode_specs.py | 23 | |
| LOW | mitmproxy/proxy/layers/__init__.py | 1 | |
| LOW | mitmproxy/proxy/layers/__init__.py | 2 | |
| LOW | mitmproxy/proxy/layers/__init__.py | 3 | |
| LOW | mitmproxy/proxy/layers/__init__.py | 4 | |
| 53 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/mitmproxy/tools/web/test_app.py | 574 | except Exception: |
| MEDIUM | test/mitmproxy/tools/web/test_app.py | 556 | def test_process_list(self): |
| LOW | test/mitmproxy/tools/console/test_defaultkeys.py | 19 | except Exception as e: |
| LOW | test/mitmproxy/proxy/tutils.py | 205 | except Exception: |
| LOW | test/mitmproxy/proxy/tutils.py | 224 | except Exception: |
| LOW | test/mitmproxy/addons/test_clientplayback.py | 39 | except Exception as e: |
| LOW | test/helper_tools/hunt_memory_leaks.py | 58 | except Exception: |
| LOW | mitmproxy/addonmanager.py | 50 | except Exception: |
| MEDIUM | mitmproxy/addonmanager.py | 45 | def safecall(): |
| LOW | mitmproxy/command.py | 181 | except Exception: |
| LOW | mitmproxy/version.py | 39 | except Exception: |
| LOW | mitmproxy/dns.py | 168 | except Exception: |
| LOW | mitmproxy/dns.py | 210 | except Exception: |
| MEDIUM | mitmproxy/dns.py | 153 | def _data_json(self) -> str | HTTPSRecordJSON: |
| LOW | mitmproxy/flowfilter.py | 190 | except Exception: |
| LOW | mitmproxy/contentviews/__init__.py | 89 | except Exception as e: |
| LOW | mitmproxy/contentviews/_registry.py | 58 | except Exception: |
| LOW | mitmproxy/contentviews/_view_http3.py | 36 | except Exception as e: |
| LOW | mitmproxy/contentviews/_view_http3.py | 42 | except Exception as e: |
| LOW | mitmproxy/tools/web/app.py | 322 | except Exception as e: |
| LOW | mitmproxy/tools/web/app.py | 495 | except Exception as e: |
| LOW | mitmproxy/tools/web/app.py | 787 | except Exception as e: |
| LOW | mitmproxy/tools/web/app.py | 811 | except Exception as err: |
| LOW | mitmproxy/tools/web/app.py | 871 | except Exception: |
| LOW | mitmproxy/tools/console/master.py | 149 | except Exception: |
| LOW | mitmproxy/tools/console/master.py | 184 | except Exception: |
| LOW | mitmproxy/net/encoding.py | 70 | except Exception as e: |
| LOW | mitmproxy/net/encoding.py | 128 | except Exception as e: |
| LOW | mitmproxy/proxy/server.py | 436 | except Exception: |
| LOW | mitmproxy/proxy/mode_servers.py | 132 | except Exception as e: |
| LOW | mitmproxy/proxy/mode_servers.py | 147 | except Exception as e: |
| LOW | mitmproxy/proxy/mode_servers.py | 203 | except Exception as e: |
| LOW | mitmproxy/proxy/mode_servers.py | 296 | except Exception as e: |
| LOW | mitmproxy/proxy/mode_servers.py | 319 | except Exception: # pragma: no cover |
| LOW | mitmproxy/proxy/mode_servers.py | 368 | except Exception as e: |
| LOW | mitmproxy/proxy/mode_servers.py | 459 | except Exception: |
| MEDIUM | mitmproxy/proxy/mode_servers.py | 129 | def start(self) -> None: |
| LOW | mitmproxy/addons/proxyauth.py | 103 | except Exception: |
| LOW | mitmproxy/addons/clientplayback.py | 191 | except Exception: |
| LOW | mitmproxy/addons/asgiapp.py | 140 | except Exception as e: |
| LOW | mitmproxy/addons/script.py | 53 | except Exception as e: |
| LOW | mitmproxy/addons/script.py | 127 | except Exception as e: |
| LOW | mitmproxy/addons/command_history.py | 47 | except Exception as e: |
| LOW | mitmproxy/addons/command_history.py | 60 | except Exception as e: |
| LOW | mitmproxy/addons/command_history.py | 75 | except Exception as e: |
| LOW | mitmproxy/io/io.py | 59 | except Exception: |
| LOW | mitmproxy/contrib/wbxml/ASCommandResponse.py | 42 | except Exception as e: |
| LOW | release/release.py | 32 | except Exception as e: |
| LOW | release/selftest.py | 49 | except Exception as e: |
| MEDIUM | release/selftest.py | 34 | def make_request(): |
| LOW | examples/contrib/webscanner_helper/mapping.py | 152 | except Exception: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | test/mitmproxy/contentviews/test__view_mqtt.py | 27 | b"""{"body":{"parameters":null},"header":{"from":"56:6F:5E:6A:01:05","messageId":"connected","type":"event"} |
| HIGH | test/mitmproxy/contentviews/test__view_mqtt.py | 28 | """[PUBLISH] '{"body":{"parameters":null},"header":{"from":"56:6F:5E:6A:01:05",""" |
| HIGH | test/mitmproxy/contentviews/test__view_mqtt.py | 35 | b"""\x00l{"body":{"parameters":null},"header":{"from":"56:6F:5E:6A:01:05","messageId":"disconnected","type": |
| HIGH | test/mitmproxy/contentviews/test__view_mqtt.py | 42 | '{"body":{"parameters":null},"header":{"from":"56:6F:5E:6A:01:05","messageId":"disconnected","type":"eve |
| HIGH | test/mitmproxy/contentviews/test__view_json.py | 15 | assert json_view.prettify(b'{"foo": true, "nullvalue": null}', meta) |
| HIGH | mitmproxy/tools/console/master.py | 259 | self.window.push(name) |
| HIGH | examples/contrib/test_jsondump.py | 10 | example_dir = tutils.test_data.push("../examples") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | test/mitmproxy/addons/test_tlsconfig.py | 304 | san = tssl_client.quic.tls._peer_certificate.extensions.get_extension_for_class( |
| CRITICAL | mitmproxy/tools/web/static/vendor-BS4xPthR.js | 38 | `;this.styleTag.textContent=o;let f=t.head||t;this.styleTag.parentNode!=f&&f.insertBefore(this.styleTag,f.firstChild)}}s |
| CRITICAL | mitmproxy/tools/console/window.py | 141 | self.master.view.focus.sig_change.connect(self.view_changed) |
| CRITICAL | mitmproxy/tools/console/window.py | 142 | self.master.view.focus.sig_change.connect(self.focus_changed) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/mitmproxy/addons/test_tlsconfig.py | 174 | # so we just return our local IP as subject. |
| LOW | test/mitmproxy/addons/test_view.py | 109 | # These all just call update |
| LOW | test/mitmproxy/addons/test_view.py | 159 | # These all just call update |
| LOW | test/mitmproxy/addons/test_view.py | 174 | # These all just call update |
| LOW | test/mitmproxy/addons/test_view.py | 189 | # These all just call update |
| MEDIUM | mitmproxy/tools/web/static/vendor-BS4xPthR.js | 9 | `).replace(El,"")}function xm(l,a){return a=vm(a),vm(l)===a}function df(){}function wt(l,a,u,O,m,b){switch(u){case"child |
| MEDIUM | mitmproxy/tools/web/static/vendor-BS4xPthR.js | 55 | }`,{label:"class",detail:"definition",type:"keyword"}),Yi('import {${names}} from "${module}"\n${}',{label:"import",deta |
| LOW | mitmproxy/tools/console/flowview.py | 387 | # The alternative would be to just use the header's UTF-8 representation and maybe |
| MEDIUM | mitmproxy/net/http/headers.py | 74 | # > 9. [snip] the comprehensive UTF-8 encoding is suggested. |
| MEDIUM | mitmproxy/proxy/layers/http/_events.py | 30 | # explicit constructors below to facilitate type checking in _http1/_http2 |
| LOW | mitmproxy/coretypes/multidict.py | 193 | # We just return the first element if |
| MEDIUM | web/src/js/ducks/flows/index.ts | 157 | // but performance is not important here and adding the flow may generally be a bit more robust. |
| MEDIUM | docs/src/assets/asciinema-player.js | 73 | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e(require("react"));else if("functio |
| LOW | examples/addons/http-modify-form.py | 8 | # If there's already a form, one can just add items to the dict: |
| LOW | examples/addons/http-modify-form.py | 11 | # One can also just pass new form data. |
| MEDIUM | …amples/contrib/webscanner_helper/proxyauth_selenium.py | 46 | """This Addon can be used in combination with web application scanners in order to help them to authenticate |
| MEDIUM | examples/contrib/webscanner_helper/urlinjection.py | 13 | """Abstract class for an generator of the injection content in order to inject the URL index.""" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | mitmproxy/net/http/cookies.py | 291 | Args: c: A Set-Cookie string delta: Time delta in seconds Returns: A refreshed Set-Cook |
| HIGH | mitmproxy/net/http/url.py | 22 | URL-parsing function that checks that - port is an integer 0-65535 - host is a valid IDNA-encoded h |
| HIGH | mitmproxy/net/http/http1/read.py | 250 | Parse an HTTP request head (request line + headers) from an iterable of lines Args: lines: The input l |
| HIGH | mitmproxy/net/http/http1/read.py | 284 | Parse an HTTP response head (response line + headers) from an iterable of lines Args: lines: The input |
| HIGH | mitmproxy/proxy/layers/quic/_client_hello_parser.py | 35 | Check if the supplied bytes contain a full ClientHello message, and if so, parse it. Args: - msgs: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/mitmproxy/test_certs.py | 21 | # d = certs.DNTree() |
| LOW | mitmproxy/certs.py | 361 | |
| LOW | mitmproxy/tools/console/flowview.py | 381 | # X-Authors: Made with ❤ in Hamburg |
| LOW | mitmproxy/net/http/http1/read.py | 81 | # Content-Length or Transfer-Encoding header fields received in |
| LOW | mitmproxy/net/http/http1/read.py | 121 | else: |
| LOW | mitmproxy/net/http/http1/read.py | 141 | # 5. If a valid Content-Length header field is present without |
| LOW | mitmproxy/platform/linux.py | 1 | import socket |
| LOW | mitmproxy/addons/tlsconfig.py | 121 | |
| LOW | examples/addons/wsgi-flask-app.py | 21 | addons = [ |
| LOW | examples/contrib/change_upstream_proxy.py | 1 | from mitmproxy import http |
| LOW | examples/contrib/httpdump.py | 1 | #!/usr/bin/env python |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/mitmproxy/proxy/test_mode_servers.py | 107 | # Set timeout to 0 for immediate timeout (fastest test) |
| LOW | mitmproxy/proxy/layers/tls.py | 84 | # Check if ClientHello is complete |
| LOW | mitmproxy/proxy/layers/tls.py | 151 | # Check if ClientHello is complete |
| LOW | mitmproxy/addons/tlsconfig.py | 638 | # Check if a request has a magic CRL token at the end |
| LOW | release/docker/docker-entrypoint.sh | 23 | # Set HOME to /home/mitmproxy for config dir fix (mitmproxy/mitmproxy#7597) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | mitmproxy/proxy/layers/tls.py | 630 | For example, we need to check if the client does ALPN or not. |
| LOW | mitmproxy/proxy/layers/http/__init__.py | 580 | # Step 1: Determine the expected body size. This can either come from a known content-length header, |
| LOW | mitmproxy/proxy/layers/http/__init__.py | 602 | # Step 2: Do we need to abort this? |
| LOW | mitmproxy/proxy/layers/http/__init__.py | 631 | # Step 3: Do we need to stream this? |
| LOW | mitmproxy/proxy/layers/http/__init__.py | 742 | # so we need to check if the response is done yet or not. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | docs/scripts/api-events.py | 78 | print("# This file is autogenerated, do not edit manually.") |
| MEDIUM | examples/contrib/test_jsondump.py | 24 | # Create a dummy flow for testing |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …st/mitmproxy/contentviews/test_xml_html_data/test.html | 8 | <p>Lorem ipsum dolor<p>sit amet, consectetur <p>adipiscing elit, sed<p>do eiusmod tempor<p> incididunt ut<p> labore et d |
| LOW | …xy/contentviews/test_xml_html_data/test-formatted.html | 9 | Lorem ipsum dolor |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | mitmproxy/proxy/layers/dns.py | 71 | def handle_request( |