mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-17 18:49:15 +00:00
8684964c5d
This protects us from falling for obvious spoofs as from the current upload exploit (unfortunately we can’t reasonably do anything about spoofs with exact matches as was possible via emoji and proxy). Such objects being invalid is supported by the spec, sepcifically sections 3.1 and 3.2: https://www.w3.org/TR/activitypub/#obj-id Anonymous objects are not relevant here (they can only exists within parent objects iiuc) and neither is client-to-server or transient objects (as those cannot be fetched in the first place). This leaves us with the requirement for `id` to (a) exist and (b) be a publicly dereferencable URI from the originating server. This alone does not yet demand strict equivalence, but the spec then further explains objects ought to be fetchable _via their ID_. Meaning an object not retrievable via its ID, is invalid. This reading is supported by the fact, e.g. GoToSocial (recently) and Mastodon (for 6+ years) do already implement such strict ID checks, additionally proving this doesn’t cause federation issues in practice. However, apart from canonical IDs there can also be additional display URLs. *omas first redirect those to their canonical location, but *keys and Mastodon directly serve the AP representation without redirects. Mastodon and GTS deal with this in two different ways, but both constitute an effective countermeasure: - Mastodon: Unless it already is a known AP id, two fetches occur. The first fetch just reads the `id` property and then refetches from the id. The last fetch requires the returned id to exactly match the URL the content was fetched from. (This can be optimised by skipping the second fetch if it already matches) |
||
---|---|---|
.. | ||
dist | ||
7even.json | ||
7369654.html | ||
admin@mastdon.example.org.json | ||
atarifrosch_webfinger.xml | ||
baptiste.gelex.xyz-article.json | ||
baptiste.gelex.xyz-user.json | ||
craigmaloney.json | ||
eal_sakamoto.xml | ||
emelie.json | ||
emoji-in-summary.json | ||
framasoft@framatube.org.json | ||
framatube.org-video.json | ||
framatube.org_host_meta | ||
frontend.zip | ||
frontend_dist.zip | ||
funkwhale_audio.json | ||
funkwhale_channel.json | ||
funkwhale_create_audio.json | ||
gerzilla.de_host_meta | ||
gnusocial.de_host_meta | ||
gs.example.org_host_meta | ||
helene@p.helene.moe.json | ||
hellpie.json | ||
http___gs.example.org_4040_index.php_user_1.xml | ||
http___mastodon.example.org_users_admin_status_1234.json | ||
https___framatube.org_accounts_framasoft.json | ||
https___info.pleroma.site_actor.json | ||
https___lm.kazv.moe_users_mewmew.xml | ||
https___mastodon.social_users_lambadalambda.xml | ||
https___osada.macgirvin.com.html | ||
https___osada.macgirvin.com_channel_mike.json | ||
https___pawoo.net_users_aqidaqidaqid.xml | ||
https___pawoo.net_users_pekorino.xml | ||
https___pleroma.soykaf.com_users_lain.xml | ||
https___prismo.news__mxb.json | ||
https___shitposter.club_notice_2827873.html | ||
https___shitposter.club_user_1.xml | ||
https___social.heldscal.la_user_23211.xml | ||
https___social.heldscal.la_user_29191.xml | ||
https__info.pleroma.site_activity.json | ||
https__info.pleroma.site_activity2.json | ||
https__info.pleroma.site_activity3.json | ||
https__info.pleroma.site_activity4.json | ||
kaniini@gerzilla.de.json | ||
kaniini@hubzilla.example.org.json | ||
kpherox@mstdn.jp.xml | ||
lain_squeet.me_webfinger.xml | ||
lemmy-page.json | ||
lemmy-user.json | ||
lm.kazv.moe_host_meta | ||
lucifermysticus.json | ||
macgirvin.com_host_meta | ||
mametsuko@mk.absturztau.be.json | ||
mamot.fr_host_meta | ||
mastodon.social_host_meta | ||
mastodon.xyz_host_meta | ||
mayumayu.json | ||
mayumayupost.json | ||
mewmew@lm.kazv.moe.json | ||
mike@osada.macgirvin.com.json | ||
misskey_poll_no_end_date.json | ||
mk.absturztau.be-93e7nm8wqg-activity.json | ||
mk.absturztau.be-93e7nm8wqg.json | ||
mobilizon.org-event.json | ||
mobilizon.org-user.json | ||
moonman@shitposter.club.json | ||
mstdn.jp_host_meta | ||
nonexistant@social.heldscal.la.xml | ||
osada-user-indio.json | ||
p.helene.moe-AM7S6vZQmL6pI9TgPY.json | ||
pawoo.net_host_meta | ||
peertube-social.json | ||
peertube.moe-vid.json | ||
pekorino@pawoo.net_host_meta.json | ||
pleroma.soykaf.com_host_meta | ||
poll_attachment.json | ||
poll_modified.json | ||
poll_original.json | ||
puckipedia.com.json | ||
relay@mastdon.example.org.json | ||
rin.json | ||
rinpatch.json | ||
rye.json | ||
sdf.org_host_meta | ||
shitposter.club_host_meta | ||
shp@pleroma.soykaf.com.webfigner | ||
shp@social.heldscal.la.xml | ||
sjw.json | ||
skruyb@mamot.fr.atom | ||
snowdusk@sdf.org_host_meta.json | ||
social.heldscal.la_host_meta | ||
social.sakamoto.gq_host_meta | ||
social.stopwatchingus-heidelberg.de_host_meta | ||
social.wxcafe.net_host_meta | ||
soykaf.com_host_meta | ||
spc_5381_xrd.xml | ||
squeet.me_host_meta | ||
status.alpicola.com_host_meta | ||
status.emelie.json | ||
stopwatchingus-heidelberg.de_host_meta | ||
webfinger_emelie.json | ||
wedistribute-article.json | ||
wedistribute-create-article.json | ||
wedistribute-user.json | ||
winterdienst_webfinger.json |