Better HN
topnewbestaskshowjobs
Log inSign up

CiPHPerCoder

6,663 karma · joined Feb 25, 2016 (10y ago) · 1,775 submissions

My name is Scott. I do a lot of open source security research, and cryptography.

Previously AWS Cryptography (2019 - 2023).

Unless otherwise stated, my opinions are my own and do not reflect my employer.

https://scottarc.blog/about/

Submissions

comment 6y ago · link · parent

No, what I meant is: Run this command. It can run for as long as you want it to. That's a long-running process, by definition.

If they wanted something more specific, they should ask for what they really want.

comment 6y ago · link · parent

They said "I have no clue how to X" so I told them how to X, with caveats for corner cases.

I wasn't trying to debunk a claim that something is impossible.

comment 6y ago · link · parent

> There's no real solid support for async/await in PHP, not even in the form Python has for quite a while now.

I'll second this. Async/await support in PHP is at best an ugly hack.

I don't know if we'll ever get first-class async/await support since there is no event loop in the PHP runtime, and because of how PHP works (build and teardown on each HTTP request).

> And for me, it might be the biggest problem it has right now, which seriously hurts in some applications.

What problem are you trying to solve where a lack of async/await would help?

comment 6y ago · link · parent

A lot of people hate PHP because they don't think it's possible to write secure PHP code.

Sometimes companies enshrine this ignorance as official policy, and their knowledge of PHP security is as shallow as "php.ini hardening".

When anyone encounters such ignorance, point them here: https://paragonie.com/blog/2017/12/2018-guide-building-secur...

Or for more general code quality complaints: https://phptherightway.com

I'm looking forward to PHP 8, and beyond. Mentalities that were only relevant in PHP 5.1 (or earlier) are outmoded and should be laid to rest.

comment 6y ago · link · parent

> If you want to use packages then you'll need to use a Package manager, you still need command line experience etc.

PHP has a package manager IF you want to use the vast offering of open source PHP libraries and frameworks.

https://getcomposer.org/download

To use it, create a composer.json and run:

  php composer.phar install
On my systems, I like to alias it so that I just have to type:

  composer install
Alternatively, if you use a Jetbrains IDE (i.e. PHPStorm), you can usually install dependencies with one click.

> And to be fair, as a naive non-PHP user, I have 0 clue how you would go about setting up long running scripts that don't necessarily correlate to a web request.

php /path/to/script.php

It can run as long as you'd like.

If you want to do it on demand (i.e. writing a webserver in PHP), that's difficult. But generally: Why would you want to do that? It becomes an X-Y Problem.

comment 6y ago · link · parent

We live with a hellish duopoly. If I'm not buying Apple, what other option is there?

Attempting to pantomime surprise is dickish and unncessary for HN.

comment 6y ago · link · parent

My reasoning in this entire thread has been:

1. This isn't news about Apple's encryption, it's just that the status quo is here to stay. Your Apple device is as secure/private as it has been, and will probably not get any better. It's disappointing, but not really much of a revelation to anyone who's been paying attention since 2012 (or earlier).

2. The way the headline is phrased vindicates an orthogonal personal decision I made to not purchase hardware or software from Apple.

Given your most recent comment, at some point, you must have assumed a lot of things that a) aren't true and b) I never stated or implied.

comment 6y ago · link · parent

> We can talk all day about how we got to this status quo and what can or can't be done about it, but the reality is that if you want to live a real, modern, urban life in 2020, so many people and organizations just assume you to have a fully-functional smartphone that you will be actively hampered without one.

And for that, you can also get a stock Android phone like 80% of the world and still not be an Apple consumer. :)

comment 6y ago · link · parent

Please define your terms.

Why do I have to use a phone in its place? Apple products aren't a basic human necessity. I like to think I can just use a phone for the sake of wanting a phone, not to replace the void that not being an Apple consumer leaves in my soul, or something.

What exactly do you mean by "basic aspects of modern life"?

I have a desktop PC, a laptop, a work laptop, a LineageOS (Android-based) phone, and a VR headset for gaming. Anything I want out of modern tech, I either already have or doesn't exist yet.

comment 6y ago · link · parent

"Surely not Android...do you live without a smartphone (serious question, not judging)?"

That's a very judgmental way to ask that question if you're trying to not be judging.

My phone hardware would fall under the Android classification, but I run LineageOS.

I wish I had more options, but we're stuck in a hellish duopoly for the time being.

comment 6y ago · link · parent

End-to-end backup encryption is hard. Apple had faced criticism from cryptographers for failing to implement it.

https://blog.cryptographyengineering.com/2012/04/05/icloud-w...

The fact that they started working on the problem then abandoned it after the FBI complained is disappointing, especially to Apple consumers. But all it means is the status quo marches on.

Headlines like this vindicate my decision to never purchase an Apple product.

comment 6y ago · link · parent

