Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

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

@insanitybit
Submissions

comment 4y ago · link · parent

Yes, Chrome pretty much single-handedly changed that, timed well with Vista. For about a decade we got a reprieve because:

1. Memory safety mitigations became much more common (Vista)

2. Browsers adopted sandboxing (thanks IE/Chrome)

3. Unsandboxed browser-reachable software like Flash and Java was moved into a sandbox and behind "Click to Play" before eventually being removed entirely.

4. Auto-updates became the norm for browsers.

And that genuinely bought us about a decade. The reason things are changing is because attackers have caught back up. Browser exploitation is back. Sandboxing is amazing and drove up the cost, but it is not enough - given enough vulnerabilities any sandbox falls.

So it's not that security is getting worse, it's that security got better really really quickly, we basically faffed around for a decade more or less making small, incremental wins, and attackers figured out techniques for getting around our barriers.

If we want another big win, it's obvious. Sandboxing and memory safety have to be paired together. Anything else will be an expensive waste of time.

comment 4y ago · link · parent

lol if "shit still gets rocked" means "programs exit safely but unexpectedly sometimes" we're on very different pages

I'm searching your posts in this topic trying to find something of value and coming up short. You assert that you know rust, and therefor your opinions have merit, but... lots of people know rust and disagree. But somehow your opinions are More Right and the others are just religious Rust shills.

I don't think you know what you're talking about honestly. If you want to pick fights on HN that's cool, we all get that urge, but you're really bad at it.

comment 4y ago · link · parent

Because it's not relevant.

1. In the video he's saying that you can't replace memory safety mitigation techniques like ASLR with memory safe languages. He notes that there will always be some unsafe code and that mitigation techniques are free, so you'll always want them.

No one should disagree with that. ASLR is effectively "free", and unsurprisingly all Rust code has ASLR support and rapidly adopts new mitigation techniques as well as other methods of finding memory unsafety.

2. The link about replacing gnu utils has nothing to do with memory safety. At all.

Even if it were related, it would simply be an argument from authority.

comment 4y ago · link · parent

> There are vulnerabilities in JS and Ruby code, languages that are even easier (and just as type-safe) as Rust.

This is completely misleading. The vulnerabilities that exist in those languages are completely different. They often are also far less impactful.

Memory safety vulnerabilities typically lead to full code execution. It is so so so much easier to avoid RCE in memory safe languages - you can grep for "eval" and "popen" and you're fucking 99% done, you did it, no more RCE.

comment 4y ago · link · parent

You don't need to move the entire attack surface of the iphone to Rust. There are plenty of smaller areas that tend to have the most vulnerabilities. They could absolutely write a check to radically reduce these sorts of issues.

It'll take years to have impact, but so what? They can start now, they have the money.

