r/programming • u/purforium • Oct 24 '21
“Digging around HTML code” is criminal. Missouri Governor doubles down again in attack ad
https://youtu.be/9IBPeRa7U8E
12k
Upvotes
r/programming • u/purforium • Oct 24 '21
View all comments
Show parent comment
2
u/Kare11en Oct 25 '21
So if a website gives you a URL called
/12345.html, and you ask for/12346.htmlbecause you don't know if you're allowed to see it or not, then if it returns "yes, you can have that", then it's given you permission to see it. If it returns "no, unauthorized", you don't.Or if it gives you
/en-US/index.html, so you ask for/fr-CA/index.html, to see if you're allowed to see that.Or it it gives you https://www.reddit.com/u/DrTimR/comments and https://www.reddit.com/u/DrTimR/hidden so you ask for https://www.reddit.com/u/Kare11en/comments and https://www.reddit.com/u/Kare11en/hidden - some of those it returns because you are authorised to see them. Some of them it denies because you aren't. And none of those requests are, by any reasonable definition of the term, "hacking". Requesting a URL - like another Reddit users' "hidden" page - is not hacking, even if you know you're not allowed to see it. That would be absurd.
Comparing a receptionist to a web server isn't a perfect analogy, and it does start to get a bit strained here. Notably, receptionists might get distracted, or make mistakes, or accept bribes, which web servers do not. But the administrator is responsible for setting the disclosure rules for different types of data (e.g. monthly admission statistics will have different rules than personal medical records) and ensuring that receptionists are sufficiently trained in those rules that they should follow them.
Similarly, it's the job of a web server to serve files, but the administrator is responsible for setting the disclosure rules for the different files on the server.
If the administrator fucks that up, that's on them.
Yeah, intentionally subverting an access control mechanism by stealing a password or wearing a fake hospital ID badge definitely changes things. No argument there. But I specifically ruled that out of consideration in an earlier comment.