-
Cynthia
How do you announce entity capabilities without the operator being able to tamper with them and do a downgrade attack
-
Cynthia
Can I send them as apart of a SCE message?
-
lovetox
? where is a downgrade attack with capabilities?
-
Cynthia
I'm assuming it's trivial for the operator to take the caps (sent by a user, not the server) and omit a few features
-
lovetox
yes, but to make this an attack, you would need to show that there is a process that depends on cap features for security features
-
Cynthia
Well I wanna make a new XEP based off of OMEMO Media Sharing that completely encrypts the filename (including extension), but have it still be compatible with the old XEP in case the client doesn't support it
-
lovetox
i would say you should design it so you dont need entity caps
-
lovetox
because nobody will query it
-
Cynthia
Well nobody would implement it if it doesn't have backwards compatibility (as it would be reduced UX for clients that don't support it)
-
lovetox
if you cannot make it backwards compatible without entity caps, then it will not be backwards compatible
-
Cynthia
Like having to download a file named ahebejfwbwnskw.bin and rename it to picture.png✎ -
Cynthia
Like having to download a file named ahebejfwbwnskw.bin, decrypt and rename it to picture.png ✏
-
Cynthia
> if you cannot make it backwards compatible without entity caps, then it will not be backwards compatible Well that's gonna be difficult ↺
-
lovetox
either you have full stanza encryption, as in OMEMO2 or OpenPGP, then this problem is solved
-
Cynthia
Full stanza encryption is not the problem really
-
Cynthia
It's having to maintain compatibility between a client who supports this and a client who only supports regular AESGCM://
-
lovetox
who supports what?
-
lovetox
what do you try to do?
-
Cynthia
Send a link similar to AESGCM:// except the original filename is stored at the end of the link
-
lovetox
you can do this with aesgcm also
-
Cynthia
And the filename within the HTTP URL is completely scrambled, including file extension
-
lovetox
simply add another parameter
-
Cynthia
Yeah but not file extension
-
lovetox
either way, entity caps will not help you there
-
lovetox
its only for a device, and you dont know who downloads a message in the future and what capabilities they have
-
lovetox
i dont know, this is already a solved problem with full stanza encryption
-
Cynthia
How would a regular AESGCM client parse this: aesgcm://xmpp_server/files/sjwdhdsiwiw.zzz#[key and iv];originafilename.png
-
Cynthia
for example
-
lovetox
ah you want to put it in the fragment, yeah thats not going to work
-
Cynthia
> i dont know, this is already a solved problem with full stanza encryption Which part of it? ↺
-
lovetox
all of it
-
lovetox
full stanza encryption means everything is encrypted
-
lovetox
you can send file as8as8d8as9d9ads9ad.jpg, and tell the client in a tag that its picture.jpg
-
lovetox
https://xmpp.org/extensions/xep-0447.html#file-sharing
-
lovetox
here see the <name> element
-
lovetox
you can even define the extension there
-
Cynthia
> you can send file as8as8d8as9d9ads9ad.jpg, and tell the client in a tag that its picture.jpg But can I send file with the extension scrambled? ↺
-
Cynthia
Specifically?
-
Cynthia
Hm
-
Cynthia
Maybe SFS could work yeah