News for hackers. Stuff that matters.
Re:Intercepting Zoom's encrypted data with BPF by sillysaurusx on Thursday September 10, 2020 @05:51PM (#24436917)
But how do we find the offsets? What values do we give to ssl_read_offset and ssl_write_offset?

[ REDACTED ]

I had a nice little section on how to find the offsets here. When I first wrote it I was convinced that publishing two addresses couldn't possibly get me sued for reverse engineering. Some of the people who read the draft of this post changed my mind about it though, and it is 2020 after all so it is not a good time to be optimistic.

So, how would you find these offsets? Anyone know?

It's probably the most interesting part of the post.

There's a "hypothetical" paragraph afterwards, but if anyone wants to actually do this with Zoom and post the results, you'd probably earn lots of cred.

In particular, the exact arguments to the objdump command would help.

Re:Intercepting Zoom's encrypted data with BPF by jdright on Thursday September 10, 2020 @06:08PM (#24437064)
It is sad they felt the need to do this. This step is not hard, but censuring it because of hypothetical legal issues speaks a lot about the state of affairs on computing.

I miss the good old times where knowledge were freely published without fear.

Re:Intercepting Zoom's encrypted data with BPF by saagarjha on Thursday September 10, 2020 @07:48PM (#24437814)
Do note that this is generally not something that would be a legal issue.
Re:Intercepting Zoom's encrypted data with BPF by matheusmoreira on Thursday September 10, 2020 @06:14PM (#24437103)
> Some of the people who read the draft of this post changed my mind about it though

Details? Reverse engineering isn't even illegal.

Re:Intercepting Zoom's encrypted data with BPF by yconfiscator on Thursday September 10, 2020 @06:18PM (#24437129)
Since the Zoom TOS explicitly forbid reverse engineering, sadly it isn't so easy.
Re:Intercepting Zoom's encrypted data with BPF by R0b0t1 on Thursday September 10, 2020 @07:04PM (#24437502)
Random companies can't make new law. If you violate their TOS the most they can do is refuse you service.
Re:Intercepting Zoom's encrypted data with BPF by sgrove on Thursday September 10, 2020 @11:05PM (#24438770)
I might misunderstand the fundamental point, but zoom doesn’t seem to be making new laws. Existing contract law is perfectly capable of handling two adults agreeing to a mutually beneficial set of restrictions.

Lots of things that are legal we’ll be restricted in contract agreements - free speech is a fundamental right, but mutual non-disclosure agreements still exist and can result in (civil) legal action if reneged on to one party’s detriment.

Re:Intercepting Zoom's encrypted data with BPF by eitland on Friday September 11, 2020 @01:08AM (#24439369)
> Existing contract law is perfectly capable of handling two adults agreeing to a mutually beneficial set of restrictions.

I think you'll find that most people - and a number of leading law experts - don't consider click through EULAs for valid binding contracts and clicking next is not the same as signing.

You'll also find that many (most? I stopped reading EULAs years ago) contains something about "the following might not be applicable in your jurisdiction".

Besides, just think of it: can a click on a button, placed in a way that makes it easy to click through for someone who accepts the defaults, can such a click really be considered a meeting of minds?

And do we really think people can be expected to read a number of pages of dense legalese? I remember one EULA filling 13 A4 pages with text in a small font after I gave up and printed it two decades ago when I was young and still believed they were valid.

Besides: Expecting non lawyers to read and understand legalese is as crazy as expecting non programmers to read basic Java or Python: within reach for many after basic self study, but still not something I'd bet much money on random people being able to do on the fly.

Re:Intercepting Zoom's encrypted data with BPF by sangnoir on Friday September 11, 2020 @01:06PM (#24444835)
> I think you'll find that most people - and a number of leading law experts - don't consider click through EULAs for valid binding contracts and clicking next is not the same as signing.

If you feel like you're potentially a target of a lawsuit, the only opinion that should matter to you are your lawyer's and the the court's. Some EULA restrictions are not enforceable, but some definitely are. No US court has ruled on whether EULAs are binding, or not - so there is no precedence.

Re:Intercepting Zoom's encrypted data with BPF by matheusmoreira on Thursday September 10, 2020 @11:40PM (#24438967)
What's the point of giving people rights when companies can just force you to relinquish them via contracts? That obviously leads to these "you can't exercise your rights" clauses becoming standard in every contract.

People should be able to do things that hurt a company's business interests, especially reverse engineering. They do not deserve any protection. Actually, it should be encouraged since it leads to better products for consumers.

Re:Intercepting Zoom's encrypted data with BPF by ahmedalsudani on Thursday September 10, 2020 @11:47PM (#24439002)
When you sign a contract, very often you are waiving some of your rights. There are rights which cannot be waived by you—I’m not sure the right to reverse engineer is one of them
Re:Intercepting Zoom's encrypted data with BPF by heyoni on Thursday September 10, 2020 @11:54PM (#24439042)
You never have to sign any TOS when reverse engineering, ergo no contract.
Re:Intercepting Zoom's encrypted data with BPF by ta8908695 on Friday September 11, 2020 @12:31AM (#24439210)
you probably sign TOS as part of the installation of the binaries
Re:Intercepting Zoom's encrypted data with BPF by gibs0ns on Friday September 11, 2020 @01:25AM (#24439453)
clicking a button != signing your name
Re:Intercepting Zoom's encrypted data with BPF by LargoLasskhyfv on Friday September 11, 2020 @04:13AM (#24440254)
There is a certain asymmetry in it, but you can also sue and have shit like that declared illegal. Thing is it would threaten most bizniz-models of the bullshit economy, so it doesn't happen that much.

