]> git.ipfire.org Git - thirdparty/strongswan.git/log
thirdparty/strongswan.git
5 years agoVersion bump to 5.7.2dr3 5.7.2dr3
Andreas Steffen [Mon, 12 Nov 2018 15:24:53 +0000 (16:24 +0100)] 
Version bump to 5.7.2dr3

5 years agotesting: Added botan/net2net-pkcs12 scenario
Andreas Steffen [Mon, 12 Nov 2018 12:51:01 +0000 (13:51 +0100)] 
testing: Added botan/net2net-pkcs12 scenario

5 years agotesting: Migrated openssl-ikev2/net2net-pkcs12 scenario to swanctl
Andreas Steffen [Mon, 12 Nov 2018 12:46:16 +0000 (13:46 +0100)] 
testing: Migrated openssl-ikev2/net2net-pkcs12 scenario to swanctl

5 years agotesting: Removed openssl-ikev2/rw-eap-tls-only scenario
Andreas Steffen [Mon, 12 Nov 2018 11:41:11 +0000 (12:41 +0100)] 
testing: Removed openssl-ikev2/rw-eap-tls-only scenario

5 years agotesting: Removed openssl-ikev2/net2net-pgp-v3 scenario
Andreas Steffen [Mon, 12 Nov 2018 11:35:37 +0000 (12:35 +0100)] 
testing: Removed openssl-ikev2/net2net-pgp-v3 scenario

5 years agotesting: migrated openssl-ikev2/critical-extension to swanctl
Andreas Steffen [Mon, 12 Nov 2018 10:50:05 +0000 (11:50 +0100)] 
testing: migrated openssl-ikev2/critical-extension to swanctl

5 years agotesting: Migrated openssl/rw-cert scenario to swanctl
Andreas Steffen [Fri, 9 Nov 2018 20:45:12 +0000 (21:45 +0100)] 
testing: Migrated openssl/rw-cert scenario to swanctl

5 years agotesting: Migrated openssl-ikev2/ecdsa-pkcs8 scenario to swanctl
Andreas Steffen [Fri, 9 Nov 2018 15:38:33 +0000 (16:38 +0100)] 
testing: Migrated openssl-ikev2/ecdsa-pkcs8 scenario to swanctl

5 years agotesting: Migrated openssl brainpool scenarios to swanctl
Andreas Steffen [Fri, 9 Nov 2018 14:00:26 +0000 (15:00 +0100)] 
testing: Migrated openssl brainpool scenarios to swanctl

5 years agotesting: Migrated openssl alg-ecp-low scenarios to swanctl
Andreas Steffen [Fri, 9 Nov 2018 11:42:14 +0000 (12:42 +0100)] 
testing: Migrated openssl alg-ecp-low scenarios to swanctl

5 years agotesting: Migrated openssl alg-ecp-high scenarios
Andreas Steffen [Fri, 9 Nov 2018 10:52:59 +0000 (11:52 +0100)] 
testing: Migrated openssl alg-ecp-high scenarios

5 years agotesting: Migrated openssl alg-camellia scenarios to swanctl
Andreas Steffen [Fri, 9 Nov 2018 09:02:26 +0000 (10:02 +0100)] 
testing: Migrated openssl alg-camellia scenarios to swanctl

5 years agotesting: Removed openssl alg-aes-gcm and alg-blowfish scenarios
Andreas Steffen [Thu, 8 Nov 2018 20:28:19 +0000 (21:28 +0100)] 
testing: Removed openssl alg-aes-gcm and alg-blowfish scenarios

5 years agotesting: Removed openssl suite B scenarios
Andreas Steffen [Thu, 8 Nov 2018 20:23:10 +0000 (21:23 +0100)] 
testing: Removed openssl suite B scenarios

5 years agotesting: Moved openssl ecdsa-certs scenarios to swanctl
Andreas Steffen [Thu, 8 Nov 2018 20:16:32 +0000 (21:16 +0100)] 
testing: Moved openssl ecdsa-certs scenarios to swanctl

