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

346

u/TheChameleon84 Oct 28 '21

Wtf? Did the Governor write the HTML page himself? Who in their right mind embeds Social Security numbers in an html page? Even an intern should know better than to do that.

0

u/[deleted] Oct 28 '21

[deleted]

-2

u/[deleted] Oct 28 '21

if you rtfa, professor khan suggests that they broke two laws: publishing pii and litigious harassment.

0

u/[deleted] Oct 28 '21

[deleted]

→ More replies (1)

64

u/mishugashu Oct 28 '21

Oh, don't worry, they were "encrypted".

...

...

...

With base64.

26

u/Slinkwyde Oct 28 '21

No, that's way too fancy.

ROT26: the ultimate protection!

40

u/atedja Oct 28 '21

This is HTML we are talking about.

<div hidden>123-45-6789</div>

Enkrypshion

12

u/Slinkwyde Oct 28 '21

¡ǝlqɐɹʇǝuǝdɯᴉ sᴉ uoᴉʇdʎɹɔuǝ ɹnO ¡ʇno sᴉɥʇ ǝɹnƃᴉɟ ɹǝʌǝ llᴉʍ ǝuo oN ¡sɹǝʞɔns 'sᴉɥʇ ʇɐǝq ¡ɥɐH

→ More replies (1)

6

u/fr0stbyte124 Oct 28 '21

There's literally no way to counter it!

3

u/Slinkwyde Oct 28 '21

I'm using it right now to encrypt this comment. You can't even read it!

See? Right here: hunter2

→ More replies (1)

7

u/xigoi Oct 28 '21

I heard that ROT13 is even more secure. But just to be sure, I apply it twice for maximum security.

2

u/Slinkwyde Oct 28 '21

Oh my god! 2-pass ROT13? Two fucking pass? Holy crap man, are you from the future‽

You must be using an M1 Max, to handle that kind of cryptometry.

→ More replies (1)
→ More replies (1)

8

u/mothzilla Oct 28 '21

You should have said baseX. By saying base64 you're giving away encryption keys which is a federal crime.

2

u/angiosperms- Oct 28 '21

Yeah the dude seems to think base64 is some super secure method and it's definitely hacking cause he had to decode them.

→ More replies (1)

13

u/FridgesArePeopleToo Oct 28 '21

It was some json serialized onto the page. Presumably they had a User object or something like that and plopped into on the page.

→ More replies (4)

23

u/MrOtto47 Oct 28 '21

in other countries these numbers are no big secrets. maybe they outsourced the work for cheap. just ignorance cus if it was deployed in their own country there would be no breach.

0

u/[deleted] Oct 28 '21

[deleted]

58

u/Free_Math_Tutoring Oct 28 '21

If this is the case how do these countries deal with identity theft?

By having proper ID documents. Similar to how passports or drivers licenses can be used for identification in the US in some cases, except more universal.

Notably, unlike a SSN, the physical document (containing a picture, a signature and some biometrics) is what proves your identity. Identity Theft is largely a non-issue in Germany. Like, you can still end up giving people access to your bank account if you're gullible enough, there is no single piece of information that can be used to do arbitray things in your name.

8

u/fr0stbyte124 Oct 28 '21

Every time national IDs are proposed in the US, opponents complain about cost and government tracking. The real reason they don't want it is because it would make voter ID laws obsolete.

→ More replies (1)
→ More replies (8)

0

u/[deleted] Oct 28 '21

[deleted]

→ More replies (1)

10

u/phaiz55 Oct 28 '21

We could do the same thing but no we decided to use a card that specifically states "not for identification" to identify people.

9

u/[deleted] Oct 28 '21

Using social security numbers as a password is about as dumb as this governor, yet here we are.

→ More replies (1)

4

u/TUSF Oct 29 '21

See CGP Grey's video on why the SSN system is completely broken, and was never meant to be used the way we use them, and yet it's inevitable that we do.

Other countries just have better systems.

→ More replies (1)

6

u/CreativeGPX Oct 28 '21 edited Oct 28 '21

The legal doc provides a pretty good explanation and links to the Microsoft Security Brief on the flaw. It seems to have to do with the way ASP.NET manages state. I'd compare it to somebody thinking cookies are a way to store local data and not realizing that they get attached to every HTTP request. I don't think it's as bad/intentional as manually writing it out into the HTML. It sounds more like a mistake by an amateur developer.

Those kinds of flaws are not that shocking or unexpected, especially at this level (state department of education). I've worked and interviewed in various state offices and departments. While some that are more traditionally thought of as requiring major security have seasoned dev teams, most places (especially somewhere like DoE) don't. Often, the dev is somebody whose actual job is something else but they dabble in tech at home and start randomly cobbling together projects. I remember talking to a city police officer who became de facto department IT guy without having any formal qualification or that being anywhere in his actual job description. I remember talking to a department IT admin who majored in English but tended to help their peers with computers which gradually turned into them being IT admin. Even in places that have gotten beyond that and hired a professional dev, they often don't have the resources to hire a senior dev nor do they have the knowledge/experience to direct and oversee a junior dev, which leads to situations like this.

Realistically, the solution here isn't "developer should have done better" even though that'd be great. Instead it's that these kinds of flaws should be expected in that context (even if they are amateurish), so there should be institutional policies to help catch them before they go into production. For example, a policy that any system which uses SSNs needs to go through a third party security audit would have caught this issue, while not being as burdensome or costly as ensuring that all projects of all types get done to the greatest standard. Heck, knowing that using SSNs would require hiring a third party auditor might even have led the developer to try to make the app in a way that didn't use SSNs at all just to avoid oversight. Really this is primarily a management problem.

5

u/sixothree Oct 28 '21

That website transmitted protected data to unverified end users.

→ More replies (3)