Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 8y ago · link · parent

I've been shipping production software for years... I think you've misread my post if you think I said that every bug should lead to a lawsuit. It's right in the first part of my first post that we should not be holding every product equally liable for every bug.

There is a line somewhere, and beyond that line is negligence. A developer exposing a potential vulnerability in an internal service that does not handle sensitive information is clearly not across that line, a company that creates routers that constantly have serious holes, that handle sensitive information, seems clearly on the other side.

Deciding exactly where that line exists is obviously complex.

comment 8y ago · link · parent

Architects and civil engineers are held liable. I would imagine we would use a similar system, as someone with no idea how that system works.

comment 8y ago · link · parent

> Even finding the vulnerabilities is hard already, because lots of systems are snowflakes and each needs to be analyzed individually, and usually in individual ways.

When it comes to SOHO routers it's not as hard as it should be, by a long shot. Tons of hardcoded creds and pretty surface vulns in them.

> - Is the distributor of the router liable for a vulnerability in a used library? Surely they could vet and review libraries.

Yes.

> - What happens if that library is openssl and almost all webservers on the internet are vulnerable?

Everyone deploying it is liable.

> - What happens if the library is used in an insecure way? For example, if you seed openssl or libressl with weak random numbers, it is possible to attack algorithms provided by the library.

The company doing so is liable.

> - On the contrary, if the author of a library is liable, what's going to happen if I use a library of a company and build something vulnerable with it intentionally?

You are liable.

As in, the person who produces the product is liable for what they put in the product.

But, as I said elsewhere, this is all off the cuff and relies on a way to properly classify software, which is extremely hard.

But yeah, to your points, none of those feel hard to deal with at all.

I'm not a lawyer. This is not an area I'm so familiar with. But we already have some controls for CC info, and extending those further would be hard but a good start. This situation is extremely out of hand, whether I have the solution today or not.

comment 8y ago · link · parent

This just shifts the burden to the users, I don't see this as a meaningful solution.

I think that there would probably need to be classifications of software.

Things like:

1) Is this infrastructure (routers, scada)

2) What level of user data is exposed to this software ? (unencrypted user data, credit card info, etc - we already do this to some extent)

3) What level of exposure exists? (NAT'd, routable, etc)

And then start imposing restrictions on software in those cases.

But this is very off-the-cuff, obviously it's far more complex than this. But someone needs to be responsible.

comment 8y ago · link · parent

> Do you really want liability for software bugs?

Yeah, definitely. Especially for infrastructure.

I realize the implications of this are significant.

I don't think the solution is "all bugs cost every company money for every product", but there's definitely more or less risk involved in some software and we are well past the point of negligence from router manufacturers - the vulnerabilities we see from them are absolutely absurd.

comment 8y ago · link · parent

Most users on the internet are completely incapable of understanding what tracking even means. Those users, therefor, can not consent to that tracking in an informed way.

Those users need to be protected.

comment 8y ago · link · parent

People fuck up commas and semicolons basically constantly in English.

comment 8y ago · link · parent

Serde is definitely the standard for rust. There's another project, pikkr, that takes a different approach that can work well for specific workloads:

https://github.com/pikkr/pikkr

comment 8y ago · link · parent

> When she had $67000 she decided to take another $24000 loan? With a variable interest rate? In the year 2010, 2 years after the financial crisis of 2008 she didn't understand how a variable interest rate was disastrous?

They're students... of course they don't? Lots of adults don't even understand things like this.

And I don't see how you're arguing for public universities as if they're the obvious, common sense solution, when private universities are an extremely popular option (and really, more often the 'default' for a lot of people).

comment 8y ago · link · parent

It's true. You're making a ton of unsupported statements.

Is it so crazy that they would have two teams, or more, working on something like this? Not really, especially if you're familiar with how Google does things (how many chat apps have they had? do you think those were from one team?).

You're making statements like they're facts but you haven't backed anything up at all.

There is no concrete evidence supporting the theory that the demo was faked and you have multiple, hard accounts even just in this topic, that Googler's have been using this service already. So everyone is lying?

comment 8y ago · link · parent

You have no evidence that they don't.

comment 8y ago · link · parent

Not necessarily. Companies should be assuming false negatives in their process and should be encouraging reapplication in most cases. It is in their best interests to provide feedback to the developer and a good experience.

comment 8y ago · link · parent

You have no evidence. Your supporting argument is a straw man about an unrelated device.

comment 8y ago · link · parent

Have you filed bugs for these? Are you aware of open bugs?

comment 8y ago · link · parent

Whatever the type was, it contained a password, and therefor could have been moved into a type that prevented the bug.

Whether it's a password or an "unparsed client data" structure or whatever.

comment 8y ago · link · parent

Because technology is more than practical, it's also cool.

comment 8y ago · link · parent

Can you elaborate?

comment 8y ago · link · parent

Hiiii.

I think we're likely on the same page. The desire to make writing an HTTP server that much easier by providing a quick-to-use solution is entirely reasonable.

I just don't believe the solution is some 'sanctioned', permanent addition to std.

Better to be solved in crates.io.

comment 8y ago · link · parent

There are a few ways.

a) In terms of memory safety, Go is not memory safe in the presence of data races, and Go does not prevent data races at compile time.