5 years agoleak-detective: Use hashtable to cache ignored/whitelisted backtraces
Tobias Brunner [Fri, 5 Oct 2018 09:23:36 +0000 (11:23 +0200)] 
leak-detective: Use hashtable to cache ignored/whitelisted backtraces

Checking for whitelisted functions in every backtrace is not very
efficient.  And because OpenSSL 1.1 does no proper cleanup anymore until
the process is terminated there are now a lot more "leaks" to ignore.
For instance, in the openssl-ikev2/rw-cert scenario, just starting and
stopping the daemon (test vectors are checked) now causes 3594 whitelisted
leaks compared to the 849 before.  This prolonged the shutdown of the
daemon on each guest in every scenario, amounting to multiple seconds of
additional runtime for every affected scenario.  But even with this
patch there is still some overhead, compared to running the scenarios on
jessie.

5 years agoleak-detective: Whitelist additional OpenSSL functions used by libcurl
Tobias Brunner [Fri, 14 Sep 2018 15:13:09 +0000 (17:13 +0200)] 
leak-detective: Whitelist additional OpenSSL functions used by libcurl

5 years agoscripts: Include botan in dh_speed.sh and pubkey_speed.sh
Tobias Brunner [Wed, 31 Oct 2018 14:10:23 +0000 (15:10 +0100)] 
scripts: Include botan in dh_speed.sh and pubkey_speed.sh

Also, using sudo is not necessary in dh_speed.sh.

5 years agoopenssl: Fix some const issues with OpenSSL 1.1.0
Tobias Brunner [Tue, 30 Oct 2018 16:15:49 +0000 (17:15 +0100)] 
openssl: Fix some const issues with OpenSSL 1.1.0

5 years agoopenssl: Don't use functions deprecated with OpenSSL 1.1.0
Tobias Brunner [Tue, 30 Oct 2018 15:55:32 +0000 (16:55 +0100)] 
openssl: Don't use functions deprecated with OpenSSL 1.1.0

5 years agoVersion bump to 5.7.2dr2 5.7.2dr2
Andreas Steffen [Wed, 31 Oct 2018 13:22:03 +0000 (14:22 +0100)] 
Version bump to 5.7.2dr2

5 years agobotan: SHA-3 support
Andreas Steffen [Tue, 30 Oct 2018 15:03:05 +0000 (16:03 +0100)] 
botan: SHA-3 support

5 years agoUse Botan 2.8.0 for tests
Tobias Brunner [Mon, 1 Oct 2018 15:24:58 +0000 (17:24 +0200)] 
Use Botan 2.8.0 for tests

5 years agotesting: Use AES-GCM for SSH connections
Tobias Brunner [Tue, 18 Sep 2018 14:49:49 +0000 (16:49 +0200)] 
testing: Use AES-GCM for SSH connections

RC4, which was previously used for performance reasons, is not supported
anymore with newer versions of SSH (stretch still supports it, but it
requires explicit configuration on the guests when they act as clients
too - the version in Ubuntu 18.04 apparently doesn't support it anymore
at all).

AES-GCM should actually be faster (at least for larger amounts of data and
in particular with hardware acceleration).

5 years agotesting: Avoid unnecessary rebuilds of components built from Git repos
Tobias Brunner [Fri, 14 Sep 2018 15:19:55 +0000 (17:19 +0200)] 
testing: Avoid unnecessary rebuilds of components built from Git repos

Installing apparently changes the timestamp on the repo dir triggering make
to checkout and build the whole thing again.

5 years agotesting: Disable predictable network interface names assigned by systemd/udev
Tobias Brunner [Fri, 14 Sep 2018 14:28:03 +0000 (16:28 +0200)] 
testing: Disable predictable network interface names assigned by systemd/udev

