13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions
comment 7y ago · link · parent
My argument is:
* We have a production, widely used codebase
* This codebase is in C++
* This codebase has probably the most significant efforts to secure it of anything of its size, or at least it's in the top 5
* This codebase suffered enouguh critical vulnerabilities for users to be attacked in the wild
So let's be clear - Chrome suffers from thousands of memory safety vulnerabilities, but not many make it to ITW exploits. This case is special because users actually suffered because of it. It isn't fair to say they've had "one security issue", certainly, just one that's had major user impact.
I'm not judging C++ or the choice to use it. I am saying that this is an example of a very hardened system not being able to compensate for memory unsafety.
comment 7y ago · link · parent
What I'm saying is that Chrome is an example of a project with more security funding than just about any other project out there, and it still can't save users from the footguns of C++.
I guess the question used the wording "should have written it in?", to which I said "a memory safe one", and that's not true. I'm not interested in making a judgment call on their initial choice - I totally get the decision, regardless.
comment 7y ago · link · parent
Apparently, when the language is C++, the value is somewhere above many millions of dollars, and we don't know what it is.
Can we reasonably expect that price to be lower with language X? For many reasons, I would argue 'yes'.
comment 7y ago · link · parent
Picking a language for the Chrome team doesn't seem practical - we all know where your question is going to head.
The point is they have to not pick C++. Again, they've invested many, many millions of dollars into security. Let's not pretend that they're priced out of using another language.
comment 7y ago · link · parent
Chrome has probably invested > 1 billion dollars into their codebase at this point. Certainly >100million into security.
They sandbox their code aggressively. They build this project with security in mind from day 1 - it's been architected for it.
The Chrome security team(s) has a lot of power for a product security org.
They fuzz. They invent new fuzzers. They cluster their fuzzers.
They have a world class bounty program.
They have a world class research team for finding vulns.
They invent or otherwise aggressively adopt mitigation techniques.
But someone out there did it.
Their track record for security is something to really be proud of - this is the first public ITW exploit of its type that I am aware of. But users are getting owned because of, at the very least, a Use After Free vulnerability.
Let's just collectively admit it, finally - you can't write safe C++ in a codebase this complex.
edit: (From a post below)
To be clear, I'm not saying "Chrome should be rewritten in a memory safe language", I'm saying that Chrome is an excellent project to point to, say "Wow, no one does as much to secure a codebase as them", and to follow that up with "and they still got owned by UAF".
comment 7y ago · link · parent
I've seen that approach used but I can't really comment too much on the differences as I've never used it myself. I find my approach simple in practice (I've shipped Python code that takes the same approach, sans affine types) because it separates the types out.
So, essentially, I write my non-sesssiony struct with all of its methods, and then I wrap that in the session types. This lets me easily drop into the non-session type if necessary, and the sessions types act as thin wrappers. My imap client worked the same way, if I recall.
The downside is likely boilerplate.
comment 7y ago · link · parent
I looked at a number of other graph dbs, and landed on dgraph for a few reasons.
a) I like the query language. It felt natural to me. That's just my opinion though. Other languages felt cumbersome, and I didn't feel like I was operating on a graph.
b) I needed write performance. I'd talked to colleagues about their experiences (I have some friends at graphy companies) and every time I asked "what about X graphdb? could it handle this write load?" the answer was "no, definitely not".
I chose dgraph and it's been working like champ. Support via slack has been solid, they're focusing on the right things (performance, correctness), and I have a lot of confidence in the future of the project.
comment 7y ago · link · parent
DGraph's write perf seems to be considerably better - I haven't benchmarked formally, just going off of discussions I've had with others.
comment 7y ago · link · parent
How do you explain the 'NewSQL' approach, which seems to be so clearly borne of what we've learned from NoSQL?
It should be obvious that NoSQL has value, regardless of the issues with one of the earlier NoSQL DBs.
comment 7y ago · link · parent
> (Unless if the job description is for front-end development only, in which I'm less qualified to say whether a CS education is needed or not.)
The browser is an extremely complex platform, at least rivaling an operating system. If you're going to argue that advanced knowledge of a platform is required for non-frontend work, you should be comfortable making the argument for frontend.
Except people generally don't make that argument. Frontend devs (I am not one) are looked down on. But it's a double standard.
I'm sure that wasn't your intention, but it's a constant expression I see - that web developers are a class separate from the rest of us. The truth is that OS knowledge is not critical and the general sentiment that frontend devs can do their job without understand the complexities of a browser only reveals this.
More to your point, I taught myself about OS's and x86 outside of class because I wanted to learn how to exploit memory safety issues. I never made a career out of it, but I learned a lot, and it was a matter of buying a few books and talking to people on IRC. I found tons of excellent talks by Herb Sutter and Scott Meyer about CPU architecture and how code maps to it.
There's a ton of resources out there for those who choose to self-teach.
comment 7y ago · link · parent
The statement that you are not to call yourself a programmer, you haven't earned it, you're not a real programmer.
The justification against being self taught amounts to - 'well you can't work for NASA, and uh, something about learning to be a professional'? I found it particularly ironic that they pointing out how many big projects started in academia - and how many of the largest companies were started by dropouts?
The author acts as if they're exploring the idea, but it's not an exploration, it's an argument that they clearly already had made their mind up on.
comment 7y ago · link · parent
I'm quite biased, as I found it incredibly insulting throughout the article, as I myself dropped out of college.
I believe that college is a viable path with many benefits. I believe self taught is another viable path with many benefits.
I am a programmer, and I dislike an article saying that I am not because I chose to exit my university early and join the work force.