On top of this Go does not enable ASLR on most OS's. That means that when Go loads code from other languages, such as C/C++, memory safety issues in those languages are extremely easy to exploit relative to in a language like Rust, which enables tons of mitigation techniques by default.

b) More loosely, Rust has a more expressive type system. It is, in my experience, much simpler to enforce constraints in a 'type driven' way. In my opinion, this leads to safer software.

As an example of (b) I have written authentication code that encodes the authentication protocol's state machine into the Rust type system. What this means is that it is impossible to jump between two states in an undefined way. Beyond that, because of Rust's affine type system, it is impossible to reference invalidated states.

For authentication code, especially when you add complex stateful transitions such as rate limiting, whitelisting, etc, this is an extremely effective way to reason about your security critical code.

I think there is a case to be made that there is a real, significant difference between the languages regarding security.

comment 8y ago · link · parent

Why choose a winner?

What if a 'winner' today is a loser in a year? What if we come up with a new approach to solving a problem that requires a breaking change, or a new crate?

Would someone be inclined to try to improve the state of HTTP given a good enough version in std? Would we be ok with discouraging that sort of competitive approach?

To be honest, all I see are downsides to having a huge std lib. The benefit seems to be that there isn't an obvious, de facto choice for what crates to use. But I think that's a problem better solved by crates.io.

comment 8y ago · link · parent

Comparing javascript to ASLR is nonsensical.

comment 8y ago · link · parent

Why is this such an uphill battle?

comment 8y ago · link · parent

> That is contrary to decades of experience.

In languages like C and C++.

I haven't really seen this as a big problem in Go. I know of one vulnerability involving this, personally. I haven't gone looking though.

Regardless, I think there's a world of difference between C and Go when it comes to memory safety.

comment 8y ago · link · parent

Honestly, it's pretty encouraging. All of the problems they listed are things I see as being very nearly solved.

For example, I ran into the futures issues. Now I use nightly's async/await, and it's a massive improvement while still being early days.

I also use the Non Lexical Lifetimes feature, and see a lot of ergonomic wins there.

The other stuff is being worked through as well - Failure is coming along, and I hear good things. Libraries are always improving.

I would be a lot more terrified if these issues were surprising, or not being dealt with, or were extremely hard to fix without breaking the language, etc. Instead, it's a list of things I've run into and can even solve today with a few features.

comment 8y ago · link · parent

> GCs also tend to have cliffs where you hit some unknown threshold when they start thrashing where deterministic release of memory tends to be much more linear.

I've experienced this, having previously worked on Java services.

It can be quite a pain and can throw a wrench into your understanding of how you intended to scale.

comment 8y ago · link · parent

This is true, Go is not memory safe in the presence of data races, and data races are possible in safe Go.

But they're also generally easy to code-review out. There's definitely a huge difference between C and Go, regardless of this one caveat to Go's memory safety guarantees.

They aren't using single threaded Go from what I can see.

comment 8y ago · link · parent

I'm really curious to see actual performance benchmarks, and to understand where the majority of performance is lost.
1
149150151
164