raed667 / GPG-2FA-WordPress

GPG 2FA for WordPress users
1 stars 0 forks source link

PGP Decryption failed #3

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi guys,

I'm aware that this plugin hasn't been updated and there's an Issue open at Two-Factor to implent this. Any chance it could be updated? Everything seems to work perfectly fine, setting the PGP and all. When I logoout and try to re-login, the PGP message that shows is not decryptable. Probably just compability issues?

Thanks a lot!

Nemo

raed667 commented 7 years ago

I haven't worked with WordPress or even PHP for a while.

Indeed, I have proposed to add this to the plugin, but due to lack of time and interest I haven't been able to.

Can you check this PoC (not wordpress) and tell me if the message you get is decryptable ? https://github.com/RaedsLab/gpg2factor

The basic idea is very simple if you have some knowledge with WordPress I can guide you through maintaing it.

ghost commented 7 years ago

Hi!

Fair enough. If it'd encourage you, I'm willing to pay if you can get this working.

I just checked your PoC, and I'm getting the exact same error. It's not possible to decrypt the outcome message. "Decrypt failed! Code = 0". Since my key is "newer" than when you last worked on the plugin, it might have a different format (or something) that causes troubles?

Cheers, thanks a lot!

raed667 commented 7 years ago

Are you using the decryption like this ?

1- Create a text file "test.enc" and paste the encrypted message in it.

2- Using a terminal :

$ gpg2 -d test.enc > output.dec  2>/dev/null | more

This will create an "output.dec" file and print the content in your terminal.


If this does not work, can you send me your public key, or a similarly generated key ?

ghost commented 7 years ago

Hi!

Yes this works for sure! No problems at all.

Just created a new key:

Keyphrase: Te$tKey123

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBFn9t1QBEADOSYCwtYHLQoKshjSADcfpIhDzQVf7tmQokz42lDqNhOgFQi4g 0r+BafSm4FSPgYS7qGq3R0XHdglR09eC5+tDjvAYzAV/Uvc+1CGykt5IRZsz9mdw Ll3mOnNIP/KNlk93aQ4ysFj1ZVlMGSXF2k+GtJRBznhv8i3Or+NBtJ0nxJG7T2X7 VogwqgOdBJOry+mwh15SibWZ6tHZ5Nl/BUwetMqFxuXrICf7yJmLiDfQfLqfob/X gwAJG64EhOvcVmPtLIHLTju7jBHuf5A00M3RSBx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yWk62xiYtTND 26EAeP7eb5/dYNBxLwkGC1JOgQGJAjwEGAEKACYWIQQZBAvWDxzRE6n3LfXvek0Y C9xRkQUCWf23VAIbDAUJB4YfgAAKCRDvek0YC9xRkfLBD/0ZMxCJUgYLs4Z2345H LlUiNgMRNANLQ+qVMXVTmYP76LZcBLCcZgHqfsFhiDjAGLeazSkrLRyYCd9LocWT MNTVgvntOFb1xC/F7plctMCKe4QtilRF/ILSFpgf/ZrMP/HVX1Vk9CjcjJnkuRRR L/k9hgwwcxJiDxYF6xQ7mk0F4GjFDgn30s/KKXFpCOZu0hoH3e9f4WzYEZqz7/uw PJ8ARz+ZbqyAigEzH2L7UrmsTy3dRSDBvVUE4PZtU8Yln6pbK/lzlTRioANUY/u6 zEp+O+Hh8Tp827CBbEsIqF0ImEXrJT/xqJh4V2N9IYc6AQVlAhLDtW7p6gt/RmNQ ROlXbprTRgJP4eYPakpuogUFxq5RWA3VJy9Uj6XEO4PepHtujZb7xYAs7oXujX7o Ye1PmSoXZmucpySR/GqbPIbRckDQXmbOduTYNs/1WC+M1970sacmcKNTfMAGqBTO pKoVW4R3DMYOHjJJxwGWr1ZubI5h2wZFu998+XUCn8NhB0hAo58eXbxvQ+JlfYcp KdTwaifwoowv5qeIwVf9m3XmuvvBSDh1FH7wHe2Tcv5JtWg0MJRV+EXV7xEk3ofw /QYfVHW6kKbNk65NwSG7IZ881L7NTnoNsaBHx+8b7fZ+6mIxh2/Cn3DfJYwTf77N rEIsJ3ooYt1BdF73spKwKrinnA== =OIL5 -----END PGP PRIVATE KEY BLOCK-----

raed667 commented 7 years ago

I have imported your key and it seems to work

echo "-----BEGIN PGP MESSAGE-----