5 years agotesting: Remove unused custom OIDs from openssl.cnf files
Tobias Brunner [Fri, 14 Sep 2018 14:08:13 +0000 (16:08 +0200)] 
testing: Remove unused custom OIDs from openssl.cnf files

ClientAuthentication is known in OpenSSL 1.1 and the redefinition, therefore,
causes an error.  These two OIDs are not used anyway in these config
files.

5 years agotesting: Fixed evaluation in swanctl/rw-cert-pss scenario
Andreas Steffen [Sat, 27 Oct 2018 06:47:57 +0000 (08:47 +0200)] 
testing: Fixed evaluation in swanctl/rw-cert-pss scenario

5 years agoVersion bump to 5.7.2dr1 5.7.2dr1
Andreas Steffen [Fri, 26 Oct 2018 16:47:48 +0000 (18:47 +0200)] 
Version bump to 5.7.2dr1

5 years agotesting: Added botan/net2net-ed25519 scenario
Andreas Steffen [Fri, 26 Oct 2018 16:46:59 +0000 (18:46 +0200)] 
testing: Added botan/net2net-ed25519 scenario

5 years agoNEWS: Add some recent changes
Tobias Brunner [Fri, 26 Oct 2018 13:24:51 +0000 (15:24 +0200)] 
NEWS: Add some recent changes

5 years agodhcp: Ignore DHCP OFFER messages without assigned address
Tobias Brunner [Tue, 16 Oct 2018 10:07:05 +0000 (12:07 +0200)] 
dhcp: Ignore DHCP OFFER messages without assigned address

FreeRADIUS seems to respond that way if it can't allocate an address to
the client.

5 years agovici: Properly handle absence of peer ID on mediation connections
Tobias Brunner [Thu, 11 Oct 2018 12:19:20 +0000 (14:19 +0200)] 
vici: Properly handle absence of peer ID on mediation connections

Fixes #2794.

5 years agotask-manager-v2: Reject requests for incomplete IKE_SAs as initiator
Tobias Brunner [Fri, 26 Oct 2018 09:21:38 +0000 (11:21 +0200)] 
task-manager-v2: Reject requests for incomplete IKE_SAs as initiator

Based on a patch by Thomas Egerer.

5 years agomysql: Don't release the connection if transactions are still using it
Tobias Brunner [Wed, 3 Oct 2018 07:34:02 +0000 (09:34 +0200)] 
mysql: Don't release the connection if transactions are still using it

Fixes #2779.

5 years agoMerge branch 'botan-algos'
Tobias Brunner [Fri, 26 Oct 2018 09:09:00 +0000 (11:09 +0200)] 
Merge branch 'botan-algos'

This adds wrappers for additional algorithms (Ed25519, ChaCha20/Poly1305,
AES-CCM) to the botan plugin and fixes some potential compile issues.

5 years agobotan: Fix build without specific asymmetric crypto
Tobias Brunner [Thu, 25 Oct 2018 12:22:21 +0000 (14:22 +0200)] 
botan: Fix build without specific asymmetric crypto

5 years agobotan: Fix build without AES and its modes
Tobias Brunner [Thu, 25 Oct 2018 12:21:38 +0000 (14:21 +0200)] 
botan: Fix build without AES and its modes

5 years agobotan: Add support for AES-CCM
Tobias Brunner [Tue, 23 Oct 2018 10:19:46 +0000 (12:19 +0200)] 
botan: Add support for AES-CCM

5 years agotest-vectors: Add another ChaCha20/Poly1305 test vector from RFC 7539
Tobias Brunner [Tue, 23 Oct 2018 09:44:06 +0000 (11:44 +0200)] 
test-vectors: Add another ChaCha20/Poly1305 test vector from RFC 7539

5 years agobotan: Add support for ChaCha20/Poly1305 AEAD algorithm
Tobias Brunner [Tue, 23 Oct 2018 09:26:02 +0000 (11:26 +0200)] 
botan: Add support for ChaCha20/Poly1305 AEAD algorithm

