)]}'
{
  "commit": "29d90990bf6c4a083d59929ba6476fc5ca77487a",
  "tree": "19064bfd905b3ecc45a5d158a17a215152027054",
  "parents": [
    "515a608b373f7ba4fe3e76b3c804c71de92796ab"
  ],
  "author": {
    "name": "John Ryan",
    "email": "ryjohn@google.com",
    "time": "Wed Nov 11 18:43:13 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Nov 11 10:43:13 2026 -0800"
  },
  "message": "Validate incoming requests to DevTools server (#10082)\n\n* Validate incoming requests to DevTools server\n\nThe DevTools server (`server_api.dart` now has a `_validateRequest` function that performs a variety of checks to prevent cross-site request forgery and DNS rebinding:\n\n* Prevents external websites from triggering local operations through cross-origin `GET` requests. Requests to the DevTools server are now required to be `POST` or `OPTIONS`.  Web browsers will allow cross-origin `GET` requests through `img` tags or the `fetch()` API. Malicious websites could call `api/notifyForVmServiceConnection` and connect to a remote VM service, which could lead to CSRF attacks where DTD authentication tokens are read through `/api/getDtdUri`.\u0026nbsp;\n* Prevents DNS rebinding attacks by validating that the `host` header is within an allowlist of loopback addresses (`localhost`, `127.0.0.1`, etc) and is not malformed to mitigate DNS rebinding.\n* Rejects requests where the `Sec-Fetch-Site` header is set to `cross-site` unless the `Origin` header is a valid loopback address. Otherwise, only `same-origin`, `same-site`, or `none` are allowed.\n\n* Add release note for DevTools server request validation\n\n* Address review feedback on DevTools server validation\n\nEnforce `X-DevTools-Request` on `POST` requests, require `http`/`https`\norigins without a path or query, disallow `Sec-Fetch-Site: same-site`\nwhen `Origin` is absent, and return an `Allow` header on `405`\nresponses. Also add `disableOriginCheck` and `allowedOrigins` parameters\nto `ServerApi.handle` for SDK flag parity and update the server tests.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8b40cbbf2dafdee3042ec89aa5e803fc2c7a62c2",
      "old_mode": 33188,
      "old_path": "packages/devtools_app/lib/src/shared/server/server.dart",
      "new_id": "61aaf1ad7b761e1b308773f50c9f3cc8ad3e181b",
      "new_mode": 33188,
      "new_path": "packages/devtools_app/lib/src/shared/server/server.dart"
    },
    {
      "type": "modify",
      "old_id": "16d352fb4931349eb23a0ce9f118f30000f17a11",
      "old_mode": 33188,
      "old_path": "packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md",
      "new_id": "338e629da8340b613364b3d4d9992b58ba5f278f",
      "new_mode": 33188,
      "new_path": "packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md"
    },
    {
      "type": "modify",
      "old_id": "ee6a54d68db8e77a61b48f7fd2a5bd1191b2d57c",
      "old_mode": 33188,
      "old_path": "packages/devtools_app/web/flutter_bootstrap.js",
      "new_id": "dbe1a2f8918697731d79d89af42dc9274fac6e6e",
      "new_mode": 33188,
      "new_path": "packages/devtools_app/web/flutter_bootstrap.js"
    },
    {
      "type": "modify",
      "old_id": "d49d5c4df615a4049fbf7c5a3941d794aaa025d4",
      "old_mode": 33188,
      "old_path": "packages/devtools_shared/CHANGELOG.md",
      "new_id": "3c8f1dff46923442fa48d9e09d61736b9dc41702",
      "new_mode": 33188,
      "new_path": "packages/devtools_shared/CHANGELOG.md"
    },
    {
      "type": "modify",
      "old_id": "fd2ca9338ec92a2068c7066e85c68e25448862e3",
      "old_mode": 33188,
      "old_path": "packages/devtools_shared/lib/src/devtools_api.dart",
      "new_id": "c3d9a7e393f028e43b532948c57b9c59db107a27",
      "new_mode": 33188,
      "new_path": "packages/devtools_shared/lib/src/devtools_api.dart"
    },
    {
      "type": "modify",
      "old_id": "b4d6b7e8d934a7a260b01cfd7737533db1bac5c9",
      "old_mode": 33188,
      "old_path": "packages/devtools_shared/lib/src/server/server_api.dart",
      "new_id": "0b37b3feb0bb969642268612e63b944e20dcf226",
      "new_mode": 33188,
      "new_path": "packages/devtools_shared/lib/src/server/server_api.dart"
    },
    {
      "type": "modify",
      "old_id": "e3d39f26dee8d50a66872834bbabd5f38c83940a",
      "old_mode": 33188,
      "old_path": "packages/devtools_shared/test/server/deeplink_api_test.dart",
      "new_id": "1ce9a91ad4a4a32745a3f9931b429456c0e52169",
      "new_mode": 33188,
      "new_path": "packages/devtools_shared/test/server/deeplink_api_test.dart"
    },
    {
      "type": "modify",
      "old_id": "70a138acf323341bcb92c01f25e4cb5f30c318dc",
      "old_mode": 33188,
      "old_path": "packages/devtools_shared/test/server/devtools_extensions_api_test.dart",
      "new_id": "2ae8d8bc3520c8a33f85bff983fc4b62a31896f2",
      "new_mode": 33188,
      "new_path": "packages/devtools_shared/test/server/devtools_extensions_api_test.dart"
    },
    {
      "type": "modify",
      "old_id": "e6dd18d13b4d9b9d829f3aa1c2f108a4a0b09e15",
      "old_mode": 33188,
      "old_path": "packages/devtools_shared/test/server/dtd_api_test.dart",
      "new_id": "873692381b1aadf40e23be679f0ea986db1d4dba",
      "new_mode": 33188,
      "new_path": "packages/devtools_shared/test/server/dtd_api_test.dart"
    },
    {
      "type": "modify",
      "old_id": "0a9fad7f616170a10b71d03fad7b486c1d0340d4",
      "old_mode": 33188,
      "old_path": "packages/devtools_shared/test/server/general_api_test.dart",
      "new_id": "f0902307d637d465cf8fcebe86f79f30343bfff3",
      "new_mode": 33188,
      "new_path": "packages/devtools_shared/test/server/general_api_test.dart"
    },
    {
      "type": "modify",
      "old_id": "a5a55b681528a8c21b933a0c20750f6cd381cc2c",
      "old_mode": 33188,
      "old_path": "pubspec.lock",
      "new_id": "470e9668f34c3f50dbe08b1e4e263c160de68768",
      "new_mode": 33188,
      "new_path": "pubspec.lock"
    }
  ]
}
