From 1814a76498c25e8a791a70317dbe9d6e56912865 Mon Sep 17 00:00:00 2001 From: Kenny Date: Fri, 22 Jun 2018 09:18:18 +0200 Subject: [PATCH] decryption of non-MDC-protected messages is now prevented for older versions of GnuPG that set the return code to 0 --- CHANGELOG.md | 5 +++++ README.md | 6 +++--- index.php | 4 ++-- libs/shared-secrets.def.php | 3 +++ libs/shared-secrets.exec.php | 10 +++++++--- 5 files changed, 20 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4145467..38dd4cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 0.12b0 (2018-06-22) + +* decryption of non-MDC-protected messages is now prevented for older versions of GnuPG that set the return code to 0 +* force GnuPG to produce English output as we have to check it against a predefined string + # 0.11b0 (2017-08-10) * version bump for legacy-less publication on github diff --git a/README.md b/README.md index b5b8192..03a156d 100644 --- a/README.md +++ b/README.md @@ -68,13 +68,13 @@ server { Furthermore the following HTTP headers have to be set (Nginx example): ``` -add_header Content-Security-Policy "default-src 'self'; form-action 'self'; frame-ancestors 'self'; require-sri-for script style"; +add_header Content-Security-Policy "base-uri 'self'; default-src 'self'; form-action 'self'; frame-ancestors 'self'; require-sri-for script style"; add_header Referrer-Policy "same-origin"; add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"; -add_header X-Content-Security-Policy "default-src 'self'; form-action 'self'; frame-ancestors 'self'; require-sri-for script style"; +add_header X-Content-Security-Policy "base-uri 'self'; default-src 'self'; form-action 'self'; frame-ancestors 'self'; require-sri-for script style"; add_header X-Content-Type-Options "nosniff"; add_header X-Frame-Options "SAMEORIGIN"; -add_header X-Webkit-CSP "default-src 'self'; form-action 'self'; frame-ancestors 'self'; require-sri-for script style"; +add_header X-Webkit-CSP "base-uri 'self'; default-src 'self'; form-action 'self'; frame-ancestors 'self'; require-sri-for script style"; add_header X-XSS-Protection "1; mode=block"; ``` diff --git a/index.php b/index.php index 6a72324..b054efc 100644 --- a/index.php +++ b/index.php @@ -1,8 +1,8 @@