5 years agobotan: Add support for Ed25519 keys
Tobias Brunner [Mon, 22 Oct 2018 15:55:13 +0000 (17:55 +0200)] 
botan: Add support for Ed25519 keys

5 years agobotan: Add helper function for signature verification
Tobias Brunner [Mon, 22 Oct 2018 15:12:26 +0000 (17:12 +0200)] 
botan: Add helper function for signature verification

5 years agoMerge branch 'ssh-eddsa'
Tobias Brunner [Fri, 26 Oct 2018 09:01:24 +0000 (11:01 +0200)] 
Merge branch 'ssh-eddsa'

This adds support for Ed25519/Ed448 SSH keys and their signatures via
agent plugin.

5 years agoagent: Support signatures with Ed25519/Ed448 keys
Tobias Brunner [Mon, 22 Oct 2018 13:15:13 +0000 (15:15 +0200)] 
agent: Support signatures with Ed25519/Ed448 keys

5 years agosshkey: Support encoding Ed25519/Ed448 SSH public keys
Tobias Brunner [Mon, 22 Oct 2018 13:04:48 +0000 (15:04 +0200)] 
sshkey: Support encoding Ed25519/Ed448 SSH public keys

5 years agosshkey: Add support for parsing Ed25519/Ed448 SSH keys
Tobias Brunner [Mon, 22 Oct 2018 12:37:01 +0000 (14:37 +0200)] 
sshkey: Add support for parsing Ed25519/Ed448 SSH keys

5 years agocurve25519: Support loading Ed25519 public keys from simple blobs
Tobias Brunner [Mon, 22 Oct 2018 12:33:36 +0000 (14:33 +0200)] 
curve25519: Support loading Ed25519 public keys from simple blobs

5 years agocharon-cmd: Print plugin list before parsing arguments
Tobias Brunner [Fri, 19 Oct 2018 13:35:56 +0000 (15:35 +0200)] 
charon-cmd: Print plugin list before parsing arguments

Helps debugging e.g. failures to load certs/keys.

5 years agoMerge commit 'key-sig-schemes'
Tobias Brunner [Fri, 26 Oct 2018 08:58:36 +0000 (10:58 +0200)] 
Merge commit 'key-sig-schemes'

This adds the ability to return supported signature schemes (and
parameters) from a private key.

This is useful for keys on a TPM 2.0 as these can be used only with a
particular scheme (the hash algorithm and for RSA even the padding scheme
is fixed).  For RSA with PSS padding there is an additional complication
because different TPMs use different salt lengths, which we have to know
beforehand to correctly produce e.g. a certificate request (the signature
covers the algorithm identifier that describes the signature scheme).

It turned out that the new method is also useful for the agent plugin.
Newer ssh/gpg-agents support SHA-256 and SHA-512 for RSA signatures, but
not SHA-384, which we can now convey to the pubkey authenticator.
Unfortunately, older agents ignore the flags that request a SHA2 signature
and just return one with SHA-1, in such scenarios IKEv2 signature
authentication has to be disabled.

5 years agoagent: Enumerate only the supported signature schemes for RSA keys
Tobias Brunner [Fri, 19 Oct 2018 07:26:29 +0000 (09:26 +0200)] 
agent: Enumerate only the supported signature schemes for RSA keys

SHA-384 is not supported but is selected by signature_schemes_for_key()
for keys between 3072 and 7680 bits.

Since this is only called for IKEv2 signature authentication we don't
even provide SHA-1 anymore.  We always provide both schemes, though,
which is what pubkey-authenticator does too for RSA.

Older agents apparently just ignore the flags and always return a SHA-1
signature.  If that's the case, charon.signature_authentication has to
be disabled.