> nobody disagrees with this (someone will here, but they don't matter)

There are so many people out there who don't understand the basics. HN can be sadly representative.

comment 4y ago · link · parent

So it's just marketing and therefor it's ok to lie, because it's not marketing and people who see it will know it's a lie?

comment 4y ago · link · parent

Because you're advertising a product in a way that's deceitful, obviously. If I sell you a CPU and I say "yeah it's 4.5ghz", and it turns out it runs at 1.6ghz, it should be illegal to say "ghz is just a brand, it's marketing".

comment 4y ago · link · parent

It really feels like this should be illegal.

comment 4y ago · link · parent

I would assume that in most countries rehabilitation is seen the same way as here in the US. It focuses on the top causes for crimes - lack of education, lack of opportunity. So there are rehabilitation programs that educate people and help place them in work programs.

I would assume that rehabilitation does not focus on changing people's ideological values.

Am I wrong? Is that a thing in other countries?

comment 4y ago · link · parent

How could a prison system ever really do that? It's a punishment. You learn that what you did before has consequences, not that it was wrong.

Rehabilitating someone with "radical" ideas would involve acknowledging and challenging their ideas. That's not how rehabilitation really works even in theory - most rehabilitation is taking criminals who aren't ideologically motivated and solving the much simpler problems of educating them so that they can work.

comment 4y ago · link · parent

If your threat model is the police, a wrench could be a best case scenario for you. If you can prove the police took a wrench to you during an interrogation you're definitely getting the case thrown out.

comment 4y ago · link · parent

A process can not dump the memory of another process if those processes are executing under different users, or the process performing the dump is root.

On many OS's there are even more strict restrictions, where within a user a process can only dump the memory of processes that are its direct descendants.

comment 4y ago · link · parent

Your ~/.ssh/ private key is not readable by normal users since it's encrypted, so that isn't going to work.

The main security benefit is here:

> 1Password will ask for your consent before an SSH client can use your SSH key. Because of this, there's no concept of adding or removing keys like with the OpenSSH agent.

This prevents SSH agent hijacking, requiring either a social engineering attack to bypass or a privesc.

comment 4y ago · link · parent

Who says your best practices are well tested?

comment 4y ago · link · parent

That's basically why Google wants to get rid of urls. They're terrible at conveying trust.

comment 4y ago · link · parent

I don't think you do anything tbh. It's not really like those other situations where there's a straightforward, static answer.

The problem is honestly just that unicode is used to convey things like "this is a PDF" or "this is going to execute code" and it's attacker controlled. It's a terrible UX that's been abused for as long as paths have existed.

So I guess hope that operating systems will find a better UX for "this executes" and that they'll stop "a process executed" from being a game over situation for users.

comment 4y ago · link · parent

Not being in the USA seems really important. For one thing, insurance is tied to employment in the US, so if you're taking time to work on a company that's a lot of money you're going to have to pay every month if you want healthcare.

comment 4y ago · link · parent

This sounds a lot more interesting than I was expecting. I assumed you just swapped to better network hardware. Will there be more info at some point?

comment 4y ago · link · parent

Is there an updated version of latency.txt? Would be interesting to compare against.

comment 4y ago · link · parent

That's true, Mozilla Corporation is a non profit, so there is no stock. Still, you could compensate based on company performance.

comment 4y ago · link · parent

> Here's a CEO job offer: take on a nearly impossible task, for a salary that is far below the market rate. If you fail (and you probably will!) it might damage your career and make it harder for you to find another job. If you succeed, you will get prestige, but you still won't get a lot of money.

Keeping in mind that "below market rate" is still "retirement within a few years at the Mozilla CEO's rate.

So even if your career were damaged, and it's easy to not have it damaged, you can retire after like 3 years. That's a fine insurance policy.

> If you succeed, you will get prestige, but you still won't get a lot of money.

Of course you'll get a lot of money.

1. You can give yourself a raise. If the Moz CEO had come in and we saw market share increasing do you think anyone would give a shit about increasing their pay? The issue is it's tanking and they laid off a ton of people at the same time they took a huge pay raise.

2. Executives are compensated with stock. Company does well, your stock goes up.

comment 4y ago · link · parent

That's soooo wrong. Projects like Servo were exactly the sort of things they should have been working on.

comment 4y ago · link · parent

Or they could cut costs now and start saving. 400m a year is such a fucking massive amount of money. You can hire thousands of engineers with that.

But like 10% of that goes to execs every year or something insane like that.

comment 4y ago · link · parent

Chrome went heavy on marketing. And their marketing was compelling. At a time when the web was really slow, Chrome advertised speed - remember those Chrome ads where they'd load web pages while something flew by the screen?

At a time when the web was dangerous, Chrome advertised security. Remember when Flash wasn't sandboxed? When Java executed automatically? When nothing had auto-updates?

Firefox caught up, but at best it's "as good". What's it really doing for me?

The answer is presumably privacy. And that's cool. But most people have a hard time understanding what "privacy" means. Further, you can say Chrome is weak on privacy, but it's hardly as bad as people make it out to be.

So basically Mozilla is, at best, equivalent to Chrome, but Chrome was way better for a long time. So it's got to convince people to come back, but its only selling point is really vague.

And then you have some other stuff like companies can manage Chrome via GSuite. So now your work computer is X% more likely to run Chrome. So now you have to choose to have a different experience at home and at work.

What would I do?

1. I'd refocus on the mission. Privacy is critical, security is critical. That would mean a number of things - how is it that Brave is the first browser to integrate TOR? Isn't that insane? TOR has been using Firefox by default forever, and no one thought "maybe we should just support this thing, and start heavily contributing to it" ?

2. I'd invest heavily in next-gen performance and security. Chrome has In-The-Wild zero days being exploited - that's an opportunity. The web is heavier than ever - that's an opportunity.

I'd focus heavily on that. I'd push benchmarks and I'd market those features heavily.

3. I would fire every executive who took a multi-million dollar bonus while firing tons of employees.

That's just day 1 stuff.

Going further I'd consider what it would look like to see Mozilla in the Enterprise. Integrations and management features built into the LTS releases are an obvious start.

comment 4y ago · link · parent

No one would care. We already have a 122 year old, no one's tossing their bible out over it. Conflicts in religious texts are common and always resolved one way or the other.

comment 4y ago · link · parent

Maybe - it depends on how much that bit is weighted.

comment 4y ago · link · parent

Advertisers, like all entities, are as free to do what they like as we allow them to be. They don't have to be a part of the conversation, we don't have to care about advertisers.

comment 4y ago · link · parent

Either way it works. It's just a feature. What the big issue was was that some browsers would enable it by default and some wouldn't, and then you'd have differences across versions, etc. So it became a more powerful feature.
1
596061
164