Commit Graph

26767 Commits

Author SHA1 Message Date
32bb07d5d0
Merge branch 'oscar' into postVisibility 2024-12-31 21:00:59 +09:00
836df3bf0c
Merge remote-tracking branch 'upstream/io' into oscar 2024-12-31 18:17:43 +09:00
あわわわとーにゅ
b5a796ffd1
fix(backend/UtilityService): 非標準ポート番号環境でURIのローカル判定が常にfalseになる問題を修正 (MisskeyIO#867) 2024-12-31 10:29:44 +09:00
あわわわとーにゅ
3750888c6a
fix(frontend/role): ロールの割り当て時メモを入力しないとキャンセル扱いされる問題を修正 (MisskeyIO#866) 2024-12-31 09:45:23 +09:00
あわわわとーにゅ
f7ac3c5493
Revert "perf(queue): BullMQ + DragonflyDB で Hashtag を使用しすべてをロックしないようにする (MisskeyIO#838)" (MisskeyIO#865)
This reverts commit 8c81bb9b6a partially.
2024-12-31 09:44:43 +09:00
あわわわとーにゅ
851a3e35ae
enhance(ux): defaultWithRepliesの既定値をtrueにする (MisskeyIO#864) 2024-12-31 09:43:54 +09:00
b2688bb33e
chore: bump version to 2024.5.0-oscar.22 2024-12-30 23:44:05 +09:00
5f931855be
Merge upstream
Some checks reported errors
Publish Docker Image (Misskey) TeamCity build failed
2024-12-30 23:28:39 +09:00
あわわわとーにゅ
928f8ea926
Bump up version to 2024.5.0-io.5d (MisskeyIO#862) 2024-12-28 18:54:25 +09:00
あわわわとーにゅ
7c5e24c07c
fix(ActivityPub): リモートサーバーのリダイレクトを信頼する (MisskeyIO#860) 2024-12-28 18:50:41 +09:00
あわわわとーにゅ
543325582c
fix(ActivityPub): URIとURLが一致しない場合、同じドメイン内のサブドメインの1階層の違いまでは許容する (MisskeyIO#859) 2024-12-28 18:49:13 +09:00
あわわわとーにゅ
7bcc254fd4
fix(frontend): 支援メニューがデッキUIで正常に動作しない問題を修正 (MisskeyIO#861)
+ kawaiiモードのメニュー追加

MSKY-1
2024-12-28 14:56:37 +09:00
cfcbcd8379
wip: postVisibilityLimit
Some checks failed
Publish Docker Image (Misskey) TeamCity build failed
2024-12-28 14:36:49 +09:00
407abe42cf
chore: bump version to 2024.5.0-oscar.21c
Some checks failed
Publish Docker Image (Misskey) TeamCity build failed
2024-12-28 14:36:37 +09:00
あわわわとーにゅ
ff195d4f8d
cleanup(backend): refactor UtilityService (MisskeyIO#858) 2024-12-28 11:39:48 +09:00
あわわわとーにゅ
cb73368c83
update deps (MisskeyIO#857) 2024-12-28 11:39:27 +09:00
9cdfddddb0
fix(mute-block): delete is danger action 2024-12-26 19:13:34 +09:00
あわわわとーにゅ
d8fe4bec10
Bump up version to 2024.5.0-io.5c (MisskeyIO#855) 2024-12-25 15:50:58 +09:00
あわわわとーにゅ
7bbbbd0b89
enhance(data-usage): ストリーム上で送るデータがない場合はオブジェクトごと省略するように (MisskeyIO#853) 2024-12-25 15:40:37 +09:00
あわわわとーにゅ
84505cb7ad
fix(frontend/media): メディアプロキシ使用時オーディオが再生されない問題を修正 (MisskeyIO#854) 2024-12-25 15:40:21 +09:00
あわわわとーにゅ
1c6829d429
Bump up version to 2024.5.0-io.5b (MisskeyIO#850) 2024-12-25 14:14:03 +09:00
あわわわとーにゅ
8b17ab77b4
fix(cdn-caching): 自分のリアクションが表示されない問題を修正 (MisskeyIO#851) 2024-12-25 14:13:45 +09:00
あわわわとーにゅ
5073467f1d
enhance(data-usage): remove GA timing report on fetch note json (MisskeyIO#849) 2024-12-25 13:02:32 +09:00
あわわわとーにゅ
36e238197e
Bump up version to 2024.5.0-io.5a (MisskeyIO#847) 2024-12-25 11:37:24 +09:00
riku6460
8c81bb9b6a
perf(queue): BullMQ + DragonflyDB で Hashtag を使用しすべてをロックしないようにする (MisskeyIO#838) 2024-12-25 11:35:41 +09:00
あわわわとーにゅ
18f354c58f
Bump up version to 2024.5.0-io.5 (MisskeyIO#846) 2024-12-25 11:34:23 +09:00
あわわわとーにゅ
ac17e1926a
i18n (MisskeyIO#845) 2024-12-25 11:34:02 +09:00
あわわわとーにゅ
531565aa66
update deps (MisskeyIO#844)
fixes nsfwjs error in b3f73d7312
2024-12-25 11:18:28 +09:00
あわわわとーにゅ
8abe8aecee
fix(sign-in): ログイン失敗時のエラーコードの統一 (MisskeyIO#843) 2024-12-25 09:43:25 +09:00
あわわわとーにゅ
6542ad4a12
enhance(role): ロールの割り当て時メモを残せるように (MisskeyIO#842) 2024-12-25 09:42:59 +09:00
あわわわとーにゅ
346c848134
Merge pull request MisskeyIO#841 from securitypatch
ActivityPub関連の脆弱性の修正
2024-12-25 07:33:57 +09:00
あわわわとーにゅ
d9ed763849
fix merge failure 2024-12-25 04:34:04 +09:00
かっこかり
c6b6aab90e
fix(backend): Inboxのエラーをthrowせずreturnしている問題を修正 (#15022)
* fix exception handling for Like activities

(cherry picked from commit 8f42e8434eaebe3aba5d1980c57f49dd8ad0de91)

* fix exception handling for Announce activities

(cherry picked from commit cfc3ab4b045af0674122fa49176431860176358b)

* fix exception handling for Undo activities

* Update Changelog

---------

Co-authored-by: Hazelnoot <acomputerdog@gmail.com>
(cherry picked from commit f25fc5215bd03b9405b257fc8b8b1d7df7ea33b3)
2024-12-25 04:22:06 +09:00
かっこかり
e3cad435b8
fix(backend): fix apResolver (#15010)
* fix(backend): fix apResolver

* fix

* add comments

* tweak comment

(cherry picked from commit c1f19fad1e7e1717898b37bbb4e863e0f26b306b)
2024-12-25 04:20:44 +09:00
かっこかり
d1b953b15c
fix(backend): fix type error(s) in security fixes (#15009)
* Fix type error in security fixes

(cherry picked from commit fa3cf6c2996741e642955c5e2fca8ad785e83205)

* Fix error in test function calls

(cherry picked from commit 1758f29364eca3cbd13dbb5c84909c93712b3b3b)

* Fix style error

(cherry picked from commit 23c4aa25714af145098baa7edd74c1d217e51c1a)

* Fix another style error

(cherry picked from commit 36af07abe28bec670aaebf9f5af5694bb582c29a)

* Fix `.punyHost` misuse

(cherry picked from commit 6027b516e1c82324d55d6e54d0e17cbd816feb42)

* attempt to fix test: make yaml valid

---------

Co-authored-by: Julia Johannesen <julia@insertdomain.name>
(cherry picked from commit 3a6c2aa83563515b2ce02cda289b0271d992e84e)
2024-12-25 04:20:41 +09:00
かっこかり
ed68245177
fix(backend): fix security patches (#15008)
(cherry picked from commit 53e827b18c46f786268278645206404ff2d95f72)
2024-12-25 04:19:51 +09:00
syuilo
710e719fc5
fix ap/show
(cherry picked from commit 0f59adc436f80c495b4404807b0bd645da2b1db8)
2024-12-25 04:19:51 +09:00
rectcoordsystem
8c5a9c19d1
Merge commit from fork
* fix(backend): check target IP before sending HTTP request

* fix(backend): allow accessing private IP when testing

* Apply suggestions from code review

Co-authored-by: anatawa12 <anatawa12@icloud.com>

* fix(backend): lint and typecheck

* fix(backend): add isLocalAddressAllowed option to getAgentByUrl and send (HttpRequestService)

* fix(backend): allow fetchSummaryFromProxy, trueMail to access local addresses

---------

Co-authored-by: anatawa12 <anatawa12@icloud.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
(cherry picked from commit 090e9392cdb1f584af94a6fb727fba95de3b8504)
2024-12-25 04:19:48 +09:00
Julia
f1b5708971
Merge commit from fork
* Fix poll update spoofing

* fix: Disallow negative poll counts

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
(cherry picked from commit b9cb949eb1f8c57eaa98fc5446d902cf8a5ea85c)
2024-12-25 04:17:47 +09:00
Julia
85096e58b9
Merge commit from fork
* enhance: Add a few validation fixes from Sharkey

See the original MR on the GitLab instance:
https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/484

Co-Authored-By: Dakkar <dakkar@thenautilus.net>

* fix: primitive 2: acceptance of cross-origin alternate

Co-Authored-By: Laura Hausmann <laura@hausmann.dev>

* fix: primitive 3: validation of non-final url

* fix: primitive 4: missing same-origin identifier validation of collection-wrapped activities

* fix: primitives 5 & 8: reject activities with non
string identifiers

Co-Authored-By: Laura Hausmann <laura@hausmann.dev>

* fix: primitive 6: reject anonymous objects that were fetched by their id

* fix: primitives 9, 10 & 11: http signature validation
doesn't enforce required headers or specify auth header name

Co-Authored-By: Laura Hausmann <laura@hausmann.dev>

* fix: primitive 14: improper validation of outbox, followers, following & shared inbox collections

* fix: code style for primitive 14

* fix: primitive 15: improper same-origin validation for
note uri and url

Co-Authored-By: Laura Hausmann <laura@hausmann.dev>

* fix: primitive 16: improper same-origin validation for user uri and url

* fix: primitive 17: note same-origin identifier validation can be bypassed by wrapping the id in an array

* fix: code style for primitive 17

* fix: check attribution against actor in notes

While this isn't strictly required to fix the exploits at hand, this
mirrors the fix in `ApQuestionService` for GHSA-5h8r-gq97-xv69, as a
preemptive countermeasure.

* fix: primitive 18: `ap/get` bypasses access checks

One might argue that we could make this one actually preform access
checks against the returned activity object, but I feel like that's a
lot more work than just restricting it to administrators, since, to me
at least, it seems more like a debugging tool than anything else.

* fix: primitive 19 & 20: respect blocks and hide more

Ideally, the user property should also be hidden (as leaving it in leaks
information slightly), but given the schema of the note endpoint, I
don't think that would be possible without introducing some kind of
"ghost" user, who is attributed for posts by users who have you blocked.

* fix: primitives 21, 22, and 23: reuse resolver

This also increases the default `recursionLimit` for `Resolver`, as it
theoretically will go higher that it previously would and could possibly
fail on non-malicious collection activities.

* fix: primitives 25-33: proper local instance checks

* revert: fix: primitive 19 & 20

This reverts commit 465a9fe6591de90f78bd3d084e3c01e65dc3cf3c.

---------

Co-authored-by: Dakkar <dakkar@thenautilus.net>
Co-authored-by: Laura Hausmann <laura@hausmann.dev>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
(cherry picked from commit 5f675201f261d5db6a58d3099a190372bb2f09f0)
2024-12-25 04:09:04 +09:00
CDN
09f518b41b
fix(backend): fallback sharedInbox to null in ApPersonService (#14970)
(cherry picked from commit b3c2de2b2643d777d360de0171ae573f39411c02)
2024-12-25 03:46:54 +09:00
Tamme Schichler
d1b5d56220
fix(backend): Accept arrays in ActivityPub icon and image properties (#14825)
This is allowed according to the Activity vocabulary: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-icon
The issue is noticeable in combination with Bridgy Fed: https://github.com/snarfed/bridgy-fed/issues/1408

(cherry picked from commit 8eb7749e448d912bdbe2c4eadc35f5d5f1becf61)
2024-12-25 03:46:14 +09:00
あわわわとーにゅ
f5c0430bc9
Fix: <link rel="alternate">を追って照会するのはOKレスポンスが返却された場合のみに (#14627)
cherry picked from commit dd124a8aedb34a1112405fa68bd5daaa96fdc882

Co-authored-by: Julia Johannesen <julia@insertdomain.name>
Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
2024-12-25 03:45:35 +09:00
かっこかり
c441c4728f
fix(backend): happy-domで外部HTMLをパースする際に関連リソースが読み込まれる問題を修正 (#14521)
cherry picked from commit be0906a6c73726ed02a358bcbe904fa3d99713ea

Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
2024-12-25 03:07:00 +09:00
Hazel K
9e998cc10b
fix(backend): memory leak in memory caches (#14363)
cherry picked from commit bf8c42eecd3d645652ddd7e69b727ced2a15457d

Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
Co-authored-by: Hazel K <acomputerdog@gmail.com>
2024-12-25 02:54:31 +09:00
taichan
6d4dc5ea20
Fix(beckend): html content-type detection on signedGet (#14424)
cherry picked from commit bf8c42eecd3d645652ddd7e69b727ced2a15457d

Co-authored-by: taichan <40626578+tai-cha@users.noreply.github.com>
2024-12-25 02:40:30 +09:00
かっこかり
b3d4f18175
Update packages/backend/src/core/activitypub/ApRequestService.ts
cherry picked from commit 129af061989f535ab4c79f497ba55cc5f6bf0385

Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
2024-12-25 02:38:30 +09:00
taichan
edf94b5452
enhance(backend): headタグ内にrel=alternateの指定のあるlinkタグがある場合、記述されたURLを参照して照会できるように (#14371)
cherry picked from commit 9fbc1b7f7b71cf0eafadd728a6b66cb95a0c35d8

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Co-authored-by: taichan <40626578+tai-cha@users.noreply.github.com>
2024-12-25 02:35:58 +09:00
かっこかり
c909c00920
fix(backend): getApTypeでエラーを投げないように (#14361)
cherry picked from commit 93fc06d18b8520919cdf422675c4102b4851df18

Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
2024-12-25 02:30:40 +09:00
Daiki Mizukami
21e3b04391
fix(backend): check visibility of following/followers of remote users / feat: moderators can see following/followers of all users (#14375)
Cherry-picked from 0d508db8a7a36218d38231af4e718aff0e94d9bc

Co-authored-by: Daiki Mizukami <tesaguriguma@gmail.com>
2024-12-25 02:24:33 +09:00