5 years agoagent: Add support for RSA signatures with SHA256 and SHA512
Tobias Brunner [Fri, 19 Oct 2018 07:17:39 +0000 (09:17 +0200)] 
agent: Add support for RSA signatures with SHA256 and SHA512

5 years agopubkey-authenticator: Append RSAPSS salt length to debug output
Andreas Steffen [Wed, 17 Oct 2018 08:05:31 +0000 (10:05 +0200)] 
pubkey-authenticator: Append RSAPSS salt length to debug output

5 years agotravis: Build tmp2-tss from sources
Tobias Brunner [Mon, 15 Oct 2018 14:33:34 +0000 (16:33 +0200)] 
travis: Build tmp2-tss from sources

5 years agolibtpmtss: Generalize AIK keys to signature keys
Andreas Steffen [Tue, 23 Oct 2018 16:55:16 +0000 (18:55 +0200)] 
libtpmtss: Generalize AIK keys to signature keys

5 years agotpm: Check FIPS-140-2 and FIPS-186-4 compliance
Andreas Steffen [Tue, 23 Oct 2018 16:30:55 +0000 (18:30 +0200)] 
tpm: Check FIPS-140-2 and FIPS-186-4 compliance

5 years agotpm: Return signature schemes supported by the key if TSS supports it
Tobias Brunner [Mon, 15 Oct 2018 11:16:44 +0000 (13:16 +0200)] 
tpm: Return signature schemes supported by the key if TSS supports it

5 years agolibtpmtss: Add enumeration of supported signature schemes to TSS2 implementations
Tobias Brunner [Mon, 15 Oct 2018 11:28:51 +0000 (13:28 +0200)] 
libtpmtss: Add enumeration of supported signature schemes to TSS2 implementations

5 years agolibtpmtss: TSS can optionally return signature schemes supported by a key
Tobias Brunner [Mon, 15 Oct 2018 11:16:06 +0000 (13:16 +0200)] 
libtpmtss: TSS can optionally return signature schemes supported by a key

5 years agosignature-params: Provide option for maximum RSA/PSS salt length
Tobias Brunner [Fri, 12 Oct 2018 10:11:51 +0000 (12:11 +0200)] 
signature-params: Provide option for maximum RSA/PSS salt length

However, the length now has to be resolved early, so we don't operate on
the negative constant values e.g. when generating the encoding.

5 years agopki: Query private key for supported signature schemes
Tobias Brunner [Fri, 12 Oct 2018 09:35:09 +0000 (11:35 +0200)] 
pki: Query private key for supported signature schemes

5 years agopubkey-authenticator: Query private key for supported signature schemes
Tobias Brunner [Fri, 12 Oct 2018 09:14:05 +0000 (11:14 +0200)] 
pubkey-authenticator: Query private key for supported signature schemes

5 years agoprivate-key: Add optional method that returns supported signature schemes
Tobias Brunner [Fri, 12 Oct 2018 08:35:04 +0000 (10:35 +0200)] 
private-key: Add optional method that returns supported signature schemes

5 years agoMerge branch 'openssl-keyid'
Tobias Brunner [Wed, 24 Oct 2018 08:07:49 +0000 (10:07 +0200)] 
Merge branch 'openssl-keyid'

Closes strongswan/strongswan#116.

5 years agoopenssl: Remove extra semicolon
ambiso [Tue, 23 Oct 2018 21:20:17 +0000 (23:20 +0200)] 
openssl: Remove extra semicolon

5 years agoopenssl: Remove arbitrary keyid length check
ambiso [Tue, 23 Oct 2018 21:20:17 +0000 (23:20 +0200)] 
openssl: Remove arbitrary keyid length check

5 years agoopenssl: Fix invalid keyid length check
ambiso [Tue, 23 Oct 2018 21:20:17 +0000 (23:20 +0200)] 
openssl: Fix invalid keyid length check

Check was designed for base64 conversion, however a hex conversion is
being performed, which requires more memory.

