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 10y ago · link · parent

That data is already sent to the server. This doesn't give the server control over the user's hardware.

comment 10y ago · link · parent

Yes, and they'd be burning image library 0days in the process. Security would improve overall.

comment 10y ago · link · parent

Same, and in a few cases I didn't realize they were ads because they were so non-intrusive.

comment 10y ago · link · parent

In this case, high-profit ads include dynamic content (JavaScript or Flash). Safe (but boring) ads would simply be an image or text link with no tracking capabilities that doesn't use CSS hacks to interrupt your page reading. It just sits up there saying, "If you want it, check this out."

1595.

Keyggdrasil, Continuum, and the Cryptography Powering CMS Airship(paragonie.com ↗)

2 points · by CiPHPerCoder · 10y ago · discuss

comment 10y ago · link · parent

If my request to participate in the parameter generation is granted, I'm going to use TAILS with no persistence to generate then manually copy the base64-encoded public key over to my other computer, then I'm terminating the other machine.

comment 10y ago · link · parent

> certainly less security than I would expect for a cryptocurrency

The good news here is that a Zcash team member found this weakness in the Zcash protocol and it's being fixed before it ships.

Kudos to the Zcash team for employing aggressive internal security auditing.

comment 10y ago · link · parent

I use quotes differently than journalists. I use them to indicate "this is a separate sentence that expresses an idea mid-sentence" and to indicate tone shift, not as a quote for a specific person. I use a > prefix for direct quotes.

That exact string isn't from the Github issue, it's a summary of one argument dismissing some of the OpenSSL RNG's worst issues.

Here are two direct quotes if that's what you want:

> forking is not an issue for node.js

> The bucket list of fork-safety issues that would have to be addressed is so long that I think it's safe to say that node.js will never be fork-safe.

There was also off-ticket discussion on IRC where similar arguments were made.

comment 10y ago · link · parent

That's explained in painstaking detail in the Github issue I linked to.

comment 10y ago · link · parent

A multi-threaded JavaScript also means this becomes more troubling:

https://github.com/nodejs/node/issues/5798

Node.js uses OpenSSL instead of the operating system's CSPRNG. The biggest argument for "WONTFIX" is "Node.js is single-threaded so OpenSSL fork-unsafety isn't a concern for us".

If JavaScript becomes multi-threaded, it's not unreasonable to expect Node.js to follow. If it does follow, expect random numbers to repeat because of OpenSSL's broken RNG.

comment 10y ago · link · parent

http://viewdns.info/iphistory/?domain=paragonie.com

Nope.

comment 10y ago · link · parent

Can I be the first to call it .NETBSD?

comment 10y ago · link · parent

> Of course, the trial may reveal Jace's innocence

If it even comes to a trial.

comment 10y ago · link · parent

> Stop blaming just the carriers.

Why? They're the ones that wouldn't agree to the terms that would have prevented an unnecessary bottleneck.

comment 10y ago · link · parent

You know your language is bad when PHP -- possibly the most hated web scripting language on the planet -- does it better.

Come on Ruby, get your act together. You can do better, right?

Also, https://github.com/openssl/openssl/issues/898

comment 10y ago · link · parent

> You can generally respond even if you don't have the link by clicking on the timestamp ("1 hour ago" or whatever) to go directly to my comment.

https://twitter.com/CiPHPerCoder/status/727530489255485440

comment 10y ago · link · parent

What about https://github.com/jedisct1/libsodium then?

Very high profile, no CVEs found to date.

EDIT: Can't respond to lambda below.

I was responding to THIS assertion, not proposing libsodium as a general purpose openssl replacement: "nobody can write secure C."

To which I said, here's a project that's written in C that's apparently secure.

comment 10y ago · link · parent

There are numerous RFCs, yes.

comment 10y ago · link · parent

That's nice, but irrelevant. The quote I was replying to said, "These are all errors that would be impossible in a language with, oh, bounds checking."

Them: All X is Y.

Me: But here's an X that isn't Y.

That's my point. Blanket statements about the superiority/inferiority of programming languages aren't useful here.

comment 10y ago · link · parent

> These are all errors that would be impossible in a language with, oh, bounds checking.

How would that prevent the timing leak that caused Lucky 13 or the padding oracle that resulted from not erroring when the message was too short?

The problem with CVE-2016-2107 (and the vulns that precede it) stems from TLS not using Encrypt-Then-MAC (checking the MAC before checking the padding is less error-prone than checking the padding before the MAC). You can design a cryptographically doomed protocol in any language, even memory-safe ones.

