Better HN
topnewbestaskshowjobs
Log inSign up

cipherboy

700 karma · joined Sep 28, 2015 (11y ago) · 204 submissions

Head of OpenBao Development @ ControlPlane.

The BUSL-1.1 is not OSS.

My views are my own, not that of any past, present, or future employer.

https://cipherboy.com

https://github.com/cipherboy

alexander.m.scheel@gmail.com

Submissions

comment 6y ago · link · parent

> Debian is a volunteer project. It's not a commercial enterprise. Volunteers work on whatever they think is worth their time and whatever they think it benefits them and their users.

What you've described also applies to Fedora. Fedora is community run and non-commercial. The results of the latest FESCO vote shows that. It is very much a volunteer-run distribution.

Yes, many Red Hatters have a personal interest in Fedora, and many others have professional interests. But nobody (from the Fedora community leadership) is going around selling it... :-)

> It's a bit unsettling that people in the open source community need to work on this particular thing, but it's unfair to blame them for that.

I think OP's point, coming from Fedora, is that the package maintainer (of say, apache-httpd) would need to ship unit files for all init systems and support them. The latter is a large task when you never use said alternative init system, especially if a drive-by contributor gave you the initial script. (And yes, you're free to ask for help, post on mailing lists, &c. but fundamentally it'd still come down to you, as the maintainer, to fix it).

At any rate, that's likely how Fedora would behave.

Source: Red Hatter and Fedora contributor.

comment 7y ago · link · parent

Wouldn't the easier path be to rewrite the filesystem table to undo the deletions? You'd need to be very careful to only write necessary tools into memory, but since deleting files typically only changes the filesystem table and doesn't remove the contents of the sectors, you might be able to get enough of a working system to reinstall what is left. I'd reach for photorec since I'm lazy, but you'd need to bootstrap it with glibc and a few other dependencies. Not sure how you'd mount the ramdisk though... just hexdump, less, and dd would be minimally sufficient, though much, much harder.

comment 7y ago · link · parent

Ah TIL, it must be a new feature. Most of the mirrors I'm used to aren't truly mirrors but are "mirrors" that are synced manually/via bots and lack the little link. These are likely just regular repos.

[0]: https://github.com/nss-dev/nss [1]: https://github.com/videolan/vlc

comment 7y ago · link · parent

They allow PRs against forks too, which is a useful feature for working on something until you're ready to submit it.

But the answer is because GitHub doesn't distinguish what is and isn't a mirror (last I checked there was no mirror functionality like GitLab or Gitea). Plus, I don't think they let you disable PRs.

comment 7y ago · link · parent

They're a lot harder to find (especially for English) though.

Each word needs to be valid both forwards and backwards in a Sator, right? There's a number of 5x5 Sators, but no 6x6, 7x7s, or higher because the number of words which satisfy are much smaller.

There is probably a better SAT encoding but if you just want to play around: https://github.com/cipherboy/sat/blob/master/sator-square/sq...

It finds Sators and 6x6 and smaller word squares reasonably quickly, but larger takes a bit more work. :)

It does depend on your wordlist though (place words.txt in the directory with square.py).

cmsh from here: https://github.com/cipherboy/cmsh

comment 7y ago · link · parent

I don't think so. It has been a while since I've done PHP but that reads like an inclue-gone-missing (likely with MySQL connection configuration information) causing the database to fail rather than MySQL breaking the include.

comment 7y ago · link · parent

Make sure you're running an up-to-date kernel [0] because the version shipped didn't support the wifi card shipped in the 7th gen.

[0]: https://bugzilla.redhat.com/show_bug.cgi?id=1733369

comment 7y ago · link · parent

Pagure [0], Fedora's git forge, hosts code, issues, docs, and pull requests as four separate git repositories under the hood [1]. However, only project administrators can clone most of those repos.

[0]: https://pagure.io/pagure

[1]: https://docs.pagure.org/pagure/usage.html

comment 7y ago · link · parent

