News for hackers. Stuff that matters.
Re:Browsers barely care what HTTP status code your web pages... by sopooneo on Friday August 11, 2023 @03:47PM (#37093119)
My personal inclinations agree with yours, I think. I prefer as much detail as possible up front. Which is why I hate the vagueness of my dashboard's "check engine" light*. However, I bet automakers do that not just so the display is cheaper/simpler, but because most drivers are not interested in anything more detailed (or scary).

* Which for me has almost always just meant some oil change "timer" was up, not even that any meter detected my oil was wearing out.

Re:Browsers barely care what HTTP status code your web pages... by rurcliped on Friday August 11, 2023 @04:05PM (#37093331)
Years ago, many decisions to hide error details were a cargo cult reaction to CVE-2012-4929. To review, CVE-2012-4929 works like this:

1. the attacker can see (but not decrypt) the victim's TLS traffic to example.com

2. an attacker-controlled website makes the victim send many different invalid requests to example.com, each of which gets an error message

3. some data in each request is attacker-controlled, but authentication data in headers is filled in by the victim's browser

4. example.com compresses response data before encrypting it

5. because repetitions affect compression, the response size is smallest when the authentication data matches part of the attacker-controlled data

6. after enough requests, the attacker knows the authentication data to login to example.com as the victim

One workaround for CVE-2012-4929 was to set up the server so that an error message never depended on the request data. Before CVE-2012-4929 was announced, people thought it was sufficient to sanitize the error message (i.e., avoid XSS) but CVE-2012-4929 prompted a shift toward producing exactly the same error message for all invalid requests. (Not sure, but I think this was the original motivation for Google's famous "That's an error. That's all we know." messages.)

There were better CVE-2012-4929 defenses later, but the cargo cult had already formed. (Some subset of) a generation of developers believed that customized error messages were Very Bad because they enabled account takeover.

Re:Browsers barely care what HTTP status code your web pages... by zlg_codes on Friday August 11, 2023 @05:11PM (#37094087)
I've thought about alternative dashboards as an option, that show rpm, piston firing stats, or other small details that, when looked at in aggregate, can diagnose a lot of consumer-serviceable issues.
Re:Browsers barely care what HTTP status code your web pages... by bombcar on Friday August 11, 2023 @08:33PM (#37095691)
Most modern cars you can get this by plugging a laptop into the OBD port.
Re:Browsers barely care what HTTP status code your web pages... by zlg_codes on Friday August 11, 2023 @09:24PM (#37096003)
Hm. I might have to look into this when I get a newer car. Still 'rocking' a 00s Honda at the moment.
Re:Browsers barely care what HTTP status code your web pages... by bombcar on Friday August 11, 2023 @09:36PM (#37096087)
Everything post ‘97 should have an OBD or OBD2 port which should connect to the default laptop adapters/software.
Re:Browsers barely care what HTTP status code your web pages... by zlg_codes on Saturday August 12, 2023 @05:00AM (#37098346)
Thanks for the tip, I had no clue. Will look into it!