@camstack/server 1.2.452 → 1.2.454

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * Used by `/api/oauth2/authorize` to admit a `redirect_uri` whose host the hub
6
6
  * cannot know in advance — a self-hosted Home Assistant at
7
- * `http://192.168.1.40:8123/auth/external/callback`. Pairing "private host" with
7
+ * `http://192.168.x.x:8123/auth/external/callback`. Pairing "private host" with
8
8
  * "exact path" is what keeps that from being a wildcard prefix: a public host
9
9
  * never satisfies it, so the worst an attacker can aim a code at is a machine
10
10
  * they already need LAN presence to read.
@@ -101,7 +101,7 @@ function extractUserAgent(req) {
101
101
  return null;
102
102
  }
103
103
  /**
104
- * Strip an IPv4-mapped IPv6 prefix (`::ffff:192.168.1.5` → `192.168.1.5`)
104
+ * Strip an IPv4-mapped IPv6 prefix (`::ffff:192.168.x.x` → `192.168.x.x`)
105
105
  * and any zone id (`fe80::1%en0` → `fe80::1`) so the range checks below
106
106
  * see a clean address.
107
107
  */
@@ -216,13 +216,13 @@ function isPrivateIpv4(ip) {
216
216
  if (a === undefined || b === undefined)
217
217
  return false;
218
218
  if (a === 10)
219
- return true; // 10.0.0.0/8
219
+ return true; // 10.x.x.x/8
220
220
  if (a === 127)
221
221
  return true; // 127.0.0.0/8 loopback
222
222
  if (a === 172 && b >= 16 && b <= 31)
223
223
  return true; // 172.16.0.0/12
224
224
  if (a === 192 && b === 168)
225
- return true; // 192.168.0.0/16
225
+ return true; // 192.168.x.x/16
226
226
  if (a === 169 && b === 254)
227
227
  return true; // 169.254.0.0/16 link-local
228
228
  return false;
@@ -347,7 +347,7 @@ function redactConfigEntries(data) {
347
347
  *
348
348
  * The stream surfaces (`cameraStreams.getRtspEntries`,
349
349
  * `streamBroker.getRtspEntry`, `deviceOps.getStreamSources`, …) hand a
350
- * non-admin caller `rtsp://admin:hunter2@192.168.1.139/…` verbatim: a
350
+ * non-admin caller `rtsp://admin:hunter2@192.168.x.x/…` verbatim: a
351
351
  * read-only token can open every camera by copy-pasting the string. These
352
352
  * are NOT config blobs, so {@link redactRecord} never sees them — the leak
353
353
  * lives in a plain `url` / `mutedUrl` string field.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.452",
3
+ "version": "1.2.454",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "files": [
@@ -37,18 +37,18 @@
37
37
  ]
38
38
  },
39
39
  "dependencies": {
40
- "@camstack/addon-admin-ui": "1.2.325",
41
- "@camstack/addon-agent-ui": "1.2.170",
42
- "@camstack/addon-auth": "1.2.124",
43
- "@camstack/addon-decoder-nodeav": "1.2.117",
44
- "@camstack/addon-notifiers": "1.2.124",
45
- "@camstack/addon-pipeline": "1.2.323",
46
- "@camstack/addon-pipeline-orchestrator": "1.2.278",
47
- "@camstack/addon-post-analysis": "1.2.327",
48
- "@camstack/sdk": "1.2.119",
49
- "@camstack/system": "1.2.350",
50
- "@camstack/types": "1.2.302",
51
- "@camstack/ui-library": "1.2.228",
40
+ "@camstack/addon-admin-ui": "1.2.328",
41
+ "@camstack/addon-agent-ui": "1.2.172",
42
+ "@camstack/addon-auth": "1.2.126",
43
+ "@camstack/addon-decoder-nodeav": "1.2.119",
44
+ "@camstack/addon-notifiers": "1.2.126",
45
+ "@camstack/addon-pipeline": "1.2.325",
46
+ "@camstack/addon-pipeline-orchestrator": "1.2.280",
47
+ "@camstack/addon-post-analysis": "1.2.331",
48
+ "@camstack/sdk": "1.2.120",
49
+ "@camstack/system": "1.2.352",
50
+ "@camstack/types": "1.2.303",
51
+ "@camstack/ui-library": "1.2.230",
52
52
  "@fastify/compress": "^9.0.0",
53
53
  "@fastify/cookie": "^11.0.2",
54
54
  "@fastify/cors": "^11.2.0",