Is there any benefit of doing this on the client side? The message is sent through HTTPS anyway. If HTTPS was compromised, the javascript code signing the message, and the signing key, and everything related to handling the clear text message would be compromised too anyway. This is redundant with HTTPS, but also useless if HTTPS is MITM.
Contact form encrypts message with PGP before sending
11–20 of 37 posts
Re: Contact form encrypts message with PGP before sending
#12Is there any benefit of doing this on the client side? The message is sent through HTTPS anyway. If HTTPS was compromised, the javascript code signing the message, and the signing key, and everything related to handling the clear text message would be compromised too anyway. This is redundant with HTTPS, but also useless if HTTPS is MITM.
Furthermore, this helps against content disclosure if the server is compromised.
Re: Contact form encrypts message with PGP before sending
#13Is there any benefit of doing this on the client side? The message is sent through HTTPS anyway. If HTTPS was compromised, the javascript code signing the message, and the signing key, and everything related to handling the clear text message would be compromised too anyway. This is redundant with HTTPS, but also useless if HTTPS is MITM.
This can protect against malicious browser extensions recording POST/GET-transmitted data (toolbars!!!), as the content will be encrypted at that stage. Furthermore, this helps against content disclosure if the server is compromised.
> Furthermore, this helps against content disclosure if the server is compromised.
If the server is compromised, openpgp.js is compromised too.
Re: Contact form encrypts message with PGP before sending
#14Re: Contact form encrypts message with PGP before sending
#15I know, for a contact form this is very unlikely, but just from a security point of view, if I would write something like this, I would host js loaded by the page on my own server.
Re: Contact form encrypts message with PGP before sending
#16Earlier quoted context omitted.
This can protect against malicious browser extensions recording POST/GET-transmitted data (toolbars!!!), as the content will be encrypted at that stage. Furthermore, this helps against content disclosure if the server is compromised.
If your browser is untrusted, you are doomed. > Furthermore, this helps against content disclosure if the server is compromised. If the server is compromised, openpgp.js is compromised too.
A kind of perfect secrecy for messages.
Re: Contact form encrypts message with PGP before sending
#17I'm not sure what this adds over applying PGP on the server? The way to intercept the message with the server doing PGP would be to either MITM the connection or breach into the server to intercept before encryption. In both cases you could just as well modify the javascript served to the browser to defeat the PGP done in the browser as well.
but yeah the design is bypassable. thus not really safe. clients should do it natively i guess.
Re: Contact form encrypts message with PGP before sending
#18The page loads jquery from google cdn, so at least google could inject js in the page and read the message before it gets encrypted. I know, for a contact form this is very unlikely, but just from a security point of view, if I would write something like this, I would host js loaded by the page on my own server.
Re: Contact form encrypts message with PGP before sending
#19It must be suck to be Johannes right now... I wonder how many emails containing random gibberish he is receiving?
Re: Contact form encrypts message with PGP before sending
#20Earlier quoted context omitted.
If your browser is untrusted, you are doomed. > Furthermore, this helps against content disclosure if the server is compromised. If the server is compromised, openpgp.js is compromised too.
Presuming the private key for the messages is not on the server, then old messages will not be compromised. A kind of perfect secrecy for messages.