Ausnahme gefangen: SSL certificate problem: certificate is not yet valid ๐Ÿ“Œ An immutable Mastodon handle

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š An immutable Mastodon handle


๐Ÿ’ก Newskategorie: Programmierung
๐Ÿ”— Quelle: dev.to

Whether Twitter crumbles remains to be seen, though some signs are telling. Whatever happens, I'm continuing to invest a bit in Mastodon. Last week, I showed how to sync one's content between Twitter and Mastodon. This week, I've set up a Mastodon handle on my domain that redirects to my profile page: I want to explain how I achieved it and the problems I'm still having.

Mastodon 101

Mastodon is different from Twitter in that it's not centralized: it's a federation of Mastodon servers, run independently and connected - the Fediverse. To be precise, the Fediverse is more than Mastodon nodes, but let's not go that far. The first problem when one wants to create a Mastodon account is to choose the correct instance. My first choice was mastodon.social, but it was closed to new accounts at the time. I set my eyes on mastodon.top for no reason but that it was in the proposal list and was French.

The choice of a server is not that important since you can always move your account to another instance and keep your followers. Note that you'll leave (and lose) your content on the original server. In all cases, your profile is namespaced by the server; thus, your handle changes.

Currently, I'm @frankel@mastodon.top. But perhaps I'll join my friends at foojay.social or set up my own frankel.social in the future? In both cases, I'll need to change the suffix of my handle. Yet, I publish my handle on many sites and don't want to forget any updates when migrating. Hence, I require that the handle must be immutable.

I mentioned above that Mastodon nodes belong to a network named Fediverse. Fediverse nodes may be connected through several different protocols. Mastodon nodes uses ActivityPub. Underneath, ActivityPub relies on WebFinger to find the correct location of a handle.

WebFinger

Mastodon needs to translate @frankel@mastodon.top to https://mastodon.top/web/@frankel. The translation must happen on any Mastodon instance, regardless of its domain. The process is based on the WebFinger specification, aka RFC 7033:

WebFinger as described in RFC 7033 is a spec that defines a method for resolving links to a resource, given only a URI on a particular server. This allows anyone to look up where a resource is located without having to know its exact location beforehand; for example, by email or phone number. This lookup is directed at the endpoint /.well-known/webfinger, and a resource query parameter is passed along with the lookup. The resource URI used with Mastodon is the acct: URI as described in RFC 7565, with the username of a profile that is hosted on a particular domain.

-- What is WebFinger, and why is it used?

According to the above, when searching for my profile, the query is the following: https://mastodon.top/.well-known/webfinger?resource=acct:frankel@mastodon.top. You can check by going to a Mastodon instance you're logged in, searching for my handle, and watching the traffic via your preferred browser's developer tools.

The response is the following:

{
  "subject":"acct:frankel@mastodon.top",
  "aliases":[
    "https://mastodon.top/@frankel",                                        #1
    "https://mastodon.top/users/frankel"                                    #1
  ],
  "links":[
    {
      "rel":"http://webfinger.net/rel/profile-page",                        #2
      "type":"text/html",
      "href":"https://mastodon.top/@frankel"
    },
    {
      "rel":"self",
      "type":"application/activity+json",
      "href":"https://mastodon.top/users/frankel"
    },
    {
      "rel":"http://ostatus.org/schema/1.0/subscribe",
      "template":"https://mastodon.top/authorize_interaction?uri={uri}"
    }
  ]
}
  1. URL to the profile
  2. rel for Mastodon

The immutable Mastodon handle

It should work if I return the same response to the same query on a custom domain. That's what I did: https://blog.frankel.ch/.well-known/webfinger?resource=acct:me@frankel.ch. Because it's a static page and I'm the only account, we don't need the query parameter: https://blog.frankel.ch/.well-known/webfinger.

Given this, I can search on https://mastodon.top with @me@frankel.ch (or any handle @frankel.ch), and it returns the expected results:

Search on Mastodon

I checked on other instances, e.g., https://mastodon.social/, but it doesn't work. The reason is simple. When searching on the instance you're logged in, the XHR is https://mastodon.top/api/v2/search?q=@me@frankel.ch&resolve=true&limit=5; when not, it's https://mastodon.top/api/v2/search?q=@me@frankel.ch&resolve=false&limit=5. Conclusion: you can only query handles on the same instance when you're not authenticated.

The documentation confirms that if resolve is false, then the query doesn't try to use WebFinger:

resolve

Boolean. Attempt WebFinger lookup? Defaults to false.

-- Perform a search

Conclusion

The theory behind Mastodon and WebFinger is fascinating. I've managed to configure my immutable mastodon handle @me@frankel.ch. That's the handle I can communicate to potential followers: if I move to another server, I'll update the webfinger with my new coordinates.

The trick works because I'm the only Mastodon user on my domain. If you have several, you'll need to go beyond a static page to return a different ID depending on the acct: parameter; the rest stays the same.

To go further:

Originally published at A Java Geek on December 18th, 2022

...



๐Ÿ“Œ An immutable Mastodon handle


๐Ÿ“ˆ 47.58 Punkte

๐Ÿ“Œ An Immutable Mastodon Handle


๐Ÿ“ˆ 47.58 Punkte

๐Ÿ“Œ Immutable Security For Immutable Infrastructure - Cesar Rodriguez - ASW #118


๐Ÿ“ˆ 38.9 Punkte

๐Ÿ“Œ What is immutable Linux? Here's why you'd run an immutable Linux distro


๐Ÿ“ˆ 38.9 Punkte

๐Ÿ“Œ QEMU Handle Backend hw/9pfs/9p-handle.c Denial of Service


๐Ÿ“ˆ 28.15 Punkte

๐Ÿ“Œ CVE-2016-9915 | QEMU Handle Backend hw/9pfs/9p-handle.c resource consumption (DLA 1497-1 / Nessus ID 96684)


๐Ÿ“ˆ 28.15 Punkte

๐Ÿ“Œ QEMU Handle Backend hw/9pfs/9p-handle.c Denial of Service


๐Ÿ“ˆ 28.15 Punkte

๐Ÿ“Œ Leaving Twitter for Mastodon? Here are the 7 Best Mastodon Instances You Can Join


๐Ÿ“ˆ 28.1 Punkte

๐Ÿ“Œ Mastodon founder has a message for Elon Musk (CNN interview with mastodon founder)


๐Ÿ“ˆ 28.1 Punkte

๐Ÿ“Œ Immutable Integrity? โ€“ Blockchain Beyond the Bluster


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ Understanding the immutable bit and how to implement a chattr handler in FUSE.


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ [$] Implementing fully immutable files


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ [$] Implementing fully immutable files


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ Implementing fully immutable files [LWN.net]


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ A beginner's guide to Silverblue: Fedora Silverblue is an immutable, easy to install, and simple to use Linux operating system


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ The 10 immutable laws of security


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ Best chattr command to change File Attributes โ€“ Making Important Files Immutable


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ Erase your darlings: immutable infrastructure for mutable systems


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ A New Paradigm: Immutable Security - Om Moolchandani - ESW #192


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ Securing, Monitoring, and Remediating Immutable Infrastructure


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ Streamlining Cybersecurity With Immutable Log Files


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ MicroOS: Modern Immutable Linux OS


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ MicroOS: Modern Immutable Linux OS


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ SEP Sesam Jaglion V2 unterstรผtzt nun Objekt- & Immutable-Speicher


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ A genius blog about making Linux incredibly secure with TPM2, SecureBoot and immutable filesystems while keeping the system usable


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ CVE-2020-26237 | Oracle MySQL Enterprise Monitor up to 8.0.30 Monitoring modification of assumed-immutable data


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ astOS: An immutable Arch based GNU+Linux distribution utilizing BTRFS snapshots


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ How can we make services easier on immutable systems?


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ Immutable-Storage โ€“ Ihre Last Line of Defense


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ Immutable-Storage โ€“ Ihre Last Line of Defense


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ Explaining the concept of immutable operating systems


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ CVE-2022-2390 | Google Play Services SDK up to 18.0.1 modification of assumed-immutable data


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ CVE-2022-40703 | AliveCor Kardia App up to 5.17.1-754993421 on Android authentication bypass by assumed-immutable data (icsma-22-298-01)


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ CVE-2022-3875 | Click Studios Passwordstate API authentication bypass by assumed-immutable data


๐Ÿ“ˆ 19.45 Punkte

๐Ÿ“Œ CVE-2022-35843 | Fortinet FortiOS/FortiProxy SSH Login authentication bypass by assumed-immutable data


๐Ÿ“ˆ 19.45 Punkte











matomo