The owner/operator of the router could do that to their own device, yes.

The idea is that each router would get a certificate signed with a distinct subdomain unique to that router. So you still can't impersonate other devices. It wouldn't be a generic domain or wildcard certificate.

The remote signer would furthermore suspend suspicious connections (i.e. from multiple public IP addresses).

comment 6y ago · link · parent

People who do this kind of work for purely selfless reasons and don't end up starving or homeless are probably very privileged.

comment 6y ago · link · parent

What do you mean "without providing any kind of meaningful security benefit"?

It prevents a bored kid who dumps the private key from one router from being able to reliably impersonate thousands of consumers' routers, the world over.

That's a meaningful security benefit.

comment 6y ago · link · parent

'ryanlol is suggesting that if companies view "full disclosure" as a problem, the solution is (in my words) bribery.

I don't think "benefiting the end users" is even present in that equation.

comment 6y ago · link · parent

Some commenters are decrying that this post fails to meet the bar for "responsible disclosure".

Please stop using that phrase. "Responsible disclosure". It's wrong and harmful, and the person who coined it agrees with me: https://adamcaudill.com/2015/11/19/responsible-disclosure-is...

You want "coordinated disclosure" instead.

Netgear doesn't do coordinated disclosure. They do non-disclosure. In the absence of a coordinated effort, full disclosure is the responsible thing to do.

comment 6y ago · link · parent

No, you can do something like CloudFlare does for TLS for their enterprise customers, where the TLS session is signed by a key held by Netgear.

https://www.cloudflare.com/ssl/keyless-ssl

The fallback would have to be self-signed TLS with random keys for initial local router configuration, which is hopefully done over an Ethernet connection rather than WiFi.

You don't need a secure enclave or HSM to solve this problem. It just requires caring about security and provisioning enough time to engineer and test the obvious solution. From what I can tell, that doesn't line up with Netgear's MO.

comment 6y ago · link · parent

Of the remaining 5%, most of it's P-384.

comment 6y ago · link · parent

Chrome already added countermeasures, if it was updated:

https://chromium-review.googlesource.com/c/chromium/src/+/19...

comment 6y ago · link · parent

It affects IE and Edge on Windows 10.

It should also affect Chrome on Windows 10 if you haven't updated either your browser or your OS.

It won't affect Firefox on either platform.

comment 6y ago · link · parent

Bypassing CT on Chrome in this context should be trivial: https://cs.chromium.org/chromium/src/components/certificate_...

Set your notBefore to a date earlier than 2018-05-01 and you're golden.

comment 6y ago · link · parent

I would expect the signatures to start failing after you update and restart.

comment 6y ago · link · parent

We're branding this Chain of Fools now?

My vote was for, "Whose Curve is it Anyway? Where the points don't matter and the generators are made up." or WhoseCurve for short.

comment 6y ago · link · parent

Neither does BB'98

comment 6y ago · link · parent

Page isn't loading, but it was archived.

https://archive.md/tykYn

comment 6y ago · link · parent

Prediction: whatever this is will end up in pen-test reports for many years to come.

Even if it's not a worthy successor to MS08-067.

comment 6y ago · link · parent

I had already covered that with the sentence that followed the one you quote-replied to.

To explain: I said it doesn't work with people who are X. Then I posited that it only works in condition Y. Y covers all cases, including non-X, and therefore answers your question (with respect to what I'd posit).

If your mental model of humanity is deeply flawed, you expect carrot-and-stick motivations to work. It doesn't matter if they're self-actualized.

If anyone is still confused, this might be worth a read: https://www.amazon.com/Drive-Surprising-Truth-About-Motivate...

comment 6y ago · link · parent

I'm not speaking from a position of ideology. I'm describing the world based on a scientific understanding of human motivation.

Sorry if that's incomplete.

comment 6y ago · link · parent

Here's my take on that: A marginal amount of gatekeeping is necessary for any group to maintain its group identity. The toxicity comes from the overdose, not the act itself.

A lot of "nerds" have personal insecurities and downtime. The potent mix of the two leads to more gatekeeping behavior than is necessary.

It's for this reason that many people (especially women, PoC, etc.) will be hostilely quizzed when they express an interest in something nerdy. It's not overt racism/sexism, so much as a "oh no, if they share my interests, I'm less special" sort of reaction.

Unfortunately, nerdiness doesn't strongly correlate with emotional maturity.

But things don't have to be this way. We all have the choice of what kind of person we want to be. Some people just choose very poorly-- short-sighted selfishness that hurts them long-term and everyone else at all times.

There are a lot of "nerdy" individuals who choose better. I'm happy to know of at least 100 in my industry.

comment 6y ago · link · parent

As someone who has done quite a bit of patentable work in the past 10 years, I would applaud abolishing patents.

Cryptography patents makes us all less secure, because nobody uses patented cryptography. It's a net-negative in my industry.

1
91011
60