> Could an international, decentralized curve be constructed by standards bodies from several geopolitical adversaries such as US, China, Russia and Turkey all simultaneously issuing 1 point each to create a combined 4-point curve, so that no single standards body has opportunity to purposely make the result insecure?

The process would be a little more complicated than simply choosing 4 points, but yes you could do something close enough to this in theory.

In actual practice there's really only two sets of curves most people [0] implement, and just about everyone agrees to use:

- The NIST p curves

- Curve25519/Curve448 by Bernstein &c.

Which you use tends to fall on what side of the crypto divide you fall on:

- NIST p curves if you care about governmental compliance such as FIPS

- Bernstein &c's curves if you care about security and distrust NIST created curves.

I personally fall on the latter side but spend most of my time doing software for the former. :) A promised later revision to FIPS will standardize Bernstein &c's curves.

Almost nobody implements negotiating arbitrary curves. That's really unsafe.

So, as 'tptacek would say... just use Curve25519.

[0]: I'm talking about major software such as TLS, VPNs, SSH, Kerberos... etc.

comment 7y ago · link · parent

Yes, this is a separate issue. jackson-databind is a XML/JSON parser so I was presuming a web stack here and that your customer wouldn't necessarily know what your backend was. Which also means that it is up to you to secure it properly, which has its own risk.

I'd just point out that accepting any customer's policy as something you implicitly agree to support is inherently risky without an adequate contract between the relevant parties. Presumably, you've signed a contract with the customer, and if they have a no-CVE policy, there's SLAs that you can point to that say what is and isn't covered, and by what date. So it is just the price of doing business and both parties know that this'll impact the delivery of other features, bug fixes, &c. Otherwise, your business-people aren't doing a great job of covering the costs of doing business with said customer... :)

Without much better developer tooling, we'll always be trying to catch up with the people who find vulnerabilities. People aren't perfect. Tools aren't perfect either. But they can complement each other nicely and currently most projects err on the side of "too little" rather than "too much" tooling.

comment 7y ago · link · parent

The correct response is to audit how you use it, especially what other libraries you have on the classpath. Per another comment on this submission [0], its unlikely that you've satisfied all the requirements for exploiting these CVEs. If you don't satisfy those preconditions, there's not much benefit in upgrading.

Additionally, 2.10 deprecates the unsafe behavior and introduces a new, safer alternative. See the blog post for more information there. [1] That might be a valid reason to spend time upgrading.

Obviously, if you're actually affected, then yes, upgrading or backporting patches is a good idea.

[0]: https://news.ycombinator.com/item?id=21171746

[1]: https://medium.com/@cowtowncoder/on-jackson-cves-dont-panic-...

comment 7y ago · link · parent

jackson-databind is the name of the package on Fedora and on RHEL. We addressed this issue last week by updating to 2.10, though I think F30 and F31 updates still needs karma [0].

The other jackson packages are mostly Java package hierarchy that don't affect this CVE (jackson-core, jackson-bom, jackson-parent, and jackson-annotations -- but we've also updated all of these to 2.10 on F30+).

So:

    rpm -qa | grep jackson-databind

To the GGP:

As noted by other commenters just having the package isn't sufficient. You need a number of other libraries (most of which aren't shipped with Fedora, none of which are shipped on RHEL) on the classpath of the running JVM.

If you're not running any Java code, you're definitely not affected. If you're using any code distributed through the official channels, it is very unlikely that you're affected. You'll probably only be affected if you're using third-party projects. Which as always, are run at your own risk. :)

[0]: Source: co-maintainer of the package via the Fedora Stewardship SIG.

F30 Bodhi: https://bodhi.fedoraproject.org/updates/FEDORA-2019-b1715548... F31 Bodhi: https://bodhi.fedoraproject.org/updates/FEDORA-2019-cf87377f...

comment 7y ago · link · parent

Yes! Free if you're working on an open source project (check out Oregon State University's Open Source Lab's POWER offerings: VMs (+/- GPUs) and Jenkins integrations). That's what I use.

