summaryrefslogtreecommitdiff
path: root/packages/backend/src/queue
diff options
context:
space:
mode:
authorLaura Hausmann <laura@hausmann.dev>2024-10-24 04:37:47 +0200
committerJulia Johannesen <julia@insertdomain.name>2024-11-20 19:17:24 -0500
commitad8e8793c7b0ecc08bb271cd83ba04f6f8be7036 (patch)
tree9d531aa82dd8a8936c2513260e3edecd7047ab76 /packages/backend/src/queue
parentfix: primitive 4: missing same-origin identifier validation of collection-wra... (diff)
downloadsharkey-ad8e8793c7b0ecc08bb271cd83ba04f6f8be7036.tar.gz
sharkey-ad8e8793c7b0ecc08bb271cd83ba04f6f8be7036.tar.bz2
sharkey-ad8e8793c7b0ecc08bb271cd83ba04f6f8be7036.zip
fix: primitives 5 & 8: reject activities with non-string identifiers
Diffstat (limited to 'packages/backend/src/queue')
-rw-r--r--packages/backend/src/queue/processors/InboxProcessorService.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/backend/src/queue/processors/InboxProcessorService.ts b/packages/backend/src/queue/processors/InboxProcessorService.ts
index 11b00bb683..f453d7d1ae 100644
--- a/packages/backend/src/queue/processors/InboxProcessorService.ts
+++ b/packages/backend/src/queue/processors/InboxProcessorService.ts
@@ -193,6 +193,9 @@ export class InboxProcessorService implements OnApplicationShutdown {
throw new Bull.UnrecoverableError(`skip: signerHost(${signerHost}) !== activity.id host(${activityIdHost}`);
}
}
+ else {
+ throw new Bull.UnrecoverableError('skip: activity id is not a string');
+ }
// Update stats
this.federatedInstanceService.fetch(authUser.user.host).then(i => {