I'm expecting that this finally changes for the better, at least in some parts of the world, where the parts which don't adapt to that change spiral further down.

Rightly so!

Re:Intercepting Zoom's encrypted data with BPF by untog on Friday September 11, 2020 @12:51AM (#24439293)
These days that could actually be a significant problem, depending on your work.
Re:Intercepting Zoom's encrypted data with BPF by dependenttypes on Thursday September 10, 2020 @09:50PM (#24438408)
Or sue you, which is likely with shady companies such as Zoom.
Re:Intercepting Zoom's encrypted data with BPF by folkhack on Friday September 11, 2020 @12:57PM (#24444737)
No idea why you're being downvoted but this is 100% factually correct in the US: you'll get sued by a company that has a very salaried legal team.

Even if Zoom is in the wrong/has no case, all it takes to "win" in the US is enough of a bankroll to troll someone via the legal system. It's pay-to-play here and Zoom likely has the budget to run an independent researcher into the ground financially with legal defense fees alone.

I get that HN wants to have it's "hacker" ideals and all, but, I would expect to cause myself legal troubles for publishing security details on such a service (unless done anonymously with reasonable opsec).

Re:Intercepting Zoom's encrypted data with BPF by yconfiscator on Friday September 11, 2020 @05:27PM (#24447501)
Thank you I can't believe this had to be said explicitly.
Re:Intercepting Zoom's encrypted data with BPF by user5994461 on Thursday September 10, 2020 @06:59PM (#24437455)
TOS can't substitute to the law. Reverse engineering is legal by law depending on the jurisdiction.
Re:Intercepting Zoom's encrypted data with BPF by codezero on Thursday September 10, 2020 @11:58PM (#24439062)
But if you’re using Zoom for work, they can still ban your account and/or company.
Re:Intercepting Zoom's encrypted data with BPF by LargoLasskhyfv on Friday September 11, 2020 @04:16AM (#24440270)
Then use Jitsi, or something.
Re:Intercepting Zoom's encrypted data with BPF by codezero on Friday September 11, 2020 @12:29PM (#24444446)
Sure, but if your 1000 person company uses Zoom and Zoom only bans your account I don’t think you can convince a company to switch clients. That said I find that specific scenario unlikely.
Re:Intercepting Zoom's encrypted data with BPF by user5994461 on Friday September 11, 2020 @03:20PM (#24446361)
It's no problem. The company can contact zoom support and get your account unlocked.
Re:Intercepting Zoom's encrypted data with BPF by krageon on Friday September 11, 2020 @06:50AM (#24441262)
ToS aren't important if they're not enforceable, which is the case with a prohibition on reverse engineering. That said, if I published something like this I'd do it under a pseudonym under a domain and a vps that I paid for using an untraceable currency. Companies are evil and even if you'll eventually win, they'll make your life miserable. Why take the chance?
Re:Intercepting Zoom's encrypted data with BPF by layoutIfNeeded on Thursday September 10, 2020 @06:17PM (#24437128)
We know the exact version of openssl they’re using, so we can just build the same version ourselves, get the address of the functions, and look for the same pattern of instructions in the Zoom binary. Not sure if LTO could break this or not though.
Re:Intercepting Zoom's encrypted data with BPF by kelnos on Thursday September 10, 2020 @06:57PM (#24437448)
That seems pretty unreliable. The specific version of the compiler used, as well as flags passed to the compiler, could easily change the instructions used, no?
Re:Intercepting Zoom's encrypted data with BPF by yconfiscator on Thursday September 10, 2020 @07:12PM (#24437563)
That was just the quick and naive way I went for because I didn't want to download new tools, but there's many other options.

The easiest way if you have a capable debugger is probably to look for SSL strings/error codes in rodata and see where they're referenced.

Or IDA can even output C code that is very close to the original.

Re:Intercepting Zoom's encrypted data with BPF by codezero on Friday September 11, 2020 @12:00AM (#24439075)
Based on how the OP described finding the offsets, it sounds like this is exactly what they did, perhaps there are some obvious sentinels that make it easy. I’m not a C expert, but I think a function call w/ args has a pretty standard way of being executed and if you know the types of the arguments it’s possibly even easier?
Re:Intercepting Zoom's encrypted data with BPF by virtue3 on Friday September 11, 2020 @02:48AM (#24439827)
ABI compatability baby. Those signatures gotta match up for sure. Once you have that, the underlying guts of the code wont matter so much.

If this was 32 vs 64bit or some such you'd be pretty hosed at where everything was I imagine.

Re:Intercepting Zoom's encrypted data with BPF by codezero on Friday September 11, 2020 @12:28PM (#24444441)
Boom. ABI that’s the word I was thinking of. Thanks!
Re:Intercepting Zoom's encrypted data with BPF by luch on Friday September 11, 2020 @03:58AM (#24440173)
It's pretty reliable in reality, C compilers are actually quite predictible. The only meaningful changes compilation flags do is add/remove basic blocks.

That's also mainly how malware reverse manages to "hunt" APT families, by finding meaningful little patterns in the instructions and look for code reuse in other binaries :D

Re:Intercepting Zoom's encrypted data with BPF by saagarjha on Thursday September 10, 2020 @07:48PM (#24437808)
Generally it's a little bit more manual than "pass flags to objdump"–I'd look for strings and such used by the function in the open-source release and then cross-reference that.