5 years agolibtpmtss: Fixed inclusion of tcti-tabrmd.h header file
Andreas Steffen [Fri, 19 Oct 2018 08:46:08 +0000 (10:46 +0200)] 
libtpmtss: Fixed inclusion of tcti-tabrmd.h header file

5 years agolibvici: Wrap header in extern "C" to include it from C++
Tobias Brunner [Thu, 11 Oct 2018 16:57:00 +0000 (18:57 +0200)] 
libvici: Wrap header in extern "C" to include it from C++

Fixes #2795.

5 years agoandroid: New release after fixing DNS leak and some bugs
Tobias Brunner [Wed, 17 Oct 2018 10:08:47 +0000 (12:08 +0200)] 
android: New release after fixing DNS leak and some bugs

5 years agoandroid: Force the two line button to be focusable
Tobias Brunner [Thu, 4 Oct 2018 09:48:45 +0000 (11:48 +0200)] 
android: Force the two line button to be focusable

On newer Android versions (8+) this does not seem to be necessary (adding
the onClick handler also sets "clickable" and that in turn seems to make
it focusable), however, for older releases it is (tested with 7.1.1
keyboard navigation just skips over the button).  This was seen on a
Fire TV stick.

5 years agoandroid: Avoid DNS leak due to blocking TUN device without DNS servers
Tobias Brunner [Fri, 21 Sep 2018 13:07:44 +0000 (15:07 +0200)] 
android: Avoid DNS leak due to blocking TUN device without DNS servers

It looks like Android 9 incorrectly continues to use the regular DNS
servers after the blocking TUN device is replaced with the actual
interface.  Setting DNS servers prevents that (since all traffic is
blocked, which ones doesn't really matter but local/loopback addresses
are rejected).
Interestingly, if the VPN server later does not assign any DNS servers, there
is no fallback to the non-VPN DNS servers for some reason (that's definitely
not as documented).  This could potentially be a problem as we don't
offer an option to configure DNS servers in the VPN profile.

Neither issue is seen on older Android versions (only tested on 7.1.1).

5 years agoandroid: Update Gradle plugin
Tobias Brunner [Fri, 21 Sep 2018 13:07:25 +0000 (15:07 +0200)] 
android: Update Gradle plugin

5 years agoandroid: Make sure we actually have a tile when updating it
Tobias Brunner [Fri, 6 Jul 2018 14:01:34 +0000 (16:01 +0200)] 
android: Make sure we actually have a tile when updating it

Not sure when this happens exactly, in particular because the reported
stack traces look like this

java.lang.NullPointerException:
  at org.strongswan.android.ui.VpnTileService.updateTile (VpnTileService.java:220)
  at org.strongswan.android.ui.VpnTileService.onStartListening (VpnTileService.java:97)
  at android.service.quicksettings.TileService$H.handleMessage (TileService.java:407)

which violates the API documentation for getQsTile(), which states:

  This tile is only valid for updates between onStartListening() and
  onStopListening().

But apparently that's not always the case. There have been two reports
of such a crash, both on Android 8.0 and on Xiaomi Mi 5/6 devices, so
maybe it's a bug in that particular image.

5 years agoandroid: Fix profile selection/edit when the device is rotated
Tobias Brunner [Fri, 6 Jul 2018 13:54:45 +0000 (15:54 +0200)] 
android: Fix profile selection/edit when the device is rotated

The previous code lost track of the selected profile IDs, but the
widgets maintained their state (i.e. the list item was still selected and the
edit button still enabled).  Clicking the edit button then caused a crash when
trying to get the first item in the set.

5 years agoikev1: Log traffic selectors for missing child configs
Thomas Egerer [Tue, 2 Oct 2018 13:11:16 +0000 (15:11 +0200)] 
ikev1: Log traffic selectors for missing child configs

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
5 years agotask-manager-v1: Clear retransmit alert on request retransmit
Thomas Egerer [Tue, 2 Oct 2018 13:02:59 +0000 (15:02 +0200)] 
task-manager-v1: Clear retransmit alert on request retransmit

