News for hackers. Stuff that matters.
Re:Teenager facing prison for downloading unsecured files fr... by rayiner on Monday April 16, 2018 @08:10PM (#16854209)
> In fact many resources can be discovered by programmatic access, and there is no inherent reason to think this is wrong. Just because an API isn't documented doesn't make using it illegal.

The license to access private property is based on the intent of the property owner. Where the intent is made express (through a sign), that governs. Where the intent is not made express, we try to figure out what a reasonable person would infer about the property owner's intent.

The method of access, therefore, is relevant insofar as it tells you about what the owner of the web server intended people to have access to. The fact that content on a website meant for the public to access is only accessible by "programmatic" means that ordinary users would not know, is strong evidence that the owners of the web server did not intend for people to access those documents.

Re:Teenager facing prison for downloading unsecured files fr... by shkkmo on Monday April 16, 2018 @08:52PM (#16854443)
> The fact that content on a website meant for the public to access is only accessible by "programmatic" means that ordinary users would not know, is strong evidence that the owners of the web server did not intend for people to access those documents

Sorry, that is complete BS. Have you scanned the entire internet and sure sure there are no links to these files on other public pages?

Files publicly hosted by a web server (software explicitly designed and installed to make those files public) is in no shape or form private property.

Furthermore, in this specific case, there is an explicit statement saying the files are public and saying nothing about them not being accessible:

"The Access to Information website allows you to submit, pay and receive FOIPOP requests online. The Nova Scotia Government also posts responses to formal FOIPOP requests online on the Disclosure log. This is a free public repository of FOIPOP responses that have been approved for publication and have met a specific set of criteria (PDF file 800 KB)."

https://novascotia.ca/is/programs-and-services/information-a...

Re:Teenager facing prison for downloading unsecured files fr... by ljm on Monday April 16, 2018 @09:25PM (#16854632)
I can see where you're coming from but you're also describing the purpose of an API, documented or not. Ultimately, if you want to secure the boundaries of your property (whether that's your app or your domain or your honest to god physical land) it's up to you. If you find yourself in the position where other people are revealing information you or your company should have protected then you are accountable. You have to be accountable. The guy who found the problem or abused it is not accountable.
Re:Teenager facing prison for downloading unsecured files fr... by harryh on Monday April 16, 2018 @09:46PM (#16854733)
The guy who found the problem or abused it is not accountable.

This is clearly wrong.

If I forget to lock my door when leaving my house one morning it's still trespassing if you enter the house without my permission.

Re:Teenager facing prison for downloading unsecured files fr... by pdonis on Monday April 16, 2018 @11:16PM (#16855170)
> If I forget to lock my door when leaving my house one morning it's still trespassing if you enter the house without my permission.

This doesn't seem like an apt analogy for the actual case described in the article, though. That case seems more like: you left a bunch of stuff at the curb with a sign that says "free for the taking", but didn't realize that you left some stuff there that you actually didn't want taken.

Re:Teenager facing prison for downloading unsecured files fr... by ozzmotik on Monday April 16, 2018 @10:05PM (#16854826)
in this context i don't think your metaphor applies. your house isn't a freely accessible entity that has been declared as such which has certain areas of it that are off limits but never clearly defined as just that.
Re:Teenager facing prison for downloading unsecured files fr... by harryh on Monday April 16, 2018 @10:12PM (#16854872)
So what you are saying is that what matters is the intent of the property owner and the general understanding of the population about what is typically public vs private property?
Re:Teenager facing prison for downloading unsecured files fr... by ozzmotik on Monday April 16, 2018 @10:27PM (#16854939)
i would say that those things are certainly relevant, but it would be perhaps very myopic to say they are the only relevant concepts. one should also keep in mind the intent of the individual attempting to access the property, and the perception of what they're doing when they do within their mind as an expression of that intent, for instance. if i have been to led to believe that your property is public through a means that is debatably authoritative, such as a sign indicating it as such, then for all intents and purposes, anything i interact with inside of it in my mind is perfectly acceptable because it falls within the context of pre-established permissions. and if there are parts of your property that for some reason you would prefer private but they are not demarcated as such, am i really in the wrong to interact with them or go inside of them if i have no external information telling me that i should not?

in the context of the article and the problem at hand, the teenager downloaded a bunch of things that were supposed to be public access, but also accidentally downloaded some things that were confidential though not clearly marked as such (im assuming based on available information) and so the only real way he would have known they were confidential was if he actually perused the contents of them. that would be like having a room that is private property and off-limits, and it is marked as such, but the marking is inside the room and can only be seen by entering it and as such violating the private nature of said room. but really these are all just my thoughts on it and i certainly don't think i'm right or anything. it's just fun to talk ya know

Re:Teenager facing prison for downloading unsecured files fr... by harryh on Monday April 16, 2018 @10:35PM (#16854971)
I hear what you are saying about the intent of the actor, but that's tricky. What if the actor doesn't believe in private property? What if the actor accidentally misreads "private" as "public."? These things aren't really mitigating.

This is why the law tends to fall back on what a hypothetical "reasonable person" would think.

I'm not as much of a hardliner as rayiner on this particular case as I think there are some facts in favor of thinking of these documents as public:

- it was a government website

- it was specifically set up for the purpose of sharing foia requests

- the data in the documents was not easily identifiable as private

But when it comes to the general principle where some HNers seem to think "If the webserver responds with a 200 then it's perfectly fine." I have to disagree.

Imagine a different scenario in which we were talking about tax returns instead of foia requests. You're looking at yours at http://www.canadataxes.com/return?id=1234 and you realize that if you inc the ID you get the tax return of some other random Canadian citizen. In that case it would be immediately obvious that someone had made a mistake and you were accessing information you shouldn't. A "reasonable person" would understand that a mistake had been made. It would then be clearly illegal to write a script to scrape down the docs for every ID.

Re:Teenager facing prison for downloading unsecured files fr... by c22 on Tuesday April 17, 2018 @01:03AM (#16855609)
But what if someone had just moved to Canada from Norway and didn't realize that tax return information was supposed to be private? I think it's fair to put most of the responsibility on those who have implemented a system that serves private data in response to public http requests. Presumably this is the party that has both been entrusted with the private data and has the technological and legal resources to understand what can and cannot be served publicly and appropriately configure their systems to do so.
Re:Teenager facing prison for downloading unsecured files fr... by harryh on Tuesday April 17, 2018 @09:00AM (#16857825)
Those that move from one country to another are responsible for learning the laws and customs of the place they are moving to.
Re:Teenager facing prison for downloading unsecured files fr... by c22 on Tuesday April 17, 2018 @09:13AM (#16857926)
No doubt. I still would consider the implementors of said contrived-example-website to be far more liable than our hypothetical confused batch downloading Norwegian friend. Just like I don't yell at my toddler when she knocks over the glass of water I left on the floor.
Re:Teenager facing prison for downloading unsecured files fr... by harryh on Tuesday April 17, 2018 @10:05AM (#16858386)
I agree that the Canadian government has been negligent in the situation under discussion. It's not an either or situation though. Both can be guilty at once.
Re:Teenager facing prison for downloading unsecured files fr... by EamonnMR on Monday April 16, 2018 @11:17PM (#16855178)
Let's say he picked his first random URL and got someone's tax documents. A reasonable person would probably report it and quit prying. But it sounds like the bad documents where mixed in with good documents that he was downloading programmatically, so a reasonable person probably would not have the time to read every single document to determine if it contained personal information.
Re:Teenager facing prison for downloading unsecured files fr... by harryh on Monday April 16, 2018 @11:20PM (#16855191)
Yes, that's what I was getting at when I said:

"the data in the documents was not easily identifiable as private"

as a mitigating factor.

Re:Teenager facing prison for downloading unsecured files fr... by Sean1708 on Tuesday April 17, 2018 @09:31AM (#16858074)
I think that's a terrible analogy, a better (albeit not perfect) one in my opinion is:

If I request access to your house (send a HTTP request) and you grant me access (give me whatever I was requesting), I don't think I should be arrested for trespassing.

Re:Teenager facing prison for downloading unsecured files fr... by harryh on Tuesday April 17, 2018 @10:07AM (#16858402)
If I install a one of those new fancy IoT locks on my door but it has a bug and unlocks for you when it shouldn't, it's still trespassing if you enter my house.
Re:Teenager facing prison for downloading unsecured files fr... by tremon on Tuesday April 17, 2018 @08:51AM (#16857774)
Yet if you forget to lock your car doors or leave valuable items in plain sight on the back seat, the insurance company will not honor your claim.
Re:Teenager facing prison for downloading unsecured files fr... by ljm on Monday April 16, 2018 @10:07PM (#16854839)
You're right, it is. If you keep forgetting to lock your door then the situation changes.
Re:Teenager facing prison for downloading unsecured files fr... by JoeAltmaier on Monday April 16, 2018 @10:39PM (#16854989)
Its not the lock that makes it illegal. Its the act. Somebody reaches into your pocket to take your wallet, its not 'ok' because you didn't lock your pocket, is it?

We're not yet to the point where its the victim's fault when victimized by a criminal. It may seem that way when there are so many active criminals. But some places its still possible to trust your neighbors. I live in one.

Re:Teenager facing prison for downloading unsecured files fr... by harryh on Monday April 16, 2018 @10:11PM (#16854863)
That's not true at all.

I grew up in a relatively small town. Literal years went by where my parents didn't lock the back door. It would have been illegal for someone to enter the house without their permission for that entire time period.

Re:Teenager facing prison for downloading unsecured files fr... by letlambda on Monday April 16, 2018 @08:36PM (#16854362)
Isn't the assumption always that accessing a web page programmatically is allowed unless specifically asked not to in robots.txt?
Re:Teenager facing prison for downloading unsecured files fr... by ScottBurson on Tuesday April 17, 2018 @02:27AM (#16856011)
> Where the intent is not made express, we try to figure out what a reasonable person would infer about the property owner's intent.

We do. But if we fail to do so correctly, as people occasionally will, have we committed a serious crime for which we should be facing prison? Particularly in a case where societal custom is not well formed, and analogies to more familiar situations are all strained?

This young man, by his account, likes to archive stuff he finds on the Web. From the sound of it, he's done URL incrementation many times, and this is the first time he's gotten in trouble for it. Let's suppose for the sake of argument that that's true, and also that there really were no indications on this site that the information was unintentionally left accessible. Do you really want to send him to prison for that?

You might reply that as cruel as that seems, its deterrent value would make it worth doing. But I don't even want to live in a world where people without criminal intent are so succesfully deterred from experimenting with the Internet. In such a world, site owners would take even less responsibility than they do now for securing their information, and therefore actual criminals would have even more unfettered access to it.

Re:Teenager facing prison for downloading unsecured files fr... by ShroudedNight on Monday April 16, 2018 @08:55PM (#16854468)
What is significantly more programmatic about manually incrementing a document ID by 1, than viewing a website in the first place?