If you're working on something commercial, you might check out http://integricloud.com/ -- looks like they start at start at $250/mo for a dedicated system (with 16-cores). If you check out their billing rates, it sounds like you can get a single core/thread though for about ~10-20 a month: http://integricloud.com/content/base/managevms.html?viewrate...

(I've never used integricloud but someone commented on my comment mentioning OSUOSL from a week ago)

comment 7y ago · link · parent

Yeah, perhaps fully-auditable core would've been a better example. One that runs a full Linux stack for a mainstream distro.

I'm personally most interesting in profiling and tuning to my workload to run on FPGAs. But that's many years out. :)

comment 7y ago · link · parent

And think about what fully opening up POWER like this begins to enable!

IBM has poured a ton of money into having roughly the same ecosystem for POWER as x86: nearly every major Linux distribution ships ppc64le ports [0] (most at full parity to their x86 server release--including testing and building on the platform itself), there's several places to get access to it (even for free as I mentioned on a previous thread [1,2]), and several FPGAs, GPUs, and other accelerator cards work with it [3,4].

Going past x86 (and competing with RISC-V and others), there's a freely available softcore (as I mentioned elsewhere) [5]. And since IBM open sourced the latest ISA with a full, modern instruction set (AES, SHA, Vectors...) -- the community around a softore could eventually go and implement it [6]. And as Talos has shown, even most of the microcode is open source or at least publicly verifiable.

Once the community forms around it, what do you have? [7]

A starting point for all sorts of new projects. Someone else has done nearly all of the work to build something amazingly complex (from hardware gates to a working NodeJS/Go/$LANG stack): all you need to do is tailor this to what you need.

Want to optimize to your specific workload? Grab the softcore, pull out the portions you don't need, deploy/test on a FPGA, and run Linux over the top with a full suite of debugging tools already available.

Want to experiment with new instructions not currently available? Grab a softcore, implement your new instructions, add compiler support or assembly support, and iterate.

Want a low-power core for an IOT device? You could license ARM or you could build on a free POWER softcore.

Want tons of scalar cores for a massively parallel problem? Write it in C, compile to ppc64le, and deploy on many instances of the same softcore running on a FPGA.

None of this is possible with x86 or RISC-V today. If it is, the overhead, time, expertise, and cost makes it exclusive to only large companies and research institutions. IBM has done most of the work to commoditize this. Costs to fab will remain high but deploying on a FPGA would at least tell you if your approach is viable and something you could consider.

Yeah, Intel or AMD could eventually open source this much too. But they'd have to start having conversations with their lawyers... And then with all their partners... And then eventually they'd get to where POWER is today... :)

[0]: https://news.ycombinator.com/item?id=20752226

[1]: https://news.ycombinator.com/item?id=20749369

[2]: https://news.ycombinator.com/item?id=20751639

[3]: https://www.nextplatform.com/2017/12/15/nvlink-shines-power9...

[4]: https://www.servethehome.com/supermicro-p9dsu-c-based-ibm-po...

[5]: https://news.ycombinator.com/item?id=20826081

[6]: Yeah, there's admittedly a lot of work to go from "scalar softcore" to "100% ISA implementation". But if IBM does things correctly and tries to build a community, especially of academic researchers, around the softcore... It could go somewhere.

[7]: Ok, I guess this is an if... :)

comment 7y ago · link · parent

Hiding in the details of your comment and partially in reply to the parent...

You can't fab the same POWER9 that ships from IBM, but like you implied, someone could (eventually) fab a POWER9 CPU built on an open-source core.

The microwatt project [0] was demoed at the OpenPOWER Summit and is an open-source softcore. I'm very interested in watching to see what happens with this project and how much of the ISA they end up implementing. They've run a subset of micropython [1] on it and apparently gotten a few FPGAs working. The Summit talk [2] mentioned DRAM support and Linux support potentially being on the roadmap.

[0]: https://github.com/antonblanchard/microwatt

[1]: https://github.com/mikey/micropython/commits/powerpc

[2]: https://www.youtube.com/watch?v=nvMiSNWEmYM&t=1h13m20s

comment 7y ago · link · parent