The task manager for IKEv1 issues a retransmit send alert in the
retransmit_packet() function. The corresponding retransmit cleared alert
however is only issued for exchanges we initiated after processing the
response in process_response().

For quick mode exchanges we may retransmit the second packet if the peer
(the initiator) does not send the third message in a timely manner. In
this case the retransmit send alert may never be cleared.

With this patch the retransmit cleared alert is issued for packets that
were retransmitted also when we are the responding party when we receive
the outstanding response.

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
5 years agosec-updater.sh: Support of Debian 9.0 and Ubuntu 18.04
Andreas Steffen [Sun, 7 Oct 2018 08:14:20 +0000 (10:14 +0200)] 
sec-updater.sh: Support of Debian 9.0 and Ubuntu 18.04

5 years agotravis: Don't build botan twice if installing dependencies is retried
Tobias Brunner [Tue, 2 Oct 2018 14:13:26 +0000 (16:13 +0200)] 
travis: Don't build botan twice if installing dependencies is retried

5 years agofuzzing: Add -lm to LDFLAGS if the coverage sanitizer is used
Tobias Brunner [Tue, 2 Oct 2018 08:58:40 +0000 (10:58 +0200)] 
fuzzing: Add -lm to LDFLAGS if the coverage sanitizer is used

libFuzzer apparently uses math functions (e.g. ceilf) for that sanitizer.

5 years agotravis: Only build sonarcloud target if the token is available
Tobias Brunner [Tue, 2 Oct 2018 07:38:00 +0000 (09:38 +0200)] 
travis: Only build sonarcloud target if the token is available

That's not the case for pull requests that don't have access to
encrypted tokens/environment variables.

5 years agoswanctl: Fix typos in usage for swanctl rekey/terminate commands
Matt Selsky [Tue, 2 Oct 2018 04:56:31 +0000 (00:56 -0400)] 
swanctl: Fix typos in usage for swanctl rekey/terminate commands

Closes strongswan/strongswan#113.

5 years agoVersion bump to 5.7.1 5.7.1
Andreas Steffen [Mon, 1 Oct 2018 15:46:17 +0000 (17:46 +0200)] 
Version bump to 5.7.1

5 years agoNEWS: Add info about CVE-2018-17540
Tobias Brunner [Mon, 1 Oct 2018 08:26:08 +0000 (10:26 +0200)] 
NEWS: Add info about CVE-2018-17540

5 years agogmp: Fix buffer overflow with very small RSA keys
Tobias Brunner [Tue, 25 Sep 2018 12:50:08 +0000 (14:50 +0200)] 
gmp: Fix buffer overflow with very small RSA keys

Because `keylen` is unsigned the subtraction results in an integer
underflow if the key length is < 11 bytes.

This is only a problem when verifying signatures with a public key (for
private keys the plugin enforces a minimum modulus length) and to do so
we usually only use trusted keys.  However, the x509 plugin actually
calls issued_by() on a parsed certificate to check if it is self-signed,
which is the reason this issue was found by OSS-Fuzz in the first place.
So, unfortunately, this can be triggered by sending an invalid client
cert to a peer.

Fixes: 5955db5b124a ("gmp: Don't parse PKCS1 v1.5 RSA signatures to verify them")
Fixes: CVE-2018-17540
5 years agotravis: Don't build tags separately
Tobias Brunner [Fri, 21 Sep 2018 16:49:09 +0000 (18:49 +0200)] 
travis: Don't build tags separately

Travis treats tags just like branches (which sonarcloud does too) and the
tagged commit is built anyway.

5 years agoVersion bump to 5.7.0 5.7.0
Andreas Steffen [Mon, 24 Sep 2018 09:10:12 +0000 (11:10 +0200)] 
Version bump to 5.7.0

