@fedify/fedify 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGES.md CHANGED
@@ -3,6 +3,16 @@
3
3
  Fedify changelog
4
4
  ================
5
5
 
6
+ Version 0.13.1
7
+ --------------
8
+
9
+ Released on August 18, 2024.
10
+
11
+ - Fixed a vulnerability where the `getActorHandle()` function had trusted
12
+ the hostname of WebFinger aliases that had not matched the hostname of the
13
+ actor ID (URI).
14
+
15
+
6
16
  Version 0.13.0
7
17
  --------------
8
18
 
@@ -77,6 +87,16 @@ Released on August 7, 2024.
77
87
  [Nitro]: https://nitro.unjs.io/
78
88
 
79
89
 
90
+ Version 0.12.3
91
+ --------------
92
+
93
+ Released on August 18, 2024.
94
+
95
+ - Fixed a vulnerability where the `getActorHandle()` function had trusted
96
+ the hostname of WebFinger aliases that had not matched the hostname of the
97
+ actor ID (URI).
98
+
99
+
80
100
  Version 0.12.2
81
101
  --------------
82
102
 
@@ -86,6 +86,9 @@ export async function getActorHandle(actor, options = {}) {
86
86
  for (const alias of aliases) {
87
87
  const match = alias.match(/^acct:([^@]+)@([^@]+)$/);
88
88
  if (match != null) {
89
+ const hostname = new URL(`https://${match[2]}/`).hostname;
90
+ if (hostname !== actorId.hostname)
91
+ continue;
89
92
  return normalizeActorHandle(`@${match[1]}@${match[2]}`, options);
90
93
  }
91
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -1 +1 @@
1
- {"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../../src/vocab/actor.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE/E;;;GAGG;AACH,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,KAAK,G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