The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/products/free-netbox-cloud/
2598 matches across 17 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | netbox/netbox/denormalized.py | 31 | def update_denormalized_fields(sender, instance, created, raw, **kwargs): |
| LOW | netbox/netbox/utils.py | 60 | def register_request_processor(func): |
| LOW | netbox/netbox/middleware.py | 43 | def should_redirect_with_slash(self, request): |
| LOW | netbox/netbox/forms/mixins.py | 77 | def _append_customfield_fields(self): |
| LOW | netbox/netbox/plugins/registration.py | 20 | def register_template_extensions(class_list): |
| LOW | netbox/netbox/plugins/registration.py | 81 | def register_user_preferences(plugin_name, preferences): |
| LOW | netbox/netbox/plugins/registration.py | 88 | def register_serializer_resolver(app_label, resolver): |
| LOW | netbox/netbox/tests/test_forms.py | 35 | def test_empty_string_to_none_nullable_charfield(self): |
| LOW | netbox/netbox/tests/test_forms.py | 48 | def test_empty_string_to_none_nullable_integerfield(self): |
| LOW | netbox/netbox/tests/test_forms.py | 61 | def test_empty_string_to_none_nullable_smallintegerfield(self): |
| LOW | netbox/netbox/tests/test_forms.py | 74 | def test_empty_string_to_none_nullable_decimalfield(self): |
| LOW | netbox/netbox/tests/test_forms.py | 89 | def test_empty_string_to_none_nullable_foreignkey(self): |
| LOW | netbox/netbox/tests/test_forms.py | 108 | def test_empty_string_preserved_non_nullable_charfield(self): |
| LOW | netbox/netbox/tests/test_forms.py | 124 | def test_empty_string_not_converted_for_required_fields(self): |
| LOW | netbox/netbox/tests/test_forms.py | 138 | def test_non_string_none_value_preserved(self): |
| LOW | netbox/netbox/tests/test_forms.py | 153 | def test_non_string_numeric_values_preserved(self): |
| LOW | netbox/netbox/tests/test_forms.py | 168 | def test_manytomany_fields_skipped(self): |
| LOW | netbox/netbox/tests/test_forms.py | 181 | def test_fields_not_in_cleaned_data_skipped(self): |
| LOW | netbox/netbox/tests/test_forms.py | 195 | def test_valid_string_values_preserved(self): |
| LOW | netbox/netbox/tests/test_forms.py | 213 | def test_multiple_nullable_fields_with_empty_strings(self): |
| LOW | netbox/netbox/tests/test_forms.py | 237 | def test_mixed_nullable_and_non_nullable_empty_strings(self): |
| LOW | netbox/netbox/tests/test_forms.py | 258 | def test_wireless_fields_nullable(self): |
| LOW | netbox/netbox/tests/test_model_test_coverage.py | 168 | def test_api_test_cases_exist_for_api_models(self): |
| LOW | netbox/netbox/tests/test_model_test_coverage.py | 183 | def test_view_test_cases_exist_for_ui_models(self): |
| LOW | netbox/netbox/tests/test_model_test_coverage.py | 198 | def test_filterset_test_cases_exist_for_registered_filtersets(self): |
| LOW | netbox/netbox/tests/test_model_test_coverage.py | 225 | def test_import_optional_returns_module_when_present(self): |
| LOW | netbox/netbox/tests/test_model_test_coverage.py | 230 | def test_import_optional_returns_none_for_missing_submodule(self): |
| LOW | netbox/netbox/tests/test_model_test_coverage.py | 234 | def test_import_optional_returns_none_for_missing_parent(self): |
| LOW | netbox/netbox/tests/test_model_test_coverage.py | 238 | def test_import_optional_propagates_unrelated_find_spec_error(self): |
| LOW | netbox/netbox/tests/test_model_test_coverage.py | 252 | def test_import_optional_propagates_import_module_errors(self): |
| LOW | netbox/netbox/tests/test_model_test_coverage.py | 272 | def test_has_tests_detects_test_methods(self): |
| LOW | netbox/netbox/tests/test_model_test_coverage.py | 284 | def test_get_queryset_model_prefers_queryset(self): |
| LOW | netbox/netbox/tests/test_model_test_coverage.py | 290 | def test_get_queryset_model_falls_back_to_filterset(self): |
| LOW | netbox/netbox/tests/test_model_test_coverage.py | 296 | def test_get_queryset_model_returns_none_when_unset(self): |
| LOW | netbox/netbox/tests/test_model_features.py | 65 | def test_cloningmixin_injects_gfk_attribute(self): |
| LOW | netbox/netbox/tests/test_model_features.py | 90 | def test_cloningmixin_does_not_inject_gfk_attribute_if_incomplete(self): |
| LOW | netbox/netbox/tests/test_object_actions.py | 23 | def test_get_url_plugin_model(self): |
| LOW | netbox/netbox/tests/test_object_actions.py | 35 | def test_bulk_edit_get_context_child_object(self): |
| LOW | netbox/netbox/tests/test_plugins.py | 244 | def test_plugin_menu_item_independent_permissions(self): |
| LOW | netbox/netbox/tests/test_plugins.py | 254 | def test_plugin_menu_item_independent_buttons(self): |
| LOW | netbox/netbox/tests/test_plugins.py | 266 | def test_plugin_menu_button_independent_permissions(self): |
| LOW | netbox/netbox/tests/test_plugins.py | 276 | def test_explicit_permissions_remain_independent(self): |
| LOW | netbox/netbox/tests/test_tables.py | 18 | def test_prefetch_visible_columns(self): |
| LOW | netbox/netbox/tests/test_tables.py | 50 | def test_prefetch_all_columns_for_export(self): |
| LOW | netbox/netbox/tests/test_tables.py | 82 | def test_configure_anonymous_user_with_ordering(self): |
| LOW | netbox/netbox/tests/test_search.py | 69 | def test_cache_multiple_objects(self): |
| LOW | netbox/netbox/tests/test_graphql.py | 31 | def test_graphql_max_query_depth_disabled_by_default(self): |
| LOW | netbox/netbox/tests/test_graphql.py | 38 | def test_graphql_max_query_depth_disabled_when_zero(self): |
| LOW | netbox/netbox/tests/test_graphql.py | 45 | def test_graphql_max_query_depth_disabled_when_negative(self): |
| LOW | netbox/netbox/tests/test_graphql.py | 52 | def test_graphql_max_query_depth_enforced(self): |
| LOW | netbox/netbox/tests/test_graphql.py | 107 | def test_graphql_filter_objects(self): |
| LOW | netbox/netbox/tests/test_graphql.py | 188 | def test_graphql_integer_range_lookup(self): |
| LOW | netbox/netbox/tests/test_graphql.py | 222 | def test_graphql_tableconfig_object_type_exposes_id(self): |
| LOW | netbox/netbox/tests/test_ui.py | 185 | def test_related_object_list_attr_direct_accessor(self): |
| LOW | netbox/netbox/tests/test_ui.py | 195 | def test_related_object_list_attr_related_accessor(self): |
| LOW | netbox/netbox/tests/test_ui.py | 205 | def test_related_object_list_attr_empty_related_accessor(self): |
| LOW | netbox/netbox/tests/test_ui.py | 213 | def test_related_object_list_attr_max_items(self): |
| LOW | netbox/netbox/tests/test_ui.py | 230 | def test_get_value_with_format_string(self): |
| LOW | netbox/netbox/tests/test_ui.py | 235 | def test_get_value_without_format_string(self): |
| LOW | netbox/netbox/tests/test_ui.py | 240 | def test_get_value_none_skips_format_string(self): |
| 1209 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | netbox/netbox/settings.py | 1021 | |
| LOW | netbox/netbox/settings.py | 344 | |
| LOW | netbox/netbox/tables/__init__.py | 1 | |
| LOW | netbox/netbox/tables/__init__.py | 2 | |
| LOW | netbox/netbox/tables/tables.py | 17 | |
| LOW | netbox/netbox/tables/tables.py | 27 | |
| LOW | netbox/netbox/forms/model_forms.py | 7 | |
| LOW | netbox/netbox/forms/mixins.py | 5 | |
| LOW | netbox/netbox/forms/mixins.py | 6 | |
| LOW | netbox/netbox/forms/filtersets.py | 4 | |
| LOW | netbox/netbox/forms/__init__.py | 1 | |
| LOW | netbox/netbox/forms/__init__.py | 2 | |
| LOW | netbox/netbox/forms/__init__.py | 3 | |
| LOW | netbox/netbox/forms/__init__.py | 4 | |
| LOW | netbox/netbox/forms/__init__.py | 5 | |
| LOW | netbox/netbox/forms/__init__.py | 6 | |
| LOW | netbox/netbox/forms/bulk_import.py | 5 | |
| LOW | netbox/netbox/forms/bulk_edit.py | 5 | |
| LOW | netbox/netbox/plugins/__init__.py | 14 | |
| LOW | netbox/netbox/plugins/__init__.py | 15 | |
| LOW | netbox/netbox/plugins/__init__.py | 16 | |
| LOW | netbox/netbox/plugins/__init__.py | 17 | |
| LOW | netbox/netbox/tests/test_import.py | 2 | |
| LOW | netbox/netbox/tests/test_jobs.py | 14 | |
| LOW | netbox/netbox/tests/dummy_plugin/__init__.py | 27 | |
| LOW | netbox/netbox/tests/dummy_plugin/__init__.py | 27 | |
| LOW | netbox/netbox/tests/dummy_plugin/__init__.py | 27 | |
| LOW | netbox/netbox/tests/dummy_plugin/views.py | 14 | |
| LOW | netbox/netbox/navigation/menu.py | 7 | |
| LOW | netbox/netbox/models/mixins.py | 5 | |
| LOW | netbox/netbox/models/__init__.py | 10 | |
| LOW | netbox/netbox/models/features.py | 15 | |
| LOW | netbox/netbox/graphql/enums.py | 3 | |
| LOW | netbox/netbox/graphql/filter_mixins.py | 20 | |
| LOW | netbox/netbox/graphql/filter_mixins.py | 21 | |
| LOW | netbox/netbox/graphql/filter_mixins.py | 23 | |
| LOW | netbox/netbox/graphql/filters.py | 12 | |
| LOW | netbox/netbox/api/serializers/__init__.py | 1 | |
| LOW | netbox/netbox/api/serializers/__init__.py | 2 | |
| LOW | netbox/netbox/api/serializers/__init__.py | 3 | |
| LOW | netbox/netbox/api/serializers/__init__.py | 4 | |
| LOW | netbox/netbox/api/serializers/__init__.py | 6 | |
| LOW | netbox/netbox/api/serializers/__init__.py | 7 | |
| LOW | netbox/netbox/views/__init__.py | 1 | |
| LOW | netbox/netbox/views/__init__.py | 2 | |
| LOW | netbox/netbox/views/generic/__init__.py | 1 | |
| LOW | netbox/netbox/views/generic/__init__.py | 2 | |
| LOW | netbox/netbox/views/generic/__init__.py | 3 | |
| LOW | netbox/core/signals.py | 15 | |
| LOW | netbox/core/filtersets.py | 12 | |
| LOW | netbox/core/filtersets.py | 13 | |
| LOW | netbox/core/apps.py | 8 | |
| LOW | netbox/core/apps.py | 24 | |
| LOW | netbox/core/apps.py | 25 | |
| LOW | netbox/core/apps.py | 25 | |
| LOW | netbox/core/apps.py | 26 | |
| LOW | netbox/core/apps.py | 29 | |
| LOW | netbox/core/apps.py | 29 | |
| LOW | netbox/core/apps.py | 29 | |
| LOW | netbox/core/views.py | 69 | |
| 865 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | netbox/netbox/models/mixins.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/core/tests/test_signals.py | 6 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/core/tests/test_management_commands.py | 293 | data_source_model.objects.filter.return_value.update.assert_called_once_with( |
| CRITICAL | netbox/core/models/files.py | 6 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/core/models/change_logging.py | 5 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/core/models/jobs.py | 10 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/core/models/data.py | 10 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/virtualization/forms/model_forms.py | 5 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/virtualization/tests/test_models.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/virtualization/models/clusters.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/virtualization/models/virtualmachines.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/circuits/models/virtual_circuits.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/circuits/models/circuits.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/tenancy/models/contacts.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/vpn/forms/model_forms.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/vpn/forms/bulk_import.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/vpn/tests/test_models.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/vpn/models/tunnels.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/vpn/models/crypto.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/vpn/models/l2vpn.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/dcim/fields.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/dcim/cable_profiles.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/dcim/svg/racks.py | 5 | from django.core.exceptions import FieldError |
| CRITICAL | netbox/dcim/tests/test_models.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/dcim/models/mixins.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/dcim/models/device_component_templates.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/dcim/models/sites.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/dcim/models/modules.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/dcim/models/racks.py | 7 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/dcim/models/cables.py | 10 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/dcim/models/cables.py | 658 | termination = self.termination._meta.model.objects.get(pk=self.termination_id) |
| CRITICAL | netbox/dcim/models/cables.py | 666 | termination = self.termination._meta.model.objects.get(pk=self.termination_id) |
| CRITICAL | netbox/dcim/models/devices.py | 7 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/dcim/models/power.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/dcim/models/base.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/utilities/password_validation.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/utilities/validators.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/utilities/jsonschema.py | 7 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/utilities/filters.py | 5 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/utilities/templatetags/form_helpers.py | 54 | return field.field.widget.__class__.__name__.lower() |
| CRITICAL | netbox/utilities/forms/fields/csv.py | 3 | from django.core.exceptions import FieldError, MultipleObjectsReturned, ObjectDoesNotExist |
| CRITICAL | netbox/wireless/models.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/users/views.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/users/forms/model_forms.py | 8 | from django.core.exceptions import FieldError |
| CRITICAL | netbox/users/tests/test_models.py | 3 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/users/models/users.py | 13 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/users/models/tokens.py | 8 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/ipam/formfields.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/ipam/fields.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/ipam/filtersets.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/ipam/validators.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/ipam/tests/test_models.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/ipam/models/asns.py | 1 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/ipam/models/ip.py | 5 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/ipam/models/vlans.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/extras/validators.py | 4 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/extras/tests/test_signals.py | 5 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/extras/tests/test_customfields.py | 5 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/extras/tests/test_customvalidators.py | 2 | from django.core.exceptions import ValidationError |
| CRITICAL | netbox/extras/models/mixins.py | 7 | from django.core.exceptions import ValidationError |
| 1 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | upgrade.sh | 50 | # Create a new virtual environment |
| MEDIUM | netbox/netbox/configuration_example.py | 71 | # Define a mapping of cryptographic peppers to use when hashing API tokens. A minimum of one pepper is required to |
| MEDIUM | netbox/netbox/tables/columns.py | 320 | # Create the actions dropdown menu |
| MEDIUM | netbox/netbox/tables/tables.py | 268 | # Create a copy to avoid modifying the original Column |
| MEDIUM | netbox/netbox/tests/test_authentication.py | 27 | # Create a v1 token |
| MEDIUM | netbox/netbox/tests/test_authentication.py | 49 | # Create a v2 token |
| MEDIUM | netbox/netbox/tests/test_authentication.py | 630 | # Create a permitted object |
| MEDIUM | netbox/netbox/tests/test_config.py | 36 | # Create a config but don't load it into the cache |
| MEDIUM | netbox/netbox/tests/test_config.py | 46 | # Create a config and load it into the cache |
| MEDIUM | netbox/netbox/tests/test_config.py | 58 | # Create a config and load it into the cache |
| MEDIUM | netbox/netbox/models/deletion.py | 53 | # Create a unique key for this relation |
| MEDIUM | netbox/netbox/api/viewsets/mixins.py | 65 | # Creating a single object |
| MEDIUM | netbox/netbox/views/generic/object_views.py | 588 | # Create the new components |
| MEDIUM | netbox/netbox/authentication/__init__.py | 105 | # Create a dictionary mapping permissions to their constraints |
| MEDIUM | netbox/netbox/authentication/__init__.py | 307 | # Create a new instance of django-auth-ldap's LDAPBackend with our own ObjectPermissions |
| MEDIUM | netbox/core/tests/test_changelog.py | 46 | # Create a custom field on the Site model |
| MEDIUM | netbox/core/tests/test_changelog.py | 56 | # Create a select custom field on the Site model |
| MEDIUM | netbox/core/tests/test_changelog.py | 234 | # Create a Site |
| MEDIUM | netbox/core/tests/test_changelog.py | 264 | # Create a Site |
| MEDIUM | netbox/core/tests/test_changelog.py | 335 | # Create a cable between the interfaces |
| MEDIUM | netbox/core/tests/test_changelog.py | 405 | # Create a custom field on the Site model |
| MEDIUM | netbox/core/tests/test_changelog.py | 415 | # Create a select custom field on the Site model |
| MEDIUM | netbox/core/tests/test_changelog.py | 654 | # Create a new Module |
| MEDIUM | netbox/core/tests/test_changelog.py | 666 | # Create an Interface on the Module |
| MEDIUM | netbox/core/tests/test_api.py | 186 | # Create the test user and assign permissions |
| MEDIUM | netbox/virtualization/tests/test_views.py | 666 | # Create a child interface |
| MEDIUM | netbox/virtualization/tests/test_models.py | 62 | # Create the first VM |
| MEDIUM | netbox/virtualization/tests/test_models.py | 71 | # Create the second VM |
| MEDIUM | netbox/virtualization/tests/test_models.py | 108 | # Create the cluster type |
| MEDIUM | netbox/virtualization/tests/test_models.py | 647 | # Create a VM pinned to device_in_cluster |
| MEDIUM | netbox/virtualization/tests/test_models.py | 665 | # Create a VM pinned to a device |
| MEDIUM | netbox/virtualization/tests/test_api.py | 707 | # Create a child interface |
| MEDIUM | netbox/tenancy/tests/test_models.py | 10 | # Create a tree of contact groups: |
| MEDIUM | netbox/dcim/views.py | 118 | # Create a new Form class from ConfirmationForm |
| MEDIUM | netbox/dcim/svg/cables.py | 429 | # Create the connector |
| MEDIUM | netbox/dcim/tests/test_cablepaths2.py | 1245 | # Create a 2-connector trunk cable with both A-side connectors |
| MEDIUM | netbox/dcim/tests/test_cablepaths2.py | 1988 | # Create a PortMapping between frontport1 and rearport1 |
| MEDIUM | netbox/dcim/tests/test_signals.py | 312 | # Creating a PortMapping connecting the front and rear ports should retrace paths |
| MEDIUM | netbox/dcim/tests/test_views.py | 2658 | # Create a module *without* replicating components |
| MEDIUM | netbox/dcim/tests/test_views.py | 2667 | # Create a second module (in the next bay) with replicated components |
| MEDIUM | netbox/dcim/tests/test_views.py | 977 | # Create the manufacturer and platform |
| MEDIUM | netbox/dcim/tests/test_views.py | 1511 | # Create the manufacturer |
| MEDIUM | netbox/dcim/tests/test_views.py | 2695 | # Create a module *without* replicating components |
| MEDIUM | netbox/dcim/tests/test_views.py | 2716 | # Create a second module (in the next bay) with replicated components |
| MEDIUM | netbox/dcim/tests/test_views.py | 2754 | # Create an interface to be adopted |
| MEDIUM | netbox/dcim/tests/test_views.py | 2761 | # Create a module with adopted components |
| MEDIUM | netbox/dcim/tests/test_views.py | 2798 | # Create an interface to be adopted |
| MEDIUM | netbox/dcim/tests/test_views.py | 2805 | # Create a module with adopted components |
| MEDIUM | netbox/dcim/tests/test_views.py | 3321 | # Create a child interface |
| MEDIUM | netbox/dcim/tests/test_models.py | 1614 | # Create a module type with a rear port template |
| MEDIUM | netbox/dcim/tests/test_models.py | 1620 | # Create a rear port template with 12 positions (splice) |
| MEDIUM | netbox/dcim/tests/test_models.py | 1699 | # Create a module type without any port template mappings |
| MEDIUM | netbox/dcim/tests/test_models.py | 1705 | # Create a rear port template |
| MEDIUM | netbox/dcim/tests/test_models.py | 456 | # Create a CustomField with a default value & assign it to all component models |
| MEDIUM | netbox/dcim/tests/test_models.py | 864 | # Create a disabled device bay with a device being installed |
| MEDIUM | netbox/dcim/tests/test_models.py | 905 | # Create an enabled device bay with a device installed |
| MEDIUM | netbox/dcim/tests/test_models.py | 934 | # Create a CustomField with a default value & assign it to all component models |
| MEDIUM | netbox/dcim/tests/test_models.py | 1749 | # Create a disabled module bay |
| MEDIUM | netbox/dcim/tests/test_models.py | 2120 | # Create a VirtualChassis with two member devices |
| MEDIUM | netbox/dcim/tests/test_models.py | 2165 | # Create a VirtualChassis |
| 63 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | netbox/netbox/filtersets.py | 102 | |
| LOW | netbox/netbox/filtersets.py | 167 | |
| LOW | netbox/netbox/filtersets.py | 373 | |
| LOW | netbox/netbox/jobs.py | 99 | |
| LOW | netbox/netbox/tables/tables.py | 119 | |
| LOW | netbox/netbox/models/__init__.py | 83 | |
| LOW | netbox/netbox/models/features.py | 139 | |
| LOW | netbox/netbox/models/deletion.py | 15 | |
| LOW | netbox/netbox/search/backends.py | 118 | |
| LOW | netbox/netbox/search/backends.py | 199 | |
| LOW | netbox/netbox/graphql/pagination.py | 29 | |
| LOW | netbox/netbox/api/fields.py | 65 | |
| LOW | netbox/netbox/api/pagination.py | 115 | |
| LOW | netbox/netbox/views/generic/object_views.py | 270 | |
| LOW | netbox/netbox/views/generic/object_views.py | 553 | |
| LOW | netbox/netbox/views/generic/bulk_views.py | 314 | |
| LOW | netbox/netbox/views/generic/bulk_views.py | 407 | |
| LOW | netbox/netbox/views/generic/bulk_views.py | 475 | |
| LOW | netbox/netbox/views/generic/bulk_views.py | 593 | |
| LOW | netbox/netbox/views/generic/bulk_views.py | 686 | |
| LOW | netbox/netbox/views/generic/bulk_views.py | 778 | |
| LOW | netbox/netbox/views/generic/bulk_views.py | 912 | |
| LOW | netbox/netbox/views/generic/bulk_views.py | 946 | |
| LOW | netbox/netbox/views/generic/bulk_views.py | 1049 | |
| LOW | netbox/netbox/views/generic/bulk_views.py | 1172 | |
| LOW | netbox/core/signals.py | 88 | |
| LOW | netbox/core/signals.py | 165 | |
| LOW | netbox/core/models/data.py | 180 | |
| LOW | netbox/virtualization/forms/model_forms.py | 142 | |
| LOW | netbox/virtualization/forms/bulk_edit.py | 293 | |
| LOW | netbox/virtualization/models/virtualmachines.py | 288 | |
| LOW | netbox/circuits/models/circuits.py | 417 | |
| LOW | netbox/vpn/forms/model_forms.py | 462 | |
| LOW | netbox/dcim/views.py | 130 | |
| LOW | netbox/dcim/svg/cables.py | 152 | |
| LOW | netbox/dcim/svg/cables.py | 336 | |
| LOW | netbox/dcim/forms/model_forms.py | 1390 | |
| LOW | netbox/dcim/forms/model_forms.py | 1876 | |
| LOW | netbox/dcim/forms/connections.py | 12 | |
| LOW | netbox/dcim/forms/connections.py | 16 | |
| LOW | netbox/dcim/forms/object_create.py | 57 | |
| LOW | netbox/dcim/forms/common.py | 74 | |
| LOW | netbox/dcim/forms/bulk_edit.py | 1611 | |
| LOW | netbox/dcim/models/mixins.py | 105 | |
| LOW | netbox/dcim/models/modules.py | 327 | |
| LOW | netbox/dcim/models/racks.py | 487 | |
| LOW | netbox/dcim/models/racks.py | 550 | |
| LOW | netbox/dcim/models/cables.py | 275 | |
| LOW | netbox/dcim/models/cables.py | 372 | |
| LOW | netbox/dcim/models/cables.py | 841 | |
| LOW | netbox/dcim/api/serializers_/devices.py | 198 | |
| LOW | netbox/utilities/fields.py | 77 | |
| LOW | netbox/utilities/fields.py | 237 | |
| LOW | netbox/utilities/prefetch.py | 11 | |
| LOW | netbox/utilities/choices.py | 19 | |
| LOW | netbox/utilities/tracking.py | 62 | |
| LOW | netbox/utilities/templatetags/tabs.py | 20 | |
| LOW | netbox/utilities/templatetags/form_helpers.py | 113 | |
| LOW | netbox/utilities/templatetags/navigation.py | 14 | |
| LOW | netbox/utilities/templatetags/helpers.py | 451 | |
| 41 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | netbox/netbox/tests/test_authentication.py | 0 | test enabling remote authentication with the default configuration. |
| HIGH | netbox/netbox/tests/test_authentication.py | 0 | test enabling remote authentication with the default configuration. |
| HIGH | netbox/netbox/tests/test_authentication.py | 0 | test enabling remote authentication with the default configuration. |
| HIGH | netbox/netbox/tests/test_authentication.py | 0 | test enabling remote authentication with the default configuration. |
| HIGH | netbox/netbox/views/generic/object_views.py | 0 | get request handler. args: request: the current request |
| HIGH | netbox/netbox/views/generic/object_views.py | 0 | get request handler. args: request: the current request |
| HIGH | netbox/netbox/views/generic/bulk_views.py | 0 | get request handler. args: request: the current request |
| HIGH | netbox/dcim/tests/test_forms.py | 0 | test that saving invalid interface mode and tagged/untagged vlans works properly |
| HIGH | netbox/dcim/tests/test_forms.py | 0 | test that saving invalid interface mode and tagged/untagged vlans works properly |
| HIGH | netbox/dcim/tests/test_forms.py | 0 | test that saving invalid interface mode and tagged/untagged vlans works properly |
| HIGH | netbox/dcim/tests/test_forms.py | 0 | test that saving invalid interface mode and tagged/untagged vlans works properly |
| HIGH | netbox/dcim/tests/test_views.py | 0 | custom import test for yaml-based imports (versus csv) |
| HIGH | netbox/dcim/tests/test_views.py | 0 | custom import test for yaml-based imports (versus csv) |
| HIGH | netbox/ipam/tests/test_views.py | 0 | custom import test for yaml-based imports (versus csv) |
| HIGH | netbox/ipam/fields.py | 0 | return asdot notation for as numbers greater than 16 bits. |
| HIGH | netbox/ipam/models/asns.py | 0 | return asdot notation for as numbers greater than 16 bits. |
| HIGH | netbox/ipam/models/asns.py | 0 | return asdot notation for as numbers greater than 16 bits. |
| HIGH | netbox/ipam/models/asns.py | 0 | return asdot notation for as numbers greater than 16 bits. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | netbox/netbox/api/pagination.py | 26 | offset-based pagination. In cursor mode, `count` is omitted (null) for performance. |
| HIGH | netbox/dcim/forms/bulk_edit.py | 1629 | # Query for VLANs assigned to the same site and VLANs with no site assigned (null). |
| HIGH | netbox/dcim/models/cables.py | 894 | # If not null, push cable positions onto the stack |
| HIGH | netbox/utilities/tests/test_filter_modifiers.py | 113 | # Simulate a query for objects with no tenant assigned (?tenant_id=null) |
| HIGH | netbox/extras/lookups.py | 55 | A key is considered empty if it is "", null, or does not exist. |
| HIGH | netbox/extras/tests/test_models.py | 1236 | clean() should accept a JSON object (or null) as action_data. |
| HIGH | netbox/extras/models/models.py | 146 | # action_data must be a JSON object (or null) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | netbox/netbox/jobs.py | 117 | except Exception as e: |
| LOW | netbox/netbox/tables/columns.py | 593 | except Exception as e: |
| LOW | netbox/netbox/tables/columns.py | 602 | except Exception: |
| MEDIUM | netbox/netbox/tables/columns.py | 589 | def render(self, record, table, **kwargs): |
| MEDIUM | netbox/netbox/tables/columns.py | 598 | def value(self, record, table, **kwargs): |
| LOW | netbox/netbox/views/misc.py | 47 | except Exception: |
| LOW | netbox/netbox/views/misc.py | 59 | except Exception: |
| LOW | netbox/netbox/views/generic/bulk_views.py | 137 | except Exception as e: |
| LOW | netbox/core/checks.py | 67 | except Exception: |
| LOW | netbox/core/apps.py | 47 | except Exception: |
| LOW | netbox/core/jobs.py | 53 | except Exception as e: |
| LOW | netbox/core/tables/tasks.py | 110 | except Exception as e: |
| MEDIUM | netbox/core/tables/tasks.py | 107 | def render_callable(self, value, record): |
| LOW | netbox/core/tests/test_data_backends.py | 78 | except Exception: |
| LOW | netbox/core/management/commands/syncdatasource.py | 41 | except Exception as e: |
| LOW | netbox/utilities/request.py | 117 | except Exception as e: |
| LOW | netbox/utilities/api.py | 66 | except Exception: |
| LOW | netbox/utilities/rqworker.py | 45 | except Exception: |
| MEDIUM | netbox/utilities/rqworker.py | 32 | def heartbeat(self, *args, **kwargs): |
| LOW | netbox/utilities/templatetags/plugins.py | 45 | except Exception as e: |
| LOW | netbox/extras/jobs.py | 68 | except Exception as e: |
| LOW | netbox/extras/scripts.py | 611 | except Exception as e: |
| LOW | netbox/extras/webhooks.py | 78 | except Exception as e: |
| LOW | netbox/extras/views.py | 1307 | except Exception as e: |
| LOW | netbox/extras/templatetags/dashboard.py | 14 | except Exception as e: |
| LOW | netbox/extras/templatetags/custom_links.py | 68 | except Exception as e: |
| LOW | netbox/extras/templatetags/custom_links.py | 83 | except Exception as e: |
| LOW | netbox/extras/forms/scripts.py | 89 | except Exception as e: |
| LOW | netbox/extras/models/scripts.py | 140 | except Exception as e: |
| LOW | netbox/extras/api/mixins.py | 50 | except Exception as e: |
| MEDIUM | netbox/extras/api/mixins.py | 47 | def render_configtemplate(self, request, configtemplate, context): |
| LOW | netbox/extras/api/serializers_/scripts.py | 48 | except Exception as e: |
| LOW | netbox/extras/api/serializers_/scripts.py | 74 | except Exception: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | netbox/netbox/configuration_example.py | 41 | # Set this to True to skip TLS certificate verification |
| LOW | netbox/netbox/configuration_example.py | 57 | # Set this to True to skip TLS certificate verification |
| LOW | netbox/netbox/plugins/urls.py | 25 | # Check if the plugin specifies any base URLs |
| LOW | netbox/netbox/plugins/urls.py | 32 | # Check if the plugin specifies any API URLs |
| LOW | netbox/netbox/plugins/views.py | 55 | # Check if the plugin specifies any API URLs |
| LOW | netbox/netbox/views/generic/bulk_views.py | 614 | # Iterate through data and bind each record to a new model form instance. |
| LOW | netbox/dcim/tests/test_models.py | 1591 | # Assign bay2 to module1 and verify parent is now set to bay1 (module1's bay) |
| LOW | netbox/dcim/models/modules.py | 367 | # Check if there's a component with the same name already |
| LOW | netbox/dcim/models/modules.py | 369 | # Assign it to the module |
| LOW | netbox/utilities/fields.py | 106 | # Check if the content type actually exists |
| LOW | netbox/utilities/templatetags/buttons.py | 42 | # Check if this user has already bookmarked the object |
| LOW | netbox/utilities/templatetags/buttons.py | 77 | # Check if this user has already subscribed to the object |
| LOW | netbox/utilities/templatetags/helpers.py | 494 | # Check if this is a modifier-enhanced field |
| LOW | netbox/utilities/forms/fields/csv.py | 27 | # Check if value is omitted using parent behavior |
| LOW | netbox/ipam/forms/model_forms.py | 553 | # Check if we need to create a new IPAddress for the group |
| LOW | netbox/ipam/tests/test_filtersets.py | 2101 | # Assign VLANs to device interfaces |
| LOW | netbox/ipam/tests/test_filtersets.py | 2109 | # Assign VLANs to VM interfaces |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | base_requirements.txt | 21 | # Django Debug Toolbar extension for GraphiQL |
| LOW | base_requirements.txt | 41 | |
| LOW | base_requirements.txt | 141 | # Requests |
| LOW | base_requirements.txt | 161 | |
| LOW | netbox/netbox/configuration_example.py | 1 | ######################### |
| LOW | netbox/netbox/configuration_example.py | 41 | # Set this to True to skip TLS certificate verification |
| LOW | netbox/netbox/configuration_example.py | 61 | # 'CA_CERT_PATH': '/etc/ssl/certs/ca.crt', |
| LOW | netbox/netbox/configuration_example.py | 81 | |
| LOW | netbox/netbox/configuration_example.py | 141 | } |
| LOW | netbox/netbox/configuration_example.py | 181 | # the default value of this setting is derived from the installed location. |
| LOW | netbox/netbox/configuration_example.py | 221 | |
| LOW | netbox/netbox/configuration_example.py | 241 | # following configuration is used: |
| LOW | netbox/netbox/authentication/misc.py | 1 | # Copyright (c) 2009, Peter Sagerson |
| LOW | netbox/core/signals.py | 201 | objectchange.user = request.user |
| LOW | netbox/core/signals.py | 221 | continue |
| LOW | netbox/templates/graphql/graphiql.html | 61 | |
| LOW | netbox/ipam/constants.py | 1 | from django.db.models import Q |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | netbox/dcim/models/cables.py | 890 | # Step 1: Record the near-end termination object(s) |
| LOW | netbox/dcim/models/cables.py | 898 | # Step 2: Determine the attached links (Cable or WirelessLink), if any |
| LOW | netbox/dcim/models/cables.py | 914 | # Step 3: Record asymmetric paths as split |
| LOW | netbox/dcim/models/cables.py | 920 | # Step 4: Record the links, keeping cables in order to allow for SVG rendering |
| LOW | netbox/dcim/models/cables.py | 927 | # Step 5: Update the path status if a link is not connected |
| LOW | netbox/dcim/models/cables.py | 932 | # Step 6: Determine the far-end terminations |
| LOW | netbox/dcim/models/cables.py | 1022 | # Step 7: Record the far-end termination object(s) |
| LOW | netbox/dcim/models/cables.py | 1027 | # Step 8: Determine the "next hop" terminations, if applicable |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | netbox/netbox/search/backends.py | 190 | # Omit any results pertaining to an object the user does not have permission to view |
| MEDIUM | netbox/core/signals.py | 120 | # This will impact changes that utilize clear() however so we may want to give consideration for this branch |
| MEDIUM | netbox/core/models/data.py | 356 | # TODO: Something more robust |
| LOW | netbox/core/api/schema.py | 137 | # if not bulk - just return normal id |
| MEDIUM | netbox/dcim/models/cables.py | 226 | # Query self.terminations.all() to leverage cached results |
| LOW | netbox/utilities/paginator.py | 48 | # When dealing with five or fewer pages, simply return the whole list. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | netbox/netbox/configuration_example.py | 91 | # ('John Doe', 'jdoe@example.com'), |
| LOW | netbox/netbox/tests/test_search.py | 23 | comments='Lorem ipsum etcetera' |
| LOW | netbox/netbox/tests/test_search.py | 32 | comments='Lorem ipsum etcetera' |
| LOW | netbox/netbox/tests/test_search.py | 41 | comments='Lorem ipsum etcetera' |
| LOW | netbox/netbox/tests/test_search.py | 104 | comments='Lorem ipsum etcetera' |
| LOW | netbox/extras/tests/test_management_commands.py | 251 | email='admin@example.com', |
| LOW | docs/plugins/development/index.md | 167 | {name = "John Doe", email = "test@netboxlabs.com"}, |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | netbox/project-static/styles/custom/_misc.scss | 100 | // ── Sticky action bars ────────────────────────────────────── |
| MEDIUM | netbox/project-static/styles/custom/_misc.scss | 182 | // ── /Sticky action bars ───────────────────────────────────── |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | netbox/utilities/templatetags/helpers.py | 98 | Render the action URL node. Args: context: The template context Returns: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | upgrade.sh | 150 | echo "Upgrade complete! Don't forget to restart the NetBox services:" |
| MEDIUM | netbox/extras/constants.py | 109 | 'This is your personal dashboard. Feel free to customize it by rearranging, resizing, or removing ' |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | netbox/netbox/tests/test_model_test_coverage.py | 278 | def helper(self): |