News for hackers. Stuff that matters.
Re:Signing .jars is not worth the effort by hasenpfote on Sunday July 26, 2020 @01:07PM (#23958449)
Mh i thought your answer is ridiculous. Why would someone enforce/use a pgp signature with public key servers without a proper challenge?

I know it from my visited 'network of trust' but apparently there is no real challenge involved in uploading your key.

Thats just really really shitty.

Re:Signing .jars is not worth the effort by the_pwner224 on Sunday July 26, 2020 @02:36PM (#23959110)
The keyserver is intentionally designed to be a write-only (no delete/edit) database where anyone can upload their keys. GPG's target market contains people living under highly oppressive governments, where getting a 'please verify your identity' email could get you killed/etc. Given this requirement, it must be possible for anyone to upload a key claiming they are [email protected].

Now it turns out having a globally accessible, unauthenticated, write-only database is a really stupid idea, and there was a piece submitted on HN within the past year about this. Similarly at some point as a demonstration someone uploaded ~50 GPG keys for Linus Torvalds (or something like that) as another demonstration of this.

The reason this is OK is that you have out-of-band verification. When I upload my key for [email protected], I will also put a page on example.com saying that my public key has fingerprint XXXXX. This is the exact same thing that happens with SSH; the first time you connect to another computer it shows you the key fingerprint and asks you whether it is as expected, as discussed in another top level comment here.

So if you want to verify a signature on a file I sent you and you find 50 public keys on the keyserver claiming to be me, you can still very easily figure out which key is mine by looking at the keys' fingerprints. Or instead of publishing it on the WWW I can tell you the fingerprint with another more private/secure method, such as a piece of paper at a dead drop. Or the network of trust can be used: you already have Alice's public key on your computer, and she can sign my key on the keyserver. So when you find 50 keys on the keyserver claiming to be for [email protected], you know the one signed by Alice is the real one.

Re:Signing .jars is not worth the effort by quotemstr on Sunday July 26, 2020 @02:41PM (#23959143)
The word you're looking for isn't "write-only". It's "immutable". And it's not the immutability that's responsible for the attack you're discussing, but the lack of a rooted chain of trust. You seem to be imagining a world in which the keyserver is responsible for authenticating the keys uploaded to it. I don't want to give the keyserver people that kind of power or responsibility.
Re:Signing .jars is not worth the effort by renewiltord on Sunday July 26, 2020 @02:49PM (#23959207)
Interesting: I wouldn't describe an "append-only" database as "immutable" (after all, you are mutating it by adding things to it) but it appears that the common parlance actually does refer to databases that are append-only as immutable, perhaps as short hand for immutable-entry databases.

Annoys me disproportionately. But the people have spoken.

Re:Signing .jars is not worth the effort by smabie on Sunday July 26, 2020 @08:33PM (#23961254)
Yeah, it's like not you would call an in-memory B-tree immutable if you could only add more nodes but not change existing ones. Clearly other people are wrong and we should stand up for what is right!
Re:Signing .jars is not worth the effort by barrkel on Sunday July 26, 2020 @02:55PM (#23959262)
It's readable and appendable, but not updatable. That doesn't mean immutable; with versions or timestamps, you can create mutable semantics on top of an appendable store.
Re:Signing .jars is not worth the effort by vbezhenar on Sunday July 26, 2020 @06:06PM (#23960549)
The best verification would be recorded video of a person with sheet of paper with printed hash, pronouncing this hash. Of course this video is supposed to be served by https. So if you have any idea about that person (e.g. you saw him at conference), you can confirm its identity.

It might be possible to edit video to change picture, to fake audio. But that's as much as one could do without personal contact.

Re:Signing .jars is not worth the effort by hasenpfote on Saturday August 01, 2020 @05:52AM (#24019188)
My specific point was made in context of maven central repository.

It gives a false sense of security when you have to have a signed pgp key but no challange for trust.