Restrict normalizeVmServiceUri to allowed schemes and loopback hosts (#10091) * Step 3.1: Restrict normalizeVmServiceUri to allowed schemes and loopback hosts (Issues #86, #93) Previously, `normalizeVmServiceUri` accepted _any_ VM Service URI in the query parameter(`?uri=...`), which could lead to DevTools to connect to an arbitrary remote server. This restricts the transport types that can be used to connect, and verifies that the URI's host is either `localhost`, an IPv6 loopback address (`::1` or `[::1]`) or an IPv4 loopback address in the `127.0.0.0/8` range. This also pulls `parseMessagePortUri` out into it's own helper, `message_port_connection.dart` to continue to allow `messageport:https://dartpad.dev`. This makes progress towards: https://github.com/flutter/dash-devexp-internal/issues/86 https://github.com/flutter/dash-devexp-internal/issues/93 * Add release notes entry * Address code review comment
Dart & Flutter DevTools is a suite of performance tools for Dart and Flutter.
For documentation on installing and trying out DevTools, please see our docs.
Contributions welcome! See our contributing page for an overview of how to build and contribute to the project.
By using Dart DevTools, you agree to the Google Terms of Service. To understand how we use data collected from this service, see the Google Privacy Policy.