Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local-only post sending "null" into other servers' inboxes #11306

Open
tribela opened this issue Jul 17, 2023 · 3 comments
Open

Local-only post sending "null" into other servers' inboxes #11306

tribela opened this issue Jul 17, 2023 · 3 comments

Comments

@tribela
Copy link

tribela commented Jul 17, 2023

https://github.com/misskey-dev/misskey/blame/9fc3e19582a8ff6f60e6a0bc9d58b5ef11c1c7cd/packages/backend/src/core/NoteCreateService.ts#L621

This code returns null if local-only. But null-checking is missing and sent to many inboxes

As the message is signed with author's key, This could be a privacy leak

@ltlapy
Copy link
Contributor

ltlapy commented Jul 17, 2023

💡 Summary

null値のAP Activityを配送する場合がある

特定のユーザーからInboxにnull値だけのActivityが届くが、そのユーザーの投稿一覧を確認すると大体は連合に送らない(ローカルのみ)設定になっている投稿が多いらしいです

🥰 Expected Behavior

Null のみのActivityを配送しない

🤬 Actual Behavior

Null のみのActivityが配送される場合がある

📝 Steps to Reproduce

  1. 連合に送らない(ローカルのみ)ノートを作成する
  2. nullのみのAP Deliverが発生し、リモートのソフトウェアによってはエラーが発生するらしい(現時点のMastodonを含む)

📌 Environment

💻 Frontend

  • Model and OS of the device(s): Windows 11 22H2 (Build 22621.1325)
  • Browser:
    Microsoft Edge 114.0.1823.82 (Official Build) (64-bits)
  • Server URL:
    k.lapy.link and more
  • Misskey:
    13.14.0

🛰 Backend (for server admin)

他のサーバー管理者によるとこのサーバーに限らず送られてくるらしいです

  • Installation Method or Hosting Service: docker compose
  • Misskey: 13.14.0-beta.4-92d9946+klapy.1
  • Node: 20.3.1
  • PostgreSQL: 15.2
  • Redis: 7.0.12
  • OS and Architecture: Oracle Linux Server 8.6 aarch64 - Oracle Cloud

@tribela
Copy link
Author

tribela commented Jul 17, 2023

Related: mastodon/mastodon#26021

ZerglingGo added a commit to ZerglingGo/misskey that referenced this issue Jul 17, 2023
ZerglingGo added a commit to ZerglingGo/misskey that referenced this issue Jul 17, 2023
@tirr-c
Copy link

tirr-c commented Jul 17, 2023

It's actually null-checked just before being delivered, patched quite recently: b318789

if (content == null) return null;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants