Modern XMPP project discussion - 2024-06-18


  1. Menel

    I know devs mused about making it a server module, so the xmpp server can load the picture for the client. But I guess nobody had yet time to act on it.

  2. MattJ

    A proxy for downloads is something I want to do - it can be done with XEP-0215, but no clients are using it for HTTP proxies (XEP-0215 is only used to discover TURN servers/credentials currently)

  3. MattJ

    For previews though, sender-provided previews are the best option overall. You can read more about the trade-offs with different approaches here: https://www.mysk.blog/2020/10/25/link-previews/

  4. MattJ

    Many platforms choose to do them server-side, but this leaks every exchanged URL to the service provider

  5. nicoco

    Some resources about this: https://wiki.soprani.ca/CheogramApp/LinkPreviews https://dev.gajim.org/gajim/gajim/-/issues/11640

  6. Squeaky Latex Folf

    > For previews though, sender-provided previews are the best option overall. You can read more about the trade-offs with different approaches here: https://www.mysk.blog/2020/10/25/link-previews/ Sucks that they censor some apps. This isn't even a major vulnerability.

  7. Squeaky Latex Folf

    It might not even be a real vulnerability

  8. Squeaky Latex Folf

    Sharing an IP address is often required to use the Internet Protocol as it was intended

  9. Squeaky Latex Folf

    If you have a strict threat model, that can be a problem. But for most people it shouldn't matter if they share their IP or not

  10. Squeaky Latex Folf

    IRC shares IP by default.

  11. Squeaky Latex Folf

    Just shame on the authors to treat an Internet Protocol feature as a vulnerability that requires literally censoring the name of an app

  12. Squeaky Latex Folf

    It's been 4 years since its publication too. After 4 years you should've posted full details of the vulnerability anyway so you can indicate the incompetence of the app's developers to fix the issue and keep users informed.

  13. Squeaky Latex Folf

    Most people seem to be rather uninformed of the implications you get when using the Internet Protocol and its applications.

  14. Squeaky Latex Folf

    Some people join my Mumble server and get surprised or upset when I run internet diagnostics tools against their IP address

  15. Squeaky Latex Folf

    But this is required in order to assess IP connectivity issues. Especially with consumer ISPs, not running IP diagnostics tools means I cannot know how good the peering is between me and my clients.

  16. Squeaky Latex Folf

    It's not illegal to send ICMP messages to an IP address, is it?

  17. Squeaky Latex Folf

    Or would that need to be specified in the privacy policy?

  18. MattJ

    > It's not illegal to send ICMP messages to an IP address, is it? Who knows? TCP SYN is considered illegal in some contexts :)

  19. Squeaky Latex Folf

    In what contexts?

  20. MattJ

    Port scanning, for one

  21. Squeaky Latex Folf

    Is it illegal to port scan?

  22. Squeaky Latex Folf

    It's just like knocking on a door

  23. MattJ

    In some jurisdictions, yes

  24. Squeaky Latex Folf

    But doing an aggressive port scan could be disruptive though

  25. Squeaky Latex Folf

    If an aggressive door scan is the same as continuously knocking on a door to get refused, but keep on knocking, it might be considered harassment

  26. Squeaky Latex Folf

    If an aggressive port scan is the same as continuously knocking on a door to get refused, but keep on knocking, it might be considered harassment

  27. Squeaky Latex Folf

    At least ICMP should be a lot less controversial than scanning ports

  28. Squeaky Latex Folf

    Now I'm wondering, is there an application-layer protocol for listing the public services served on an IP address?

  29. Squeaky Latex Folf

    Then we don't need to port scan anymore to find out what's meant to be publicly available

  30. edhelas

    > Some resources about this: > https://wiki.soprani.ca/CheogramApp/LinkPreviews > https://dev.gajim.org/gajim/gajim/-/issues/11640 One though about this

  31. edhelas

    I'm doing link previewing in Movim. I'll never trust and implement such thing.

  32. edhelas

    To me link previewing must be done client side, on the receiver side. It's too easy to "fake" previews this way.

  33. Squeaky Latex Folf

    Oh yeah that's a good point

  34. Squeaky Latex Folf

    But still, maybe users shouldn't trust a preview to begin with?

  35. Squeaky Latex Folf

    It's the Internet after all

  36. edhelas

    The specific thing with Movim is that its the web server that is doing the job so the receiver IP is protected.

  37. edhelas

    But it could be done by the XMPP server as well, like a "link preview service", looks like another XEP to be written :p

  38. Squeaky Latex Folf

    I doubt how useful it will be when it can be very very bad in the context of E2EE

  39. Squeaky Latex Folf

    I doubt how useful it will be when it can be very very bad in the context of E2EE to send the link to the server

  40. edhelas

    Well in E2EE you don't have preview :D

  41. Squeaky Latex Folf

    But maybe if E2EE is off (commonly in MUCs), it could be interesting

  42. edhelas

    You can't have every shiny things with E2EE :p

  43. arcanicanis

    > But still, maybe users shouldn't trust a preview to begin with? Yes, and of course there's trade-offs with different ways of implementing a link preview. It just itches me when it feels like things are left at a stalemate of not providing _any_ option of link previews at all, despite user preferences.

  44. arcanicanis

    additionally, just as I was going through the XEP for vCard-based avatars: I suppose a mediaproxy could be helpful for fetching out-of-band (HTTPS-hosted) avatars, rather than avatars being constrained to: "The image SHOULD use less than eight kilobytes (8k) of data", since of course it has to fit in base64-encoded form in a single stanza

  45. arcanicanis

    as I'm curious how many clients do fetch any out-of-band avatars, or if it's solely down to just in-band base64-encoded avatars

  46. jackhill

    would be interesting if I could share media by .onion or ipfs:// but I suppose even fewer clients would support that… I guess that's where feature discovery comes in.