52 points · by nanis · 5y ago · 116 comments
Perhaps if the creators of the web service had spent more time with the view-source tool during their own schooling they would have designed a better quiz system, one that was less vulnerable to this “exploit”.
The layers of incompetence are hilarious. Incompetent web developers restrict access to a valuable resource, which will inevitably lead to more incompetent web developers.
This is beyond ridiculous and seriously diminishes my overall faith in humanity.
https://www.techdirt.com/articles/20211021/23033847793/misso...
Vs
> Woah it worked, this is so fucking cool, what else can I make the computer do?
It's probably not critical for someone who's decided to be a web developer. It's the foundation that's created every self taught hacker ever.
I was involved in a lot of crappy testing software people wanted to sell our university. That was the first criterion I insisted on these publishers satisfied.
By the mid-aughts, everyone seemed to have understood it. ... WTF happened that now we are talking about disabling view-source in browsers as a security measure?!
I wasn't even aware that was a thing (even though I've had to use Chrome in many enterprise settings). Is this just the `npm install` automatons not understanding the distinction between the client and server in client/server applications?
Idiocracy is here.
This is only acceptable is the purpose is to provide practice questions that do not count for credit. Just like it is a good idea to provide answers to practice questions at the end of the book (sometimes printed upside down).
Of course, to be useful as a learning tool, the answers to such practice question must include an explanation of why, say, (c) is a better answer than (a), (b), and (d).
So, set up practice questions in Google forms, put actual answers/explanations on a web page for students to learn.
You can still do exams in Google forms ... Just don't leave the grading to Google forms. Instead, grade asynchronously.
Again, that would be actual work, so, no leave everything to Google, and accuse students of cheating and take away `view-source`. Right. That's what things have come to.
Unacceptable capitulation to poor educational quality.
See https://support.google.com/docs/thread/39605334/google-forms... to verify.
Meanwhile, the code complexity and unintuitive behavior (who would ever expect 'view-source' to have a blacklist or be controllable by the web page?!) will get externalized onto all Chrome users forevermore.
This is about enterprise policy in a managed environment. It was already able to block a URL - like https://google.com - but not view-source:https://google.com.
Blocking devtools was already possible.
javascript:let $code=document.createElement('textarea');let source=document.body.outerHTML;$code.innerHTML = source;document.body.appendChild($code);
For those who don't feel like reading a js oneliner, it reads the page source and adds an element to the page that displays all of it.You've patched one hole. How many more are possible? We know where this game goes...
i would expect that when a browser displays source code at a url that looks like view-source://the-url-of-the-page, and gives me a pattern-matching blacklist feature, then blocking view-source://* would block urls matching that pattern. having a blacklist feature that selectively doesn't work on certain types of URLs seems like a bug to me.
removing a special-case exclusion is hardly unintuitive behaviour, unless you're using the definition of "unintuitive" that means "something i don't like"
Great move /s
Google Forms
Chromium: Permit blocking of view-source: with URLBlocklist - https://news.ycombinator.com/item?id=29170886 - Nov 2021 (126 comments)
View-Source in Chromium - https://news.ycombinator.com/item?id=29193561 - Nov 2021 (1 comment)
I honestly don't get why so many commentators are upset. They are using Google Forms for tests. And these tests leak answers through the source code. Schools are not well funded and this setup itself is not very professional. When you can fix this by giving admins such possibilities, why not?
It's not like your Chrome will prevent you from viewing any sources. As you can also read in the article the restriction can be limited to certain URLs. IT ONLY AFFECTS MANAGED ENVIRONMENTS WHERE ADMINS CAN DO MUCH MORE RESTRICITNG THINGS ANYWAY.
However, there are legit environments where people might want to prevent users from accessing devtools and view-source functionality, like when using it as a kiosk software.
From security standpoint, it might be also reasonable to disable at least devtools in enterprise environments, since users can not necessarily be trusted with such access (which is the reason why many sites, such as Facebook, display warning to not enter anything in the console, especially if someone instructed them or they found it online).
> Microsoft engineer fixes enterprise-level Chromium bug students could exploit to cheat in online tests
> Ability to block 'view source' for specific URLs hasn't actually worked for years
The post title is a decent summary.
[0] I hate throwing out this word, as it's always used wrong - including my usage here - and tends to carry a lot of other connotations with it which I don't want to affiliate myself with. Is there a better word to use here?