948 karma · joined Jan 19, 2012 (14y ago) · 159 submissions
comment 23h ago · link · parent
But the lean proof is 17M lines, and I use 50 lines/page as a back of the napkin estimate in general which comes out to roughly 340k pages. Obviously it's getting simplified and cleaned up and will come down but it's the same order of magnitude, so it's not "wrong" to have that estimate in mind.
comment 2d ago · link · parent
> A lot of the code is "defensive," i.e., type and bounds checking, trapping error conditions, etc. When I've looked at the unit tests, most of them test the defensive code.
> I tell my engineering friends: "Engineers like to over-complicate things."
I took your message to be in a half-joking tone and I mean mine in the friendliest spirit, from someone who's been where you are, in response to the half-serious part :)
I used to be an "amateur scientific" programmer like you, learned Pascal ~35 years ago, used Fortran and Delphi extensively (my field was experimental physics). At some point, I switched careers and become a "professional" programmer, working on operating systems and embedded software.
Your code simply has (more) bugs. All those unchecked bounds, uncaught error conditions, etc. Your short functions probably work fine on most inputs you give them and, if they occasionally don't, with some luck you notice and you're there to fix them (or if you're less lucky, it propagates into some calculations and results unnoticed...)
I had a hard time accepting it the first time I was told. "But that's not a bug, it's "just" an uncaught memory allocation error." Yeah, that's a bug.
That defensive code probably has bugs too, but fewer bugs. It really depends on the field and the application, and the ease of update / consequence of failure, how fewer bugs you need. For production code, that runs unattended, where uncaught errors can have bad consequences, the 10x extra code is there. That's also why most of the tests focus on those edge cases (the main path will get tested heavily every time you're running the program anyway).
I don't mean your approach is wrong for you, it may very well be best for your use cases. But that "over-complication" is there for very good reasons.
comment 1mo ago · link · parent
And it's _even worse_ than that. A famous french cybersecurity firm, Synacktiv, published a report in 2023 (!) about the code-of-the-day vulnerability, but it made less noise apparently [1]
[1] https://www.synacktiv.com/sites/default/files/2023-10/synack...
comment 1mo ago · link · parent
Stage 1: one endpoint checks for the token header existence, not its content. From the writeup I'm guessing all the other endpoints do check the content, so why?
Stage 3: checks if the URL starts with http://127.0.0.1, not if the domain is 127.0.0.1, to expose an admin token. Ouch.
comment 1mo ago · link · parent
Not surprised by the driver software quality issues. When I was still working in consumer electronics / embedded, I saw many examples of the internals of those devices. The software was often a hodgepodge of scripts and drivers, whatever seemed to work, from companies without a great software and details culture.
We would usually rewrite the drivers entirely from the datasheets or from reversing the vendor ones!
comment 1mo ago · link · parent
- they either didn't warn their customers this was a critical security patch, - many of these fridges/freezers were directly accessible on the internet with their own 3G/4F SIM cards without further protection!
Crazy stuff
[0] https://www.claroty.com/team82/research/freeze-the-controlle...
9.
Fridges in French supermarkets hit by cyber attack(bbc.com ↗)
146 points · by cataflam · 1mo ago · 3 comments
comment 2mo ago · link · parent
Maybe they just haven't talked to you about it? Most people I know have suffered some form of (partial) data loss or another, and lived with it.
comment 8mo ago · link · parent
and I've never seen any confirmation elsewhere
Looks like CyberNews have edited the article with more info since first I saw it, it used to look quite suspicious and untrustworthy, it now has more info. Still doesn't say exactly what a record is, or how many uniques there are.
comment 1y ago · link · parent
The core bug seems to be that support for `date -r <file>` wasn't implemented at the time ubuntu integrated it [1, 2].
And the command silently accepted -r before and did nothing (!)
0: https://lwn.net/Articles/1043123/
comment 1y ago · link · parent
should practice it for ENTER your password, ENTER your 2FA ;)
> Still, I don’t understand how npmjs.help doesn’t immediately trigger red flags
1. it probably did for quite a few recipients, but that's never going to be 100% 2. not helped by the current practices of the industry in general, many domains in use, hard sometimes to know if it's legit or not (some actors are worse in this regard than others)
Either way, someone somewhere won't pay enough attention because they're tired, or stressed out, or they are just going through 100 emails, etc.
comment 1y ago · link · parent
https://karla.io/files/ichthyology-wp.pdf
> At Stripe, rather than focusing on mitigating more basic attacks with phishing training, we decided to invest our time in preventing credential phishing entirely. We did this using a combination of Single Sign On (SSO), SSL client certificates, and Universal Second Factor (U2F)
comment 1y ago · link · parent
That's exactly why I said all the other "helpful" recommendations and warning signs people are using are never foolproof, and thus mostly useless given the scale at which phishing campaigns operate.
Great if it helps you in the general case, terrible if it lulls you into a sense of confidence when it's actually a phishing email using the right email address.
comment 1y ago · link · parent
The answer is simple: use your bookmarks/password manager/... to login yourself with a URL you control in another tab and come back to the email to click it
(and if it still asks for a login then, of course still don't do it)
comment 1y ago · link · parent
1. You just requested it, I'm not saying to never click link on transactional emails you requested. You still need to click on those verify email links
2. It replaces entering your password, so you're not entering your password on a link from an email, which is the very wrong thing.