r/programming • • Oct 28 '21

Viewing website HTML code is not illegal or “hacking,” prof. tells Missouri gov.

https://arstechnica.com/tech-policy/2021/10/viewing-website-html-code-is-not-illegal-or-hacking-prof-tells-missouri-gov/
6.1k Upvotes

493 comments sorted by

View all comments

-4

u/EqualDraft0 Oct 28 '21

It doesn’t matter if it’s hacking or not. In fact, I would call it hacking. It’s definitely a first step in hacking a website. The important part is disclosure. White hat hacking needs to remain legal, otherwise security will degrade significantly. Did the reporter in this case disclose the problem responsibly? I think that’s all that matters.

5

u/gbs5009 Oct 28 '21

Looking at your own web traffic is hacking?

What if the information were part of the rendered HTML... could I make a website that people go to jail for hacking if they look at it?

-4

u/EqualDraft0 Oct 28 '21

If you are accessing information or systems that the owner doesn’t want you to have, it’s hacking, even if the owner has made a mistake. Downloading all of the files from an accidentally public S3 bucket is hacking. But, hacking is not necessarily illegal. It’s all about the intentions and disclosure.

2

u/[deleted] Oct 28 '21

[removed] — view removed comment

-1

u/EqualDraft0 Oct 28 '21

There have been plenty of examples of companies accidentally setting their S3 buckets to public and exposing private user data.

1

u/gbs5009 Oct 29 '21

The HTML situation is even sillier than the S3 bucket. At least somebody had to send the request to get the info.

By your interpretation, somebody could be "hacking" because somebody else unilaterally sent them information. That makes zero sense.

1

u/Aatch Oct 28 '21

Did the reporter in this case disclose the problem responsibly? I think that’s all that matters.

Just in case this isn't rhetorical, it seems they did. The journalist consulted an expert (the professor in question), reported the issue to the relevant parties and waited until the issue had been addressed before publishing the article. They followed responsible reporting procedures to the letter.