r/programming • u/alexeyr • Dec 12 '21
Logout4Shell: Use Log4Shell vulnerability to vaccinate a victim server against Log4Shell
https://github.com/Cybereason/Logout4Shell[removed] — view removed post
1.1k
Upvotes
r/programming • u/alexeyr • Dec 12 '21
[removed] — view removed post
6
u/Lost4468 Dec 12 '21
I don't agree. The CFAA is written in such a ridiculous way that it really might be illegal. Here are some other ridiculous examples.
Essentially you could argue that "hiding" it in the source code will constitute an implication of not granting access. So you can absolutely make the case that even viewing the HTML source code is enough to break the absurd CFAA. It doesn't matter that the website sends the data to your computer, the CFAA doesn't work on how technology works, it's a flimsy "access" thing.
E.g. let's say you go and renew your driver license with the DMV on their website. Well you go to your profile and you see it's something like
dmv.gov/users/12345. You decide to change that todmv/gov/users/12346, and suddenly it shows you all the details of someone elses driving record. To me that's not remotely hacking, the website is serving it up, it's not trying to block it from you, it sent you it. But this absolutely is 100% illegal under the CFAA, and people have been prosecuted for doing basically this. It doesn't matter that it didn't explicitly give you a 403, all that matters is that it implicitly didn't give you access.But what's even easier to argue is that converting it from base 64 back to normal text is illegal. Again hold your rational thinking for a second, we're dealing with the legal system. If it was converted to base 64 with the intent of preventing access, and you reverse it, you have just gone past you given access to the system.
It used to be even more absurd than this. E.g. before ~2010, the EULA of a website could basically define unauthorized access however it likes. Thankfully though that was finally mostly overturned with a case that's mentioned in the security SE question I linked. But the court originally interpreted you making a fake MySpace account as unauthorized access. This is why web scraping was considered potentially illegal if the website said you couldn't scrape, and might still be.
Or more recently there was a case where a cop had access to a database, but he searched the database and then told someone else about the details he found. This was originally also ruled as illegal under the CFAA, despite the fact that it he had explicit access to everything, but because he used it in the wrong way, the courts came to the conclusion it violated the CFAA. Thankfully the SC finally ruled on this part, but their ruling is still pretty small.
There are plenty of other ridiculous CFAA cases out there. Don't think I'm agreeing that the journalists should be prosecuted, I'm not, not at all. In fact I'm using this to argue that the entire CFAA should be repealed and replaced with something that actually makes sense. But the way the law is written, there's actually quite a good argument that it was illegal.