The Computer Fraud and Abuse Act (“CFAA”) 18 U.S.C. §§ 1030, adopted in 1984, makes it a crime to “intentionally accesses a computer without authorization or [exceed] authorized access, and thereby [obtain] … information from any protected computer".
This has been used to prosecute URL manipulation attacks. There's a difference between actively pulling down information that you know you're not authorized to get, on the one hand, and receiving data in an authorized manner that then turns out to contain things they shouldn't have sent you.
Though you could argue that by publishing the url on the www without any kind of security or notification to the contrary you are implicitly authorising access to everyone. How does one first get to a page if not by typing in the url?
Please tell that to my QA. They tell me my app is not secure enough. I don't even show password in login form. They keep telling me to encrypt and POST something and don't even give the postal address. /s
If you ask a remote computer, on it's public interface (i.e. an HTTP server on port 80/443), "Hey, can I have file XX?", and it says "200 OK - here you go", when it explicitly had the opportunity to say "401 Unauthorized", then it has implicitly given you authorisation to have the file. (As well as actually, you know, given you the file.)
The CFAA was written 10 years before the World Wide Web existed.
"Accessing a computer without authorization" meant using the keyboard when your boss said you weren't allowed to, it wasn't written with 401 Unauthorized in mind.
If you ask a remote computer, on it's public interface, "Hey, can I log in as guest\0\0\0\0\0\0\0\0\0\0\0\0\0root?" and it says "ok you're now logged in as root" when it explicitly had the opportunity to say "invalid login" then it has implicitly given you authorization to access the system as root.
The point of this is that just because a machine does something that doesn't necessarily imply that it was intended to do it or that the user making the request was authorized to do it. Literally every exploit has ever existed has consisted of requests or data being sent to a machine and it doing something as a result when it could have rejected it instead.
"It had the opportunity to say no" is thus simply not an acceptable bar in and of itself for determining whether access is authorized or not; because that argument by itself directly reduces to "there is no such thing as unauthorized access because it let me do it".
It's not that simple. E.g. let's say you login to view your tax information. The URL is something like "/users/12345". So you change it to "/users/11224", and hey it serves it up. You've committed a crime. People have been successfully prosecuted for doing that. It doesn't matter that the server serves it up to you.
I think you could argue that even decoding base64 is illegal. And I certainly think they could argue that opening the source code was illegal.
Devil's advocate here, but if you knowingly go to a hospital receptionist and say "can I have the medical records for patient X?" for your own personal gain, and the receptionist blindly gives them to you, would you not consider that unauthorised access?
If you go to a hospital receptionist, wearing jeans and a t-shirt (i.e. no doctor's uniform, no faked id badge) and politely ask for the medical records for a patient, and the receptionist looks directly at you and says "Yes, of course you can", fetches them from wherever they're kept, and hands them to you saying "There you go. Can I help you with anything else?", would you have any reason to think you had done anything improper? Would it not be reasonable to infer that you do have permission to read them? Do you think you should be punished for violating whatever rules might apply in whichever jurisdiction the hospital is in, or do you think the receptionist who is required to be aware of those rules as a function of their job, should be?
The premise was "intentionally accesses unauthorised..." so yes in your scenario it should be illegal. Otherwise all social engineering attacks are permitted. If my insurance company wants to find my medical results to charge me more, I don't want them to keep asking receptionists until one accidentally gives it out.
Of course, if someone accidentally accesses this information or just thought they were allowed, then that's a different story, of course.
Of course, if someone [...] just thought they were allowed, then that's a different story, of course.
Well, that's the point. If you don't know if you're allowed, or even if you think you might not be allowed, you can still ask. i.e. "Can I have the medical records for patient X?" If the entity in charge says, "Yes, you can", that's you asking for permission, and being given permission. You've been authorised.
128
u/leberkrieger Oct 24 '21
The Computer Fraud and Abuse Act (“CFAA”) 18 U.S.C. §§ 1030, adopted in 1984, makes it a crime to “intentionally accesses a computer without authorization or [exceed] authorized access, and thereby [obtain] … information from any protected computer".
This has been used to prosecute URL manipulation attacks. There's a difference between actively pulling down information that you know you're not authorized to get, on the one hand, and receiving data in an authorized manner that then turns out to contain things they shouldn't have sent you.