hQIMA+tVISurLL2SAQ/+NBtJ1ws7Pm2dXMO4ntUJzZka/Yk+segbn27wY1tIuRom
shQOlNf1mpVMsUONteNpU2hEp1A79OgICggdPeUG6r6meu8eCIqsHLIP3hWzLLxs
oYbr3HBkO2QGjUeSIH/8HqoLWd8q0xIBWqpiW1BB/FWBw0B4sy431jDrSORCcjNx
0FxKRsMZmEd+orNwDZMHFwJLpJkbl9ZQMKkwVXsTimxeQRcGWfgsmozVWy7iV0uk
pfM/5ceBsMnLFnohOAfh95SIED10OALWjjnXrNN2P4IXxWwXxh4n7V9eEJsy4+GG
sztKKYwNtPrE7F3RinesboV4RSTn8cowo3OYJY3EAXTMmiPGCBRbheIdMgBtY0tY
ZFvX2H2kKUHdSIdxh5hgiAkAdzCLegN2GwUySE3MemyNq3pHW3zsOgVR9YV0ZRcV
km12/+l/AGRA9UGzgIyduW370Yx2BInQ5WXz9o49DoRhUvlSuk2DHlVazNfI0xGw
liXoSgX/E5NvTy+3XMiF3UVJy9aHjEyZ8I1mbc9Uh8+84g9VJ0c1AL9nU/NbAwBj
+twtaioGRmtqKGcc23l5wG83UPYPPGUO9KjJPFJWXfdAWCy3edJgYOtzOlRGDoHO
iRLU8WNOYEJpMk+Bg4rJAvoTVgOYGYYvg+0gsIItwNaQNMnyMp2eK7Qpyz0/h/mk
LsiT7QV1/4zhIyNoQmN9b6sU9KL5HuGDRYSG4ahKyCdu18NZKpAcdCSU1P904no=
=Dd5a
-----END PGP MESSAGE-----" | gpg2 -d 2>/dev/null > testkey.out.dec

then just check the content of the file "testkey.out.dec" it should have "1KPqPuC72DCnLdU7"

The encrypted message was generated by https://raed.it/gpg2fa/

ghost commented 7 years ago

Hi!

Thanks for your reply and time. It's odd. Over gpg2 I can decrypt it, but over GPG Suite not. So for now I assume it's their fault. I'll recheck the Plugin later, might as well just work after all.

Cheers, I'll let you know in the coming hours!!

raed667 commented 7 years ago

I can't comment on GPG Suite as I have never used it, let me know if the WordPress version works with CLI gpg2.

ghost commented 7 years ago

Hi!

It works now! Seems like GPG Suite is broken in some way. My email traffic goes fine, but this won't. Strange..

Thanks anyways for your time!!

Cheers,

raed667 commented 7 years ago

@ominemo Great !

I'm glad that you like the project. If you can contribute in any way possible. Dev ,GUI, Core, integration, documentation, whatever .. that would be awesome

ghost commented 7 years ago

Hi!

I wish I could build anything, but there I'll have to dissapoint. All I have is practical experience and usage on daily base. It'd be awesome if the Two Factor guys could implement this so you can use it next to their current methods, that'd be great.

Other than that it's small feedback till now. For example, the key generated now consists letters, numbers and signs. Often with current systems you see longer keys, consisting only letters and numbers.

Cheers,

ghost commented 7 years ago

Hi!

Okay, I think I've found the problem. The error it gives was also on gpg2 but I didn't notice. Just now, trying to login through Qubes, I got the following error. It's due to an older encrypting that the plugin uses vs the new keys. Any chance you'd know a way to update this?

Cheers!

image21

raed667 commented 7 years ago

The warning is about message integrity.. As I only encrypted and not signed the message.. It is perfectly normal

ghost commented 7 years ago

Hmm fair enough, but that's what causes the troubles with GPG tools / QUBES / TAILS installs. Would you think this would be hard to add? Again, no problem to pay.

Cheers,

raed667 commented 7 years ago

The current GPG lib used only supports encryption. Adding signature will mean either implementing it or finding another lib.

ghost commented 7 years ago

Yes, thought so too. But since the current GPG lib is not being updated anymore, the current lib can't be used anymore, right?

This is what I found; http://github.com/bendiken/openpgp-php

raed667 commented 7 years ago

This has been proposed before : https://github.com/RaedsLab/gpg2factor/issues/1

Let me check

ghost commented 7 years ago

Hmm I see. Would it be hard to build in? I've tried to work my way through, but no idea how to make the new lib "talk" to this plugin haha

raed667 commented 7 years ago

Shouldn't be too hard, most work is around here : https://github.com/RaedsLab/GPG-2FA-WordPress/blob/75a0b74eef89018d52a9d35ef29901f6916e3aa7/providers/class.two-factor-gpg.php#L229

ghost commented 7 years ago

Hmm interesting, I can defenitely read that, but no idea how to implent it haha.