Here's one in Haskell: https://github.com/RNCryptor/rncryptor-hs/issues/2#issuecomm...

Further reading on the Cryptographic Doom Principle: https://moxie.org/blog/the-cryptographic-doom-principle/

comment 10y ago · link · parent

    But it no longer
    checked that there was enough data to have both the MAC and padding
    bytes.
... I am beyond words.

comment 10y ago · link · parent

SEEKING WORK: Application Security, Cryptography, Web Development

REMOTE Only - (Located in Orlando, FL)

What do WordPress, Joomla, Symfony, CodeIgniter, the Facebook SDK, CakePHP, Yii Framework, several implementations of RNCryptor in various programming languages, and Zend Framework's Cryptography Library all have in common? They've all benefited from my open source security research.

Whether you're a startup looking to eliminate unnecessary risk while you focus on growth or a large business that needs to protect your assets, I can help.

A brief sample of software I've written:

* https://github.com/paragonie/halite - Halite: A PHP libsodium wrapper that emphasizes ease-of-use, secure defaults, and type-safety.

* https://github.com/paragonie/random_compat Random_compat: Use the new PHP 7 CSPRNG functions in PHP 5 projects.

* https://github.com/paragonie/constant_time_encoding - Constant-Time Encoding: A full implementation of RFC 4648 encoding/decoding functions that can be used to encode encryption keys for storage without leaking key material through cache-timing side-channels.

* https://github.com/paragonie/csp-builder - CSP Builder: Build a Content-Security-Policy header for your website.

Example config: https://github.com/paragonie/airship/blob/master/src/config/...

Live demo: https://securityheaders.io/?q=https%3A%2F%2Fcspr.ng%2F

* https://github.com/paragonie/airship - CMS Airship (beta software): A secure-by-default content management system and development framework that emphasizes secure package management and attempts to solve the Triangle of Secure Code Delivery: https://defuse.ca/triangle-of-secure-code-delivery.htm

Other Technologies:

* Excellent: PHP, Java, C#, Shell scripting

* Experienced: HTML5/CSS3/JS, Node.js, C, C++, Python (with Django), Webserver configuration (Apache/nginx)

* Currently learning: Ruby [on Rails]

Feel free to contact me at security@paragonie.com if you're interested in working together.

comment 10y ago · link · parent

That would require a backdoor that didn't exist at the time and that WhatsApp doesn't want to create.

comment 10y ago · link · parent

No hard feelings. :)

comment 10y ago · link · parent

> I'd say the SpiderOak people are not crazy for not having accepted it.

They didn't simply not accept it.

They tossed one bit of feedback my way, which I addressed in a follow-up commit, and then they neglected to do anything further. No discussion, no rejection, etc.

If they wanted to reject it because of complexity concerns, I would have been fine with that. At least it would have been some sort of closure, and I wouldn't feel like the person I replied to originally about this project being inactive. If it turns out that they're actually still planning to develop it further, I'm happy to be proven wrong about that.

Today, 'dchest wrote a superseding PR that solves the problem while maintaining a very small code diff, and I'd prefer his solution over my own. (I have no ego about my JavaScript coding skills. There are tens of millions of people who can do it better than me.)

comment 10y ago · link · parent

Considering they had earlier tickets opened by their own team to fix it and hadn't, I'm calling "oversight".

https://github.com/SpiderOak/Encryptr/issues/49

That being said, I do agree with your analysis that the impact of this isn't a problem for users.

comment 10y ago · link · parent

The "non-problem" of a biased PRNG is that you get reduced entropy in your generated passwords, thus reducing security.

The "flaw" in the pull request was fixed in a later commit (by switching to Uint8Array instead of Uint32Array), and then it was ignored by the SpiderOak team.

comment 10y ago · link · parent

I lean towards "No".

For example, this was never merged: https://github.com/SpiderOak/Encryptr/pull/180

I eventually closed it because I keep an eye on https://github.com/pulls and it was unnecessary clutter.

comment 10y ago · link · parent

I wonder if we can get some of their investors in on board for @TheDailyMarkov?

comment 10y ago · link · parent

Start over from zero: We have these civil rights and no one, not even the government, may not impede on them. And then criminalize things that make sense to criminalize.

Odds are, in a few hundred years, we'll end up right back where we started.

1
535455
60