XSF Discussion - 2018-02-14


  1. jonasw

    Flow, there was the argument that identities may be localized.

  2. Seve

    I changed my email address. Does anyone know who should I get in touch with to subscribe myself with my new email address, please?

  3. jonasw

    Seve, to all lists but members@, you can manage that yourself

  4. jonasw

    I’m not sure if you can change your email address for members@ yourself

  5. jonasw

    you could try checking the options at https://mail.jabber.org/mailman/options/members/your.old@email.address

  6. Seve

    Ohh

  7. jonasw

    (note the email address in the URL)

  8. Seve

    Sorry!

  9. Seve

    I forgot to mention that I want to subscribe to members@, yes.

  10. jonasw

    ha ok

  11. jonasw

    I don’t know who’s responsible for this, but somebody from iteam will do

  12. jonasw

    the two I have in mind aren’t here right now though

  13. Ge0rG

    I'd like to propose a new marketing slogan: *XMPP - as popular as the Metric system in the USA*

  14. jonasw

    :<

  15. Ge0rG

    jonasw: it could be worse, e.g. "XMPP - as popular as the Measles"

  16. jonasw

    :<

  17. jonasw

    oh my god

  18. jonasw

    I’m just reading XEP-0013

  19. jonasw

    why did it seem like a good idea to use disco#info for the number of messages?

  20. Kev

    -13 is pretty old, we've got a lot of best-practice knowledge that's built up since then.

  21. Bunneh

    Kev: I'll remember that.

  22. jonasw

    -13

  23. Bunneh

    jonasw: pretty old, we've got a lot of best-practice knowledge that's built up since then.

  24. Kev

    What the smeg?

  25. jonasw

    hah!

  26. Tobias

    :D

  27. Flow

    jonasw, ok, so why an extra hash for localized identities?

  28. jonasw

    Flow, separating them so that entities can profit from their cache for features and forms

  29. jonasw

    (also, there are precedents for quickly-changing forms)

  30. jonasw

    (e.g. the number of users in a MUC in its disco#info)

  31. SaltyBones

    What does "localized" in this context mean? "translated"?

  32. jonasw

    in such a quickly-changing-form-case it would be profitable if entities could opt-out of the forms hash to indicate that it is quickly changing and must always be considered stale.

  33. Flow

    that sounds like an argument for an extra hash for forms

  34. jonasw

    yes

  35. jonasw

    question is if separation of identities makes sense, too.

  36. Flow

    but I still don't see the advantage of an extra hash for localized identities

  37. Flow

    given that the identities will not frequently change

  38. jonasw

    I don’t see it either, necessarily

  39. Flow

    SaltyBones, yep, usually it's about the xml:lang attribute

  40. Flow

    are there many other popular precedents for quickly changing forms?

  41. jonasw

    Flow, I don’t know, honestly

  42. jonasw

    that’s why I *wish* there was more feedback on this on-list

  43. Flow

    I was going to write yesterday, but then figured that I possibly don't know what it is really about

  44. jonasw

    so I need to make it clearer?

  45. Flow

    jonasw, dunno, it appears you also don't know an example where extra hashes for identities, feature and/or forms are beneficial

  46. jonasw

    for forms, the MUC case is rather beneficial; the current workaround which is used is that the form wtih the numebr of users is not included when answering disco#info for a caps node

  47. Flow

    besides when protocols come into play that put dynamic information into e.g. features

  48. jonasw

    which is bad

  49. jonasw

    and in many cases, entities might not be interested in the form data, which is almost alwyas supplementary

  50. jonasw

    thus making them miss the cache because of uninteresting form data is not totally great

  51. jonasw

    (for example, entities which put OS version into the disco#info data; you’d then build a cache where each release of every operating system on which the client runs is held, which is kind of not very useful to have in the first place)

  52. jonasw

    I’m not sure there’s a strong argument for separating identities, but separating forms seems appealing to me

  53. jonasw

    I hoped that zinid would comment on this since he told me about the MUC forms use case.

  54. Flow

    hmm I see/saw caps mostly as an instrument to discover the caps of a remote "client". I can't even tell from the top of my head if caps works with xep45: Do you get a presence from the MUCs bare JID?

  55. Flow

    If ecaps2 is missing something, then it is possibly a mechanism for clients to annouce their features even if they are offline (e.g. via PEP)

  56. SaltyBones

    XEPs should mandate a list of intended use-cases.

  57. Flow

    SaltyBones, don't they?

  58. jonasw

    Flow, recent developments make you get a presence from the bare MUC jid on join, yes

  59. jonasw

    that’s a result of summit

  60. Flow

    jonasw, is that xep45 change live already?

  61. jonasw

    it is being developed and evaluated against client implementations

  62. Flow

    jonasw, ok, i guess it's part of the multi nick sharing initiative

  63. jonasw

    Flow, no, it’s part of the avatars for MUCs initiative :)

  64. jonasw

    and knowing the disco#info of a MUC is probably useful

  65. Flow

    from what I know till now, I don't feel that it is worth separating the hashes. Instead we should consider adding a best practice to xep30 that disco#info results are supposed to be not short-living

  66. jonasw

    Flow, how are you suggesting to fix the xep45 use-case then?

  67. jonasw

    also, short-living isn’t the same as high-cardinality, whihc is also an issue

  68. jonasw

    (as in the OS Version case)

  69. Flow

    jonasw, the os version case is not xep92?

  70. Flow

    but yes, you are right, it's not the same, i'm not sure if high-cardinality is an issue and if it needs fixing

  71. jonasw

    softwareinfo

  72. Flow

    same is true for xep45, I possibly could live with an cold caps cache every time an occupant leaves or joins

  73. jonasw

    hm, we could test that, we have a huge repository of caps data

  74. jonasw

    I think I’ll do that :)

  75. Flow

    jonasw, sorry, softwareinfo?

  76. jonasw

    https://xmpp.org/extensions/xep-0232.html

  77. jonasw

    that one

  78. jonasw

    I had to google the namespace myself

  79. Flow

    uh, i forgot that we have an update to xep92, would be great if there where a pointer from xep92 to it's possible successor

  80. jonasw

    Flow, the issue is that caps cache should be persistable; defeating that because we’re spamming the databases with pointless updates/minor differences is kinda sad.

  81. jonasw

    but sure, I’ll run a test on the capsdb

  82. Flow

    jonasw, but is it an issue?

  83. jonasw

    it’s a bit dated, but probably a good source of a first estimate

  84. jonasw

    Flow, that’s what I’m going to find out

  85. Flow

    hmm not sure if xep232 is really an improvement over xep92

  86. marc

    Ge0rG: how do you implement "pending XMPP URIs"? E.g. you add a contact but don't have an account set up yet and show the corresponding dialog after account setup. IIRC you do this in yaxim

  87. Ge0rG

    marc: I'm keeping the Intent and re-firing its handler after account creation

  88. SaltyBones

    what does that mean? you can add people who don't have an account??

  89. marc

    Ge0rG: what if multiple activities are involved before you can re-fire it? Do you pass it to all the activities?

  90. jonasw

    SaltyBones, XEP-0401

  91. SaltyBones

    -xep-0401

  92. daniel

    > Ge0rG: how do you implement "pending XMPP URIs"? E.g. you add a contact but don't have an account set up yet and show the corresponding dialog after account setup. IIRC you do this in yaxim Conversations does that as well

  93. SaltyBones kicks Bunneh.

  94. Ge0rG

    marc: the only flow allowed is "main activity [optional: prefs activity ->] main activity"

  95. jonasw

    SaltyBones, -xep 0401

  96. jonasw

    SaltyBones, {xep 0401}

  97. Bunneh

    SaltyBones: Easy User Onboarding (Standards Track, Experimental, 2018-01-25) See: https://xmpp.org/extensions/xep-0401.html

  98. SaltyBones pours a bucket of water on Bunneh.

  99. jonasw

    there we go

  100. marc

    daniel: really? What version?

  101. daniel

    Not with the entire uri though. Just the jid. But that could be changed

  102. daniel

    marc: dunno. Maybe 1.23.0

  103. Ge0rG

    Bunneh is b0rked

  104. marc

    Ah okay, because I need the full URI

  105. daniel

    yeah changing that is probably fairly easy

  106. marc

    Okay, I'll take a look

  107. SaltyBones

    marc, did you write this XEP?

  108. SaltyBones

    Anyway, good stuff.

  109. SaltyBones

    And of course as always thanks to Ge0rG for all his efforts in this direction!

  110. marc

    SaltyBones, Ge0rG also did lots of stuff

  111. marc

    SaltyBones: yes

  112. Ge0rG

    SaltyBones: 🙇

  113. Ge0rG

    So I've installed kaidan, and it is _very_ basic

  114. Seve

    it is

  115. daniel

    seems to be a pattern

  116. Ge0rG

    The CADT pattern.

  117. Ge0rG

    Oh, I've installed 0.2.3 from their repo, github has 0.3.2

  118. Seve

    Well, it is relatively new, so...

  119. Ge0rG

    https://github.com/KaidanIM/packages/issues/1 :|

  120. Ge0rG

    Seve: 0.3 was a significant change

  121. Ge0rG

    also half a year of development between the releases.

  122. Ge0rG

    So Kaidan reflects the general status of XMPP very well.

  123. MattJ

    6 months between releases is not long, or what are you saying? :)

  124. Ge0rG

    MattJ: I'm saying that having 6 months old DEBs on their own repo is really bad.

  125. SaltyBones

    You can deploy QT to iOS?

  126. Tobias

    Some Qt pars, yes

  127. Tobias

    Qt Quick GUIs you can

  128. SaltyBones

    Does GTK have something similar?

  129. Tobias

    no clue

  130. SaltyBones

    Tobias, this https://doc.qt.io/qt-5/qtquick-index.html ?

  131. Tobias

    yes...that stuff works across desktop and ios/android platforms

  132. SaltyBones

    huh...nice

  133. jonasw

    "works"

  134. SaltyBones

    oh...

  135. jonasw

    it lacks quite a few things/controls, it is a pain to use with C++ and I think you’ve got to do accessibility quite all by yourself

  136. jonasw

    but I haven’t looked deeply into the last part

  137. dwd

    Gosh, Gloox. There's a blast from the past.

  138. MattJ

    Indeed

  139. Ge0rG

    jonasw: I think the impact from http upload might be comparable to dns rebinding attacks

  140. jonasw

    Ge0rG, the local servers thing is a point

  141. jonasw

    so I’d suggest to add a reference to CWE-918 in the security considerations and write that clients need to treat themselves as HTTP Proxies w.r.t. security considerations

  142. jonasw

    maybe we can find HTTP documents which elaborate on those

  143. Ge0rG

    jonasw: with newlines, the attacker can forge any payload to the http post

  144. jonasw

    daniel, ^

  145. jonasw

    Ge0rG, but we agreed to reject newlines.

  146. Ge0rG

    jonasw: I'm not saying it's impossible without newlines

  147. daniel

    Yes the newline thing doesn't need debating anymore

  148. Ge0rG

    daniel: good luck finding out what is "on the LAN"

  149. daniel

    Ge0rG: any of the reserved IP ranges I mean

  150. Ge0rG

    Gets you into trouble in enterprise deployments

  151. jonasw

    Ge0rG, "unless the server is in a LAN"

  152. jonasw

    that’s by the way similar to the application boundary enforcement NoScript does by default…

  153. jonasw

    nightmare

  154. Ge0rG

    jonasw: yay for complex filtering rules!

  155. jonasw

    Ge0rG, that wasn’t my idea

  156. jonasw

    Ge0rG, do you have a better solution, considering that some services will need headers for authn?

  157. jonasw

    (and authz)

  158. jonasw

    and we can’t predict the header names reasonably?

  159. daniel

    By the way the exploiting your plastic router scenario is kinda independent of the header discussion

  160. daniel

    Those are usually exploited by get parameters anyway

  161. Ge0rG

    daniel: indeed. Having PUT instead of POST does us a favor here.

  162. Ge0rG

    daniel: besides, it's easier to exploit things via POST than via GET, but most browsers block cross-origin-POST

  163. Ge0rG

    And then, the HTTPS certificate requirement should effectively protect typical LAN routers.

  164. Flow

    Ge0rG, why is PUT different from POST in this case?

  165. daniel

    Ge0rG, assuming your $10 router distinguishes between the different methods :-)

  166. Ge0rG

    but those are all mitigations

  167. Ge0rG

    daniel: touché

  168. MattJ

    "Let's use HTTP because it's simple"

  169. MattJ ducks

  170. Ge0rG

    Flow: most HTTP appliances use POST for form submission, not PUT

  171. Flow

    yeah, XMPP is way simpler

  172. jonasw

    Ge0rG, browsers don’t block cross-origin post unconditionally; I know that you can cross-origin POST with a <form/> for example

  173. Flow ducks

  174. Ge0rG

    stop it now! I'm just reading Jingle-FT and it's gruesome.

  175. Ge0rG

    jonasw: good point. Does that make all HTTP POST endpoints exploitable?

  176. jonasw

    Ge0rG, that’s why we have CSRF tokens

  177. Ge0rG

    I love those.

  178. Ge0rG

    Let's add an CSRF token to HTTP-Upload.

  179. Flow

    I whish we had a magic marker which tells us when ge0rg is serious nor not

  180. Ge0rG

    Flow: I wish I had such a marker myself.

  181. SaltyBones

    what is the original document you guys are discussing?

  182. Ge0rG

    SaltyBones: XEP-0363

  183. SaltyBones

    -{XEP 0363}

  184. Flow

    -xep363

  185. Ge0rG

    SaltyBones: also https://mail.jabber.org/pipermail/standards/2017-November/033936.html

  186. Flow

    hmm

  187. Flow

    -xep-0363

  188. MattJ

    -xep 363

  189. Bunneh

    MattJ: HTTP File Upload (Standards Track, Proposed, 2017-12-03) See: https://xmpp.org/extensions/xep-0363.html

  190. Tobias

    Ge0rG, what's your issue with Jingle FT?

  191. Ge0rG

    Tobias: it's an overengineered horrible mess

  192. Ge0rG

    Tobias: I can only hope that all of the complexity comes from the domain and not from Jingle-FT itself.

  193. Tobias

    Ge0rG, in what way? what bit is in there that's not needed to get peer-to-peer file transfer working in all cases

  194. Tobias

    the complexity likely comes from the problem domain

  195. Tobias

    WebRTC is similarly complex

  196. Ge0rG

    Tobias: except WebRTC also has proper NAT traversal and e2ee ;)

  197. Flow

    I think both Jingle and WebRTC have room for improvement when it comes to reducing the complexity. But I doubt that it's going to happen, because their deployment reached the critical mass

  198. Flow

    Ge0rG, Jingle has E2EE too (not sure what the current state of the xep is)

  199. jonasw

    "Experimental"

  200. Ge0rG

    Flow: "horrrible"

  201. Tobias

    WebRTC has decent e2ee? I thought it's e2ee was MITM-able

  202. Ge0rG

    or maybe "abandoned"

  203. marc

    It has E2EE if the signaling channel is protected

  204. Ge0rG

    marc: ITYM if the server is trusted.

  205. SaltyBones

    Maybe this is controversial but I think 0363 should NOT allow "unlimited other headers" at most it should allow one or two specific ones but imho none would be more appropriate.

  206. jonasw

    SaltyBones, but there are services which require headers

  207. jonasw

    integration with those services was the goal of the update which introduced headers

  208. SaltyBones

    Why doesn't the server just take the data and the put it wherever it belongs?

  209. Ge0rG

    HTTP-Upload headers are the XHTML-IM of this year's compliance suite.

  210. Ge0rG

    SaltyBones: because traffic and scalability

  211. jonasw

    Ge0rG, you’re exaggerating

  212. Tobias

    Ge0rG, what's your opinion on XEP-0385?

  213. SamWhited

    For once I disagree about the complexity. The trade off seems justified here, without the headers you can't have auth or signed URLs

  214. marc

    Ge0rG: not exactly, you could use OMEMO to protect the credentials

  215. SaltyBones

    So, why doesn't the server simply communicate the URL it passed to the client to whoever actually gets the data?

  216. SaltyBones should really stop talking.

  217. Ge0rG

    SamWhited: I'm only slightly serious, but I'd like to hear your input on how a malicious server could abuse http-upload to wreak havoc

  218. Ge0rG

    a malicious xmpp server

  219. SamWhited

    I want to make sure that a client can't upload unlimited stuff, but the http server is on another host and knows nothing about the xmpp server. How can I do that without some way for the client to also communicate with the http server? I could maybe shove one or two things in the path, but that's going to get ugly quick

  220. SamWhited

    mostly I just want to use s3 directly though, which requires auth headers.

  221. Ge0rG

    SamWhited: so instead you opt for making the client a generic protocol proxy?

  222. jonasw

    (a generic XMPP->HTTP proxy)

  223. SamWhited

    It's nothing close to that, it has to support http to do a post anyways, so you're just telling it how to structure its request

  224. jonasw

    SamWhited, this is exactly what proxying is

  225. jonasw

    I was flabbergasted when Ge0rG said that first, but I think he’s right.

  226. jonasw

    in the end what the client is here is a proxy supporting PUT with arbitrary headers to an arbitrary HTTP(S) host with an arbitrary URL

  227. jonasw

    the only thing the server can’t control is Content-* and the body

  228. SamWhited

    this sounds dangerously close to a semantic argument, so sure, it's a simple proxy without the complex body bits. that seems fine.

  229. Ge0rG

    SamWhited: I'd argue that we have a whitelist of HTTP headers that the module is allowed to override/set.

  230. SaltyBones

    SamWhited, isn't that impossible? The client has to request a slot from the XMPP server and must include the filesize and the receiving host must validate that filesize. They have to communicate, right?

  231. Ge0rG

    SaltyBones: they don't *have to*, the HTTP server can be independent

  232. jonasw

    SamWhited, SaltyBones, mod_http_upload_external for prosody essentially includes an HMAC of the content size and file name into the PUT URL query which is verified by the peer.

  233. jonasw

    but other, already existing things require HTTP headers to dot hat

  234. jonasw

    but other, already existing things require HTTP headers to do that

  235. SamWhited

    Ge0rG: what benefit would a white list provide?

  236. Ge0rG

    SamWhited: we would severely limit what a malicious server can do via the client-proxy.

  237. SamWhited

    SaltyBones: upload servers often need things at point of upload, eg a bearer token.

  238. SamWhited

    Ge0rG: I see, that seems fair.

  239. Ge0rG

    SamWhited: have a look at http://blog.portswigger.net/2017/07/cracking-lens-targeting-https-hidden.html#host for how to abuse an HTTP proxy to access non-HTTP protocols

  240. Ge0rG

    Seems like nobody is reading my emails :>

  241. SamWhited

    I'm reasonably sure this isn't actually a problem here, but I'd be interested in trying to come up with a POC. Will read that when I get to my desk

  242. Ge0rG

    SamWhited: tl;dr: if you can inject raw multi-line text into requests to custom ports, you can own many text-based protocols.

  243. SamWhited

    oh, well yah, headers have to be sanitized

  244. Ge0rG

    I'm pretty sure that SMTP looks sufficiently close to HTTP to be able to send an email just by passing a long list of custom headers ;)

  245. jonasw

    I’m not so sure

  246. jonasw

    or does SMTP use colons everywhere?

  247. Ge0rG

    jonasw: MAIL FROM: foo RCPT TO: bar

  248. jonasw

    ew

  249. jonasw

    but can you add spaces to HTTP header names?

  250. Ge0rG

    jonasw: it depends™

  251. daniel

    Ge0rG: but you can't pass a data and a dot

  252. daniel

    As mentioned earlier

  253. SamWhited

    it also uses mime like headers, yah. But that's an easy fix.

  254. SamWhited

    That being said, I agree it's going to be a problem.

  255. SamWhited

    Actually, no I don't. I need to be at my desk to test this, but I'd be suprised if most http libraries allowed invalid requests that way.

  256. SamWhited

    The attack vector here relies on the users server or a component being malicios too, but part of xmpps security model is that you have to trust your server, so it botheers me less, though if we can mitigate it without too much trouble that seems fine.

  257. SamWhited

    /thinking-out-loud

  258. SamWhited

    spling is herd

  259. Ge0rG

    SamWhited: I tend to agree with what you say, but having such a reverse proxy in a corporate network will surely ring some compliance bells.

  260. SamWhited

    I doubt it, but I'lk ask our compliance person when I get to the office

  261. SaltyBones

    Who are these people who want to put their http upload data on a different machine but cannot be bothered to give it an interface which can check urls with HMACs and why should we care about them? :p

  262. Ge0rG

    SamWhited: I'm also not sure that all http libraries properly sanitize headers.

  263. Ge0rG

    SaltyBones: amazon cloud was called out

  264. SamWhited

    We didn't use it at HipChat for this reason if you need a real world example.

  265. SamWhited

    Also S3 gives you 5 gigs of free storage or something, but the bandwidth to proxy it is not free.

  266. SamWhited

    Well, in all fairness I'm not sure that it would fit HipChats use case anyways, but it was immediately discounted because there was no control over requests

  267. SaltyBones

    and they wanted total control or would some kind of "provide this token" have been sufficient?

  268. jonasw

    SaltyBones, headers, obviously, because the server had full control over the URL all the time

  269. SamWhited

    We needed the ability to set auth headers, I think. Can't remember if we needed other stuff for signing or not, seems like that didn't end up making it to the final thing.

  270. Ge0rG

    SamWhited: so can we agree on a whitelist of "Authorization" and "Cookie"?

  271. Ge0rG

    and _maybe_ "X-*"

  272. jonasw

    Ge0rG, also, what is the issue we’re seeing here by the way?

  273. jonasw

    the only real issue is with network boundaries, isn’t it?

  274. jonasw

    and the possibility for the malicious XMPP server to disguise itself behind the HTTP upload-ing clients

  275. jonasw

    otherwise the XMPP server could carry out the attacks themselves

  276. jonasw

    and with much more precision

  277. Ge0rG

    jonasw: yes.

  278. SamWhited

    maybe… if it's not actually a problem a white list seems like it will just be ignored by half of clients and end up causing interoperability problems. We should try to prove that it is, or is not, a problem first in my mind.

  279. jonasw

    so if there is stuff which breaks from unauthenticated plaintext being sent, I’d be inclined to argue that the stuff which breaks is at fault

  280. jonasw

    +1 SamWhited

  281. SamWhited

    I still think trusting the server is okay too.

  282. jonasw

    that too

  283. jonasw

    (even though the server might be in an entirely different trust domain than the network the client is on)

  284. Ge0rG

    SamWhited: if we make it a closed whitelist, we can just provide according xmpp elements for each header name

  285. Ge0rG

    SamWhited: so that clients can't make dumb errors.

  286. jonasw

    Ge0rG, for all X-* headers? ;-)

  287. jonasw

    (blanket-allowing X-* is a bad idea though, IMO)

  288. Ge0rG

    jonasw: this is why I wrote "closed" :P

  289. Ge0rG

    jonasw: yes, blanket-allowing X-* is bad. But less bad than blanket-allowing *.

  290. MattJ

    A whitelist makes the feature next to pointless, if the point was to allow arbitrary 3rd-party upload protocols

  291. jonasw

    that

  292. SamWhited

    Agreed.

  293. jonasw

    Ge0rG, I’d argue that an overly-open whitelist is worse than "*"

  294. Ge0rG

    A blacklist is worthless as well, due to the complexities and lack of standardization of HTTP.

  295. SamWhited

    Also agree.

  296. MattJ

    If we're really worried, we can solve it by just ("just") having the client enforce the same same-origin policies a browser would

  297. jonasw

    MattJ, you mean "none"?

  298. Ge0rG

    MattJ: awesome idea. because same-origin works so well on HTTP already?

  299. jonasw

    POST/PUT can be sent cross-domain

  300. MattJ

    Ge0rG, imagine a world without it

  301. MattJ

    jonasw, since when?

  302. jonasw

    MattJ, at least with <form/>

  303. Ge0rG

    MattJ: a world without cross-origin scripting? It would be great!

  304. MattJ

    jonasw, ah, but you can't send custom headers that way, at least

  305. Ge0rG

    so we need to disable custom headers in 0363. QED.

  306. jonasw

    MattJ, true

  307. MattJ

    for not-same-origin?

  308. jonasw

    not-same-origin will ~always be the case with s3, won’t it?

  309. MattJ

    CNAME

  310. jonasw

    does that work?

  311. jonasw

    with Host header etc.?

  312. jonasw

    .oO(CNAME and set Host header. bazinga)

  313. MattJ

    Yes, you can serve any domain from S3 with the right configuration and DNS records

  314. Ge0rG

    the problem with CNAME will be one of HTTPS certificate validation

  315. MattJ

    Amazon handles this for you, not an issue

  316. jonasw

    MattJ, amazon maybe, but $non-amazon-cloud-provider object storage?

  317. jonasw

    do we want to pin people to amazon with that rule?

  318. SaltyBones

    I'm in no way an expert on the matter but https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy clearly says "Cross-origin writes are typically allowed" and https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest has a function "XMLHttpRequest.setRequestHeader()"

  319. MattJ

    You're not pinning them to Amazon - any provider can use Let's Encrypt for example, if you point a CNAME at them

  320. jonasw

    MattJ, yes, but I bet not many do

  321. MattJ

    jonasw, this is not a protocol problem

  322. jonasw

    MattJ, yes, but .....

  323. MattJ

    Delegating to a third-party is something people (rightly) want to do. It can be done.

  324. jonasw

    do we need to make it harder for people?

  325. SaltyBones

    So it seems to me, like what we are trying to prevent, can be accomplished with JS in a w ebsite...

  326. MattJ

    They don't have to do this, it's optional

  327. SamWhited

    hmm, this seems sensible at first glance. It does limit what you can do with the upload, but it does seem desirable from a security standpoint and the drawbacks aren't that severe. It moves the place you define trust to DNS, which is how xmpp does things anyways.

  328. daniel

    but same origin doesn't protect you if your own server is bad

  329. jonasw

    hmm

  330. daniel

    they could just point a cname to 192.168. something

  331. SamWhited

    you have to trust your own server anyways

  332. jonasw

    SamWhited, in that case the whole discussion is moot and we can just allow arbitrary headers!

  333. jonasw

    daniel, +1

  334. daniel

    SamWhited, the entire debate is about not trusting your server

  335. SaltyBones

    Can somebody tell me why what we are trying to prevent is NOT something that JS on websites can do?

  336. SaltyBones

    In other words, something that is "somebody elses problem".

  337. Ge0rG

    daniel: pointing a cname to 192.168.x.x won't give you a valid certificate.

  338. Ge0rG

    SaltyBones: modern browsers will use CORS to prevent cross-origin POST/PUT

  339. Ge0rG

    SaltyBones: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS > Additionally, for HTTP request methods that can cause side-effects on server's data (in particular, for HTTP methods other than GET, or for POST usage with certain MIME types), the specification mandates that browsers "preflight" the request, soliciting supported methods from the server with an HTTP OPTIONS request method

  340. SaltyBones

    Ge0rG, CORS is a way so circumvent the SOP and the SOP is what I quoted above as not protecting you against cross origin writes...where is the error?

  341. jonasw

    SaltyBones, because you read "typically" as "always"?

  342. SaltyBones

    jonasw, but this is enforced in the browser not per site, right?

  343. jonasw

    SaltyBones, https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Preflighted_requests > In particular, a request is preflighted if any of the following conditions is true: > * If the request uses any of the following methods: > * PUT

  344. MattJ

    It's enforced in the browser. In our discussion, the XMPP client is in the place of the browser

  345. jonasw

    I think that is pretty clear

  346. jonasw

    so SaltyBones, if e.g. your plastic router instructs the browser to reject cross-origin POST requests, it would be safe with modern browsers.

  347. jonasw

    but it would not be safe against HTTP-Upload

  348. Ge0rG

    MattJ: so we need to mandate the XMPP client do an HTTP OPTIONS call to the server and to check CORS

  349. jonasw

    Ge0rG, noooooooooooooooooo

  350. MattJ

    > 13:19:49 MattJ> "Let's use HTTP because it's simple"

  351. Ge0rG

    I'll -1 the XEP until this is mandated, or until I'm kicked out of Council.

  352. MattJ -1's Ge0rG

  353. jonasw -1's HTTP

  354. jonasw

    I think that’s the right course of action anyways.

  355. MattJ first performs an OPTIONS request to verify he's allowed to -1 Ge0rG

  356. Ge0rG

    MattJ: you are not.

  357. intosi

    303 Pull the other one

  358. jonasw

    Ge0rG, what about my "if a thing breaks by unauthenticated plaintext, it is that things fault"?

  359. Ge0rG

    jonasw: talk to a BigCorp CSO and explain that to them, and how their "trusted core network consisting of the datacenter and the office network" must be fixed yesterday.

  360. jonasw

    SamWhited, my feeling is that "trust your serevr" is not applicable here, because this is a different level of privilegue. I trust my XMPP server to handle my IM, but I wouldn’t trust it with remote code execution on my client. Likewise, I’m not sure I’d trust it with "arbitrary" network access.

  361. jonasw

    Ge0rG, why the hell would you allow people to run XMPP clients in your trusted core network?

  362. jonasw

    or any not thoroughly audited software for that matter

  363. jonasw

    if it’s so crucial to your operations and there’s no additional layer of authentication except being in that network.

  364. Ge0rG

    jonasw: because Gajim portable and Direct-TLS on :443

  365. jonasw

    don’t allow removable drives?

  366. Ge0rG

    don't allow The Internet?

  367. jonasw

    on the same note, why would you allow people to accsss the intenet at all from that network. you’re doing it very wrong in that case.

  368. jonasw

    yeah

  369. SamWhited

    You're alreadytrusting that by virtue of connecting to a thing in an srv record.

  370. jonasw

    SamWhited, but it can’t control what contents I send there, except for its domain name

  371. jonasw

    and even that it can’t really controll

  372. jonasw

    while HTTP Upload does let it control a substantial part of the content I send

  373. SamWhited

    fair

  374. jonasw

    so, strawman proposal: what about we make a disco#info form or something which tells the client which headers will be used by a given upload service. They can then decide whether to use that service at all (before showing in the UI that an upload would be possible, thus improving UX in the "no, that’s not okay" use case). And then clients can keep their own whitelist, while we recommend a whitelist in the XEP which contains Authentication, Cookie, Cookie2 (maybe?), and whatever S3 needs

  375. Ge0rG

    jonasw: please don't.

  376. jonasw

    mention the trade-offs clearly in the security considerations, too

  377. jonasw

    Ge0rG, why not?

  378. Ge0rG

    jonasw: the client can't decide that, and the user even less so.

  379. jonasw

    how can we decide what the client can’t decide?

  380. Ge0rG

    jonasw: the client can't decide anything.

  381. Flow

    Ge0rG, it's hard to follow your arguments when you don't provide an explaination

  382. jonasw

    I’m fine with allowing any header then, I think. Most havoc can be wreaked (on the web side, which is why we have CORS etc.) due to cookies

  383. jonasw

    and existing sessions

  384. jonasw

    which isn’t applicable here

  385. Ge0rG

    Flow: which argument do you want explained?

  386. Flow

    Ge0rG, why can't the client decide which headers to use or not?

  387. Ge0rG

    Flow: because client developers are already incapable to securely implement IQs, Carbons and XHTML-IM. I'm a full-time IT security consultant and I have a hard time figuring out which HTTP headers might have malicious side-effects.

  388. Ge0rG

    Flow: a client doesn't know if it runs in a "secure network" of some sort

  389. Flow

    got it, thanks

  390. daniel

    Ge0rG, could you name one header that can cause bad side effects? (something that couldn't be done with the URL)

  391. daniel

    (assuming the headers are stripped of \n which I already agreed to)

  392. Ge0rG

    daniel: sending a mismatching `Host` header will confuse middleboxes.

  393. Ge0rG

    a `Connection` header might at least confuse the server, causing a small DoS

  394. daniel

    a middle box that mitm https?

  395. Ge0rG

    daniel: yes, that's a common setup at BigCorps

  396. Ge0rG

    We could also require an Origin header to be set to the HTTP-Upload component name, cf. https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Origin

  397. Ge0rG

    But this is less strong than any enforced filtering

  398. jonasw

    Ge0rG, that concurs with my argument "do not let the server override any header you’re setting yourself"

  399. pep.

    Let me jump in an propose a jingle-ft component on the server to counter http-upload :-°

  400. jonasw

    both Connection and Host would typically be set by the client (one due to how the lib works, one from the URL)

  401. pep. is waiting for the stick

  402. jonasw

    pep., do it

  403. Ge0rG

    jonasw: "typically"

  404. daniel

    > Ge0rG, that concurs with my argument "do not let the server override any header you’re setting yourself" that by the way i'm fine with and i'm actually implemting this in Conversations right now

  405. Ge0rG

    jonasw: do you know from memory which HTTP headers are set by your favorite http client library? And which of those can't be overridden?

  406. pep.

    jonasw, I wish I had the knowledge and time for it, but yeah I've heard ideas here and there about this already

  407. Ge0rG

    jonasw, daniel: so what you are doing is the blacklist approach.

  408. daniel

    in that case yes

  409. daniel

    although it is not a fixed blacklist

  410. SaltyBones

    Proposal: We ditch alls this in favor of something that ONLY supports what amazon s3 does

  411. SaltyBones

    Which hopefully should be easy to tighten...

  412. SaltyBones

    This gives people the option to 1. Use S3 2. Use their XMPP server 3. Emulate one of two API

  413. MattJ

    Except that I wanted to experiment with using Dropbox/NextCloud/etc. as upload services

  414. MattJ

    and neither mimic S3

  415. daniel

    MattJ, maybe do your expirments and see what headers they require? probably most of them will just use authorize anyway?

  416. daniel

    in which case instead of allowing header we could just allow authorize or something

  417. SamWhited

    I really want to try Joyents blob file storage with the Content-MD5 header.

  418. SamWhited

    Also allowing the server to set the durability-level header which indicates the number of backups in different regions that are required.

  419. Ge0rG

    SamWhited: that sounds like a _very special_ special case.

  420. daniel

    SamWhited, that sounds a bit dangerous to give the client control over that?

  421. MattJ

    daniel, I don't know about Dropbox, but NextCloud is either basic auth (if you don't mind sharing credentials with your server) or cookies

  422. SamWhited

    Not especially; they could cost me a tiny bit more money by having the max replication factor all the time, or not have backups of their own files

  423. SamWhited

    But yah, fair enough, that's a special case.

  424. daniel

    MattJ, then maybe authorize and cookie

  425. Holger

    FWIW, being able to set an X-ejabberd-something header would be very useful for me.

  426. Ge0rG

    daniel: I could live with `Authorization` and `Cookie` being the only whitelisted headers.

  427. Holger

    (Or without the "X-", IIRC today's youth dislikes that?)

  428. Ge0rG

    Holger: what for?

  429. Holger

    Ge0rG: Mapping the HTTP request to a virtual host (configuration).

  430. MattJ

    Dropbox is also Authorization it seems

  431. daniel

    the thing is that i wasn't the one who wanted headers in there in the first place

  432. Ge0rG

    Holger: you are doing it wrong.

  433. daniel

    so it's hard for me to argue for either one side

  434. Holger

    Ge0rG: How to do it right?

  435. Ge0rG

    Holger: use the Host header to route to virtual hosts? :P

  436. Holger

    No.

  437. Holger

    Or well.

  438. Dave Cridland is just thinking this is definitely more complex than the Security Considerations of the XEP makes out.

  439. daniel

    I mean if we white list only cookie and auth you could set a cookie Holger

  440. Ge0rG

    Holger: on your own infrastructure you could also `PUT https://yourserver.com/yourxmppdomain/random/random.jpg`

  441. daniel

    If you don't want to use the vhost

  442. Holger

    Ge0rG: That works if you have an 1:1 mapping between HTTP 'Host' and virtual hosts of course, but admins will spam your tracker if you impose such restrictions.

  443. daniel

    Or what Ge0rG said

  444. Holger

    Yes I suggest such things in the docs.

  445. Holger

    Still tracker spam :-)

  446. SamWhited

    I'm not sure the whitelist really works; as soon as we do that most signing schemes break. Eg. Joyents requires Host, Amazon's requires that you specify headers to sign up front, I think and has a handful that it always requires.

  447. Holger

    daniel: Yes I could probably abuse Auth/Cookie headers.

  448. SamWhited

    And if we're really worried about invalid headers from a malicious server, having any headers at all is a problem (though as I said, I'm not convinced we should be worried about that)

  449. Holger

    I'm just saying that I doubt we'll come up with all possible use cases in here.

  450. daniel

    > I'm not sure the whitelist really works; as soon as we do that most signing schemes break. Eg. Joyents requires Host, Amazon's requires that you specify headers to sign up front, I think and has a handful that it always requires. Can you find out what exactly it requires?

  451. SamWhited

    Yah, just a moment, I hate looking at the S3 docs (which are terrible) so I was being lazy and looked up Joyents instead.

  452. Holger

    So the idea now is to cope with a few services that are popular today and just hope for the best that the next one will use the same headers?

  453. SamWhited

    a bunch of x-amz- headers, otherwise I'm having trouble finding info.

  454. SamWhited

    But what Holger said.

  455. Ge0rG

    So it's ["Cookie", "Authorization", "X-*"]

  456. Holger

    ...

  457. SamWhited

    I'm still not sure what problem we think we're solving with this.

  458. SamWhited

    Amazon also does Host and User-Agent at least, I think

  459. SamWhited

    Although User-Agent makes no sense to me, so maybe this is wrong

  460. daniel

    SamWhited, the user agent has to be set to something specific?

  461. SamWhited

    I'm reading this page, and being confused: https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html

  462. SaltyBones

    SamWhited, the problem we are trying to solve is that we are currently giving the server the possibility to trigger arbitrary HTTP requests from the client.

  463. daniel

    oh signed

  464. daniel

    i get it

  465. SamWhited

    SaltyBones: that is not a problem description. Why is that bad?

  466. SamWhited

    I know we've been through this, but I'm just not sure that it's actually a problem and am trying to figure out if it would really cause any security issue.

  467. SaltyBones

    SamWhited, I'm not convinced that it is but Ge0rG's link does suggest otherwise.

  468. Ge0rG

    SamWhited: that signature needs to contain the content md5. I can't see how you can make a client generate that header.

  469. Dave Cridland

    [[ 20 minutes until Council, BTW ]]

  470. SamWhited

    Does it? I know I've made amazon work before, but yah that doesn't seem like it can be supported easily without additional modifications

  471. SamWhited

    SaltyBones: his link was about malicious invalid headers, right? (I lost it, sorry, no search in any of my clients) This doesn't solve that (again, if it's actually a problem in our case)

  472. Ge0rG

    SamWhited: the signature also depends on YourSecretAccessKeyID, which I'm sure you don't want to leak to the client.

  473. MattJ

    https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html#RESTAuthenticationQueryStringAuth

  474. Ge0rG

    SamWhited: so either the xmpp server needs to have the MD5 in advance or you are doomed.

  475. SamWhited

    Ge0rG: that's fine, you can generate one per request

  476. SamWhited

    But yah, MD5 is a problem. It might not always be required though, because I know I've made this work before

  477. MattJ

    SamWhited, I think it's optional, in that I think if you don't provide the header you just put an empty string in the string-to-sign

  478. Dave Cridland

    By the way, if anyone wants to take some minutes for the Council meeting (in a few minutes from now), that'd be tremendously useful.

  479. MattJ

    SamWhited, and at this point... it looks like S3 allows putting everything into the query string? :)

  480. SamWhited

    That's useful, I didn't realize that. I would prefer not to put auth in the query string either way though.

  481. SaltyBones

    Why?

  482. SamWhited

    Because it's generally accepted best practice that you don't. Things log URLs and it's acceptable to do so, they don't generally log headers (because that's generally where you put things you don't want logged like this)

  483. Dave Cridland

    [[ Council time over in council@muc.xmpp.org ]]

  484. goffi

    pep.: I have a server side jingle-ft component

  485. pep.

    goffi, !

  486. pep.

    Is it in a working state

  487. goffi

    I'm currently working on it, but it's already working yes

  488. pep.

    Also, there's no XEP for that right? Or how much is it covered by the current XEP?

  489. goffi

    the XEP is jingle FT

  490. goffi

    instead of sending to an other client, I send to the component

  491. goffi

    nothing else to do

  492. SaltyBones

    and then the server offers it via httpupload or again jingle?

  493. pep.

    Sure but then you can do things with your component you can't do with clients

  494. pep.

    You can use your component to proxy the transfer, to retry when the other contact is back online etc.

  495. pep.

    Or just serve the file

  496. SaltyBones

    I'm not complaining just trying to figure out what's happening. :)

  497. goffi

    SaltyBones: I'm on this part currently, implementing XEP-0329, but I'm not happy with it, I plan to write a feedback on standard@ about that

  498. pep.

    SaltyBones, jingle

  499. pep.

    I hope

  500. pep.

    I don't see the point of http-upload here

  501. pep.

    It's not unfeasible though, the component could serve via http as well

  502. goffi

    I'm saying that since HTTP upload is on the table. The only interest is has, is that it's easy to implement when jingle is not yet implemented in a library

  503. goffi

    but once you have jingle, it's more easy to do this way.

  504. goffi

    and with namespace delegation, you can even send fileto your bare jid, you don't even need to find the component. I've not done it yet, but it's in my TODO

  505. SaltyBones

    message-id question: why can't we use a counter

  506. SaltyBones

    I have heard: 1. State keeping is impossible, 2. Attacks based on guessing the id but I'm not convinced that either is a real thing.

  507. SamWhited

    State keeping is very difficult if you have a cluster. Your counter has to be centralized and atomic, which rather defeats the purpose of having a cluster.

  508. SaltyBones

    can I PM you for discussion? I don't want to spam this channel all the time :)

  509. SamWhited

    Message me directly please (sam@samwhited.com); none of my clients handle PMs well.

  510. SamWhited

    Though this is probably good discussion and I don't think you'd be spamming this channel :)

  511. jonasw

    yeah

  512. jonasw

    I’d prefer such discussions here too

  513. jonasw

    most of the time they’re insightful

  514. moparisthebest

    SaltyBones, state keeping client side is impossible too

  515. moparisthebest

    see: vm snapshots

  516. moparisthebest

    (server side also)

  517. Ge0rG

    We could also discuss why MUC-PMs are still broken in some clients :>

  518. SamWhited

    They're just broken in general whichever model you take for them. There are tradeoffs both ways.

  519. Ge0rG

    They are broken in poezio, but it seems that once you explain to a reasonable developer how to implement them, they magically start working.

  520. Ge0rG

    At least it's a problem that's easier to solve than MUC reflection matching

  521. Guus

    Ge0rG: are they more broken than UI's not being aware to check if PMs are permitted in the room?

  522. SamWhited

    Guus: you either have what Conversations / Mcabber do where they're mixed in with room traffic and you constantly accidentally send things you meant to be a PM to the room, or they're separate conversations in which case they look like 1:1's except a lot of stuff you'd expect to work just doesn't because they're actually MUCs.

  523. SamWhited

    Also if they're mixed in with the room it's just hard to follow a conversation by PMs if there's also room chatter going on.

  524. Ge0rG

    Guus: that should be solved by properly augmenting outgoing messages with their error bounces

  525. Ge0rG

    SamWhited: I think that daniel's take at integrating PMs into the MUC is a conscious effort to make them unusable ;)

  526. Ge0rG

    Besides of not working when you are not in the room, and most clients getting MUC-PM Carbons wrong, my experience is that they work just like normal messages, except you don't know the actual JID of the receiver.

  527. SamWhited

    Ge0rG: as opposed to having them being separate conversations? That's almost as unusable, just for different reasons. Especially since if the person changes their nickname it immediately breaks everything and makes the world a confusing place.

  528. daniel

    > Besides of not working when you are not in the room, or the recipient. but yes not working messages. pretty minor

  529. Ge0rG

    SamWhited: a smart client would probably implement nick change tracking, but that doesn't work well for history.

  530. Ge0rG

    SamWhited: but as opposed to nickname wars from the IRC days, people have pretty constant nicknames today.

  531. daniel

    it's almost perfect. expect. you know. messages don't work if the recipient drives through a tunnel

  532. SamWhited

    Right; MUC PMs in general are just a bad experience, no matter how you slice it.

  533. Ge0rG

    I don't know. My experience with them has been better than with some MUCs, and even better than with direct messages in some corner cases

  534. daniel

    and yes. making the UX bad in Conversations and 'hiding' it behind a long press is an attempt to guide people to send regular messages

  535. Ge0rG

    daniel: except people botch it all the time and send private things in public by accident

  536. Ge0rG

    daniel: it's okay to hide them, but please don't make them easy to mis-use

  537. Ge0rG

    I think that with always on clients and some self-presence checking code they can be made to work pretty well. Bonus points if you keep outgoing PMs stored until the nickname comes back online

  538. daniel

    Lol sure. But why?

  539. jonasw

    Ge0rG, so I can steal that nicknames PMs?

  540. jonasw

    sweet

  541. daniel

    The serve no purpose besides annoying me when people think that I help them faster if they pm me

  542. Ge0rG

    jonasw: how do you know that I'm me?

  543. jonasw

    Ge0rG, I could’ve established that during the conversation.

  544. Ge0rG

    (besides of the obvious one, me being the only person who cares about PMs)

  545. daniel

    > Bonus points if you keep outgoing PMs stored until the nickname comes back online Until you are both online at the same time

  546. Ge0rG

    jonasw: I could have left the conversation and been replaced by Mallory at any moment in time during our dialog

  547. Ge0rG

    daniel: you can't see their presence if you are offline 😛

  548. daniel

    Pretty cool feature these PMs

  549. jonasw

    Ge0rG, not with a client which reasonably checks identity

  550. jonasw

    i.e. either uses the real JID if available or assumes the worst :>

  551. Ge0rG

    daniel: so you are annoyed because your client is popular? Note taken.

  552. daniel

    And I could even have four conversations with four different Ge0rGs in four different mucs

  553. daniel

    And I wouldn't even know if it's the same Ge0rG

  554. daniel

    Pretty fucking awesome

  555. daniel

    Plus the regular conversation with the real Ge0rG if have

  556. jonasw

    I like what pidgin does (yes, really)

  557. Ge0rG

    jonasw: daniel: now you are arguing against anonymous MUCs

  558. jonasw

    if it knows the real JID, it’ll just make a conversation with that

  559. daniel

    jonasw: execute code remotely?

  560. jonasw

    completely circumventing the MUC. and your privacy if real JIDs are only visible to mods, I guess.

  561. jonasw

    daniel, hah.

  562. Ge0rG

    jonasw [21:11]: > I like what pidgin does (yes, really) Who are you and what have you done to jonasw?

  563. Holger

    > now you are arguing against anonymous MUCs Go go go!

  564. Holger

    Once we ditched anon MUCs, there's clearly no point anymore in keeping MUC PMs, is there?

  565. jonasw

    we might need to solve the SPIM issue first.

  566. jonasw

    or also ditch public MUCs in general. and even then I’m not convinced that this is a good idea.

  567. Zash

    Solve you say?

  568. daniel

    maybe we need a small protocol where you can ask someone for their real jid . or give them your real jid. sort of like an invite to chat 1:1. and the other person can accept or decline

  569. jonasw

    Zash, yes.

  570. Ge0rG

    Holger: tell that to the people who created MIX proxy JIDs.

  571. Holger

    jonasw: Yes my suggestion is ditching public MUCs.

  572. jonasw

    Holger, hm.

  573. daniel

    so clients could render that as Ge0rG (georg@domain.tld) wants to talk to. is that cool?

  574. jonasw

    Holger, what IM system would you propose as support channel for, say, prosody, then?

  575. Holger

    jonasw: Or keep them the half-broken way we have them now. That's good enough for the few of us who use them.

  576. Holger

    jonasw: IRC.

  577. jonasw

    ugh

  578. Holger

    Ok, Matrix :-)

  579. jonasw

    Holger, okay, if we agree on that, we could "just" solve that with UX

  580. SamWhited

    Maybe we ditch anonymous mucs, and then if you need to be anonymous your server could issue you with some sort of temporary JID that you could use. Some sort of "burner" jid, maybe. (actually, there were reasons this wasn't ideal, but I forget what they were every time this conversation happens)

  581. Ge0rG

    SamWhited: didn't you even write a strawman xep for that?

  582. Ge0rG

    BTW, was MIX even mentioned at the summit?

  583. Seve

    Heh..

  584. Holger

    Or just register an anon JID manually if you need that.

  585. SamWhited

    -xep 0383

  586. Bunneh

    SamWhited: Burner JIDs (Standards Track, Deferred, 2017-01-28) See: https://xmpp.org/extensions/xep-0383.html

  587. Holger

    Like email users do.

  588. Ge0rG

    Or has everybody sane finally reached the conclusion that MIX is dead?

  589. jonasw

    Holger, right, because our multi-account story does work so well ;)

  590. SamWhited

    -xep 0389

  591. Bunneh

    SamWhited: Extensible In-Band Registration (Standards Track, Experimental, 2017-03-16) See: https://xmpp.org/extensions/xep-0389.html

  592. Holger

    jonasw: Rather than investing time in fixing PMs we should fix that multi-account story!

  593. Ge0rG

    SamWhited: the only problem with burner JIDs is that they are free and nobody can block them

  594. jonasw

    Holger, I tend to agree

  595. Ge0rG

    So all we need to do is a PoW attached to creating them!

  596. jonasw

    I’ll... just ... stop following that discussion at this point.

  597. SamWhited

    Ge0rG: yah, there needs to be some better policy or access control around them, but there didn't seem to be enough interest for that to be developed.

  598. Ge0rG

    Do I hear blockchain m

  599. SamWhited

    But it's no different than people running their own server that they could add tons of JIDs on really, and public servers can certainly rate limit since it requires authentication to get a burner JID

  600. SamWhited

    Servers could even say that burner JIDs aren't allowed to federate, so they could only be used for MUCs on that server (in which case you could also allow them with SASL-ANONYMOUS)

  601. Ge0rG

    SamWhited: now this is a really useful idea. I'm running a non federated anonymous server for support MUC purposes on my domain.

  602. SamWhited

    Ge0rG: yah, I do the same, that could be a burner JID service as well and just don't allow burner JIDs to send to stuff on other domains to prevent spam.

  603. jonasw

    daniel, IIRC, when zinid announced that he was working on the MUC bare-presence thing, you asked whether it’d include disco#info caps. Why did you ask for that? Which part of a MUCs disco#info do you need?

  604. Ge0rG

    SamWhited: I'd say your last proposal is sufficient to kick all that proxy JID stuff from MIX.

  605. SamWhited

    Ge0rG: there was some reason that it wasn't that I think I ended up being convinced by, but I can't remember what it was.

  606. SamWhited

    But I would love it if we just ignored anonymous MUC and that was handled out of band, by my proposal or something else.

  607. SamWhited

    Anonymous identities are useful for more than just chat rooms, so it doesn't make much sense to me that it should be part of the groupchat spec and only useable there.

  608. daniel

    jonasw: mhhh I guess I don't really *need* it. I think I always query the muc anyway to get a response and avoid server not found et al. But I do work with the non anonymous, members only feature

  609. daniel

    And the form field that tells me if users are allowed to write pms and set the subject

  610. jonasw

    daniel, okay, so you essentially need the Form :/

  611. daniel

    Which currently doesn't provide the information I need anyway on ejabberd...

  612. Ge0rG

    daniel: you should write an xep (or a new section for 45) on how to properly create a private MUC

  613. daniel

    jonasw: yes. I'm aware of ejabberd putting in the member count though... Which makes that difficult...

  614. jonasw

    daniel, so that use-case wouldn’t profit from splitting the caps hash into identities+features and forms

  615. jonasw

    pity

  616. daniel

    Other than that a lot of my conferences are configured the same. And having a caps hash would actually minimize the traffic a bit

  617. jonasw

    daniel, but only if the occupant count isn’t in there

  618. daniel

    Yes

  619. jonasw

    and if it isn’t, it probably doesn’t matter a lot if we split the hashes because MUCs generally don’t have a very diverse feature set I assume

  620. Ge0rG

    I'm displaying the occupant count in MUC invitations... 🤔

  621. jjrh

    Is there not a way to set a MUC to show everyones full JID?

  622. daniel

    jjrh: yes

  623. jonasw

    "yes there is a way%

  624. jonasw

    "yes there is a way"

  625. Ge0rG

    https://upload.yax.im/upload/7Cr3yYVohs6RrCxg/1518640458381643013676.jpg

  626. jjrh

    Because this issue is more of a annoyance in 'trusted' places - aka internal chat where there is no reason I shouldn't know you're JID and when I click your name in group chat (as a lazy way to send a PM vs going to my roster) it should do the right thing.

  627. daniel

    jonasw: fwiw the split of what muc puts into features and the form is pretty weird and confusing anyway

  628. daniel

    And the naming of the features as well

  629. moparisthebest

    I quite like that burner jid thing

  630. moparisthebest

    what were the downsides again SamWhited ? (or whoever)

  631. SamWhited

    I wish someone would remind me, but I do remember being convinced that it wouldn't work for MIX ¯\_(ツ)_/¯

  632. jjrh

    beh i'm dumb, I didn't know showing jids was a option in room configuration that probably solves /my/ issue at least.

  633. moparisthebest

    SamWhited, oh, because burner JIDs aren't shared across devices?

  634. moparisthebest

    which basically means multi-device can't work

  635. moparisthebest

    so what if you essentially just solved the alias problem while you are at it?

  636. moparisthebest

    a XEP that gives 'burner JIDs', except rather than being extra logins, the server just delivers all messages to that JID to your account, and you can also send things as that JID, same connection

  637. moparisthebest

    it would be a bit complicated, but would solve the alias problem *and* the anonymous muc/mix/future mux/whatever problem

  638. jonasw

    if multi-device doesn’t work, I’d be pretty unhappy wtih that

  639. SamWhited

    yah, that's probably it; multidevice seems like a must. I actually had it that way originally before someone reminded me that SASL provides an authorization identity; mixing the two streams felt *really* dangerous to me though.

  640. SamWhited

    The server could always issue the same burner JID to all of your devices though.

  641. Ge0rG

    Burner could work as a jabber transport as well.

  642. SamWhited

    Ge0rG: I didn't understand that?

  643. Ge0rG

    SamWhited: implement it as an xmpp 2 xmpp transport...

  644. Ge0rG

    Would give us roster control and the ability to unsubscribe and obtain a new identity

  645. SamWhited

    I don't think a second JID would help you with that, you still need the client and server to speak the protocol. I suspect I'm missing something though

  646. SamWhited

    oh, not 'xmpp2 to xmpp transport'

  647. SamWhited

    I am still not sure how it helps or what use an xmpp to xmpp transport is though

  648. SamWhited

    Different identities in your roster I'll grant, although merging rosters is weird UI wise

  649. SaltyBones

    I postulate that all of this is caused by people wanting to use the same software for private chats and anonymous public chats. There is surprisingly little overlap in terms of both functionality and UI.

  650. SamWhited

    I tend to agree

  651. SaltyBones

    Also, people don't understand how any of this works anyway. If we completey drop anonymous JIDs it will be strictly better because nobody even understand what the benefits are or when they apply so they cannot make use of them. :p

  652. Zash

    More or less public chats are what we use XMPP for ourselves. Don't underestimate that use case.

  653. SaltyBones

    Zash, what do you mean by more or less public chats?

  654. Zash

    SaltyBones: This very room for example.

  655. SaltyBones

    This room could have JIDs of everybody and nobody would care...

  656. Zash

    I would, I'm not entirely comfortable with random people being able to contact me out of band just becasue I join a room.

  657. Zash

    Not that my JID is secret

  658. SaltyBones

    That's imho a matter of spam handling

  659. Zash

    I don't mean because of spam

  660. SamWhited

    I can see anonymity being useful, I just don't think it makes sense to lump it in with grouochat.

  661. SamWhited

    groupchat, even.

  662. Zash

    In the prosody support room, the intention is for people to ask the room, so that someone who has time and will can reply and help. Sometimes they instead go directly to PM someone, which can create some amount of stress over not being able to shift the work to others.

  663. jjrh

    While I set everyone to who may discover JID's, clicking someones name still creates a message in the context of the MUC instead of a direct message. This is with Gajim but i'm guessing this is a issue with other clients.

  664. SaltyBones

    Zash: so you re saying it is already as bad as if there were no anonymous IDs? ;)

  665. jjrh

    Zash, it's not just stress - chances are the answer is probably useful to others. :)

  666. Zash

    That too

  667. jjrh

    MUC message threads in a smart UI would be really cool on high volume channels where multiple questions/discussions are going on at the same time.

  668. Zash

    There was a client that did that, IIRC. Vacuum-IM perhaps?

  669. Zash

    There was one (mabye the same) that did #hashtags that let you filter on that as well.