Fedora [0], Red Hat [1], Ubuntu [2], and SUSE [3] all have their own ppc64le ports as well so there are lots of choices out there if anyone is interested.

Even Gentoo has one [4][5]!

[0]: https://alt.fedoraproject.org/alt/

[1]: https://access.redhat.com/documentation/en-us/red_hat_enterp...

[2]: https://ubuntu.com/download/server/power

[3]: https://www.suse.com/products/power/

[4]: https://wiki.gentoo.org/wiki/Handbook:PPC64

[5]: https://www.gentoo.org/downloads/

comment 7y ago · link · parent

I'd like to recommend the friendly people at Oregon State University Open Source Labs [0] who host POWER resources for open source projects. If you're looking to see what the ISA can do on P8 or P9 system, I'd definitely contact them and see if you can get a VM.

There's also a cool vector library [1] that bridges the gap between different versions of the ISA and different compiler versions.

[0]: https://osuosl.org/services/powerdev/ [1]: https://github.com/open-power-sdk/pveclib

comment 7y ago · link · parent

\o Happy to answer questions anyone has. I mostly wrote this to scratch my own itch.

200.

Show HN: High-Level Python Interface over Mate Soos's CryptoMiniSat(github.com ↗)

4 points · by cipherboy · 7y ago · 1 comment

comment 7y ago · link · parent

'jgrahamc posted a Perl implementation of Alan Turing's method which made HN a couple of times [0], [1]. This is much better than brute force. For something a little more accessible on mobile, I made this [2] at the time based on his Perl implementation.

[0]: https://blog.jgc.org/2015/05/the-effectiveness-of-turings-vi... [1]: https://hn.algolia.com/?query=The%20effectiveness%20of%20Tur... [2]: https://github.com/cipherboy/vCAT

comment 7y ago · link · parent

This is an issue with compression not TLS.

The threat model is this: the Mallory controls some number of bytes in a web page. Can she exfiltrate data about Alice's session (e.g., bank account number) by only knowing the size of the compressed payload and modifying her portion of the content?

For this purpose, TLS is a fixed-sized modification:

|TLS(m)| = |m| + k

for a constant k. So it doesn't meaningfully impact this attack: you can do it with just compression and no encryption.

Compression is useful when the cost of sending bytes exceeds the cost to decompress. If you start padding compression back to the original payload length, you no benefit to compressing in the first place. If instead you introduce a random amount of padding, this adds overhead both to decompression and in transfer, at a marginal benefit to security (the attacker needs more requests -- either to recover a larger portion of the secret's context, or to control for the random noise).

This is also a cryptopals exercise:

https://cryptopals.com/sets/7/challenges/51

comment 8y ago · link · parent

That something can be minimized to "a browser" when SPAKE+2FA support is finalized in Kerberos. Admittedly, only really useful for enterprise clients who already have krb5 deployed, but still it is something better than JS.

comment 8y ago · link · parent

I'll shamelessly plug this for Kerberos since SPAKE is a variant of PAKE...

Kerberos has a draft for adding SPAKE to Kerberos: https://tools.ietf.org/html/draft-ietf-kitten-krb-spake-prea...

This was implemented sometime around March in MIT Kerberos: https://github.com/krb5/krb5/pull/741

One of the interesting use cases would be to add 2FA support to the Kerberos protocol, but that support is still pending last I checked.

A second draft that is useful for SPAKE would be improved Channel Binding (CBs) support: https://tools.ietf.org/html/draft-ietf-kitten-channel-bound-...

CBs are still WIP upstream: https://github.com/krb5/krb5/pull/685

Channel bindings allow Kerberos to piggy back on top of an existing encrypted channel (e.g., TLS). When doing 2FA with SPAKE in a browser, this means that we can take advantage of the security guarantees of the TLS protocol by ensuring the value of the final handshake is the same. This is most helpful for SSO-type scenarios.

If anyone wants to comment on either RFC, I'm sure the Kitten WG would be happy to take feedback: https://tools.ietf.org/wg/kitten/

Disclosure: I work closely with several of these folks and worked on the CBs PR.

1234567