5 years agoNEWS: Add info about CVE-2018-16151/52
Tobias Brunner [Mon, 3 Sep 2018 12:39:52 +0000 (14:39 +0200)] 
NEWS: Add info about CVE-2018-16151/52

5 years agogmp: Don't parse PKCS1 v1.5 RSA signatures to verify them
Tobias Brunner [Tue, 28 Aug 2018 09:26:24 +0000 (11:26 +0200)] 
gmp: Don't parse PKCS1 v1.5 RSA signatures to verify them

Instead we generate the expected signature encoding and compare it to the
decrypted value.

Due to the lenient nature of the previous parsing code (minimum padding
length was not enforced, the algorithmIdentifier/OID parser accepts arbitrary
data after OIDs and in the parameters field etc.) it was susceptible to
Daniel Bleichenbacher's low-exponent attack (from 2006!), which allowed
forging signatures for keys that use low public exponents (i.e. e=3).

Since the public exponent is usually set to 0x10001 (65537) since quite a
while, the flaws in the previous code should not have had that much of a
practical impact in recent years.

Fixes: CVE-2018-16151, CVE-2018-16152
5 years agotravis: Run long-running tests first to reduce overall build time
Tobias Brunner [Tue, 18 Sep 2018 14:55:38 +0000 (16:55 +0200)] 
travis: Run long-running tests first to reduce overall build time

Moving the manual matrix inclusions further up would be even better but
that doesn't seem possible.

5 years agoandroid: Disable capabilities in the android app
Tobias Brunner [Fri, 21 Sep 2018 08:58:51 +0000 (10:58 +0200)] 
android: Disable capabilities in the android app

capset/capget are not in the NDK headers anymore, but we didn't use them
in the app anyway.

5 years agoandroid: Fix implementation of change_state() method in Android IMC
Tobias Brunner [Fri, 21 Sep 2018 08:55:34 +0000 (10:55 +0200)] 
android: Fix implementation of change_state() method in Android IMC

The signature was changed with 731e043c8e07 ("libimcv: Reset of IMC state for
new measurement cycle").

5 years agoVersion bump to 5.7.0rc2 5.7.0rc2
Andreas Steffen [Tue, 18 Sep 2018 14:03:23 +0000 (16:03 +0200)] 
Version bump to 5.7.0rc2

5 years agoswanctl: Document PPKs
Tobias Brunner [Tue, 18 Sep 2018 08:12:45 +0000 (10:12 +0200)] 
swanctl: Document PPKs

5 years agoFixed some typos, courtesy of codespell
Tobias Brunner [Mon, 17 Sep 2018 16:36:22 +0000 (18:36 +0200)] 
Fixed some typos, courtesy of codespell

5 years agosettings: Clarify that a key/value-pair can only occur once
Tobias Brunner [Mon, 17 Sep 2018 15:58:09 +0000 (17:58 +0200)] 
settings: Clarify that a key/value-pair can only occur once

5 years agosettings-test: Remove unused variable in printf() call
Tobias Brunner [Mon, 17 Sep 2018 15:43:18 +0000 (17:43 +0200)] 
settings-test: Remove unused variable in printf() call

5 years agovici: Fix syntax error in Ruby bindings
Tobias Brunner [Mon, 17 Sep 2018 15:05:23 +0000 (17:05 +0200)] 
vici: Fix syntax error in Ruby bindings

I guess nobody uses these.

Fixes: 2c7cfe76303b ("vici: flush-certs command flushes certificate cache")
5 years agoimv-attestation: Don't use comma to separate statements
Tobias Brunner [Mon, 17 Sep 2018 14:59:43 +0000 (16:59 +0200)] 
imv-attestation: Don't use comma to separate statements

5 years agoimv-agent: Don't use comma to separate statements
Tobias Brunner [Mon, 17 Sep 2018 14:59:11 +0000 (16:59 +0200)] 
imv-agent: Don't use comma to separate statements