Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSome nginx TLS tests started failing with LibreSSL 2.5.3 (but not with 2.4.4) #307
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Duncaen
Apr 25, 2017
nginx-tests@openbsd$ TEST_NGINX_BINARY=/usr/local/sbin/nginx prove -v ./ssl_verify_client.t
./ssl_verify_client.t ..
1..12
ok 1 - plain connection
ok 2 - no cert
ok 3 - no optional cert
not ok 4 - bad optional cert
# Failed test 'bad optional cert'
# at ./ssl_verify_client.t line 125.
# 'HTTP/1.1 200 OK
# Server: nginx/1.10.2
# Date: Tue, 25 Apr 2017 17:39:03 GMT
# Content-Type: text/plain
# Content-Length: 8
# Last-Modified: Tue, 25 Apr 2017 17:39:03 GMT
# Connection: close
# ETag: "58ff89b7-8"
# X-Verify: xSUCCESS:-----BEGIN CERTIFICATE-----
# MIIBpzCCARACCQCgJ9TYR7fSOzANBgkqhkiG9w0BAQsFADAYMRYwFAYDVQQDDA0x
# LmV4YW1wbGUuY29tMB4XDTE3MDQyNTE3MzkwM1oXDTE3MDUyNTE3MzkwM1owGDEW
# MBQGA1UEAwwNMS5leGFtcGxlLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkC
# gYEAr70r4WM5yL5LJrp6rhBLOX6FKX85NY59H7J3/XHU1/wAnr/AUclq0ugfyj8e
# rUTL5tNG8VC0fhKZ+nzgiMhY/WnLvF8LJArjw3DgeB8G5JAVZIMhUtfl9HmBv35Z
# OhcFVgx315umUcDBSDlOAxES2wILhU7h6YB7qiQkHPYZN4kCAwEAATANBgkqhkiG
# 9w0BAQsFAAOBgQBkUOogRBmb+bANFb/o01+q4yC9o7mWmzL2YCgokJU6sw6PrY6Q
# fExdPKrSYLwcQrGGow/zYMyndGRhVp0Z/61Ph6c7xXIVNge4L0JjVPZ4llgVcZTh
# 1FnvG808QBxPWY2s2lgmnu0B262DepxVHgDhR4oV8VUQRLMUMOnJFBBsWQ==
# -----END CERTIFICATE-----x
# Accept-Ranges: bytes
#
# SEE-THIS'
# doesn't match '(?^:400 Bad)'
not ok 5 - bad optional_no_ca cert
# Failed test 'bad optional_no_ca cert'
# at ./ssl_verify_client.t line 126.
# 'HTTP/1.1 200 OK
# Server: nginx/1.10.2
# Date: Tue, 25 Apr 2017 17:39:03 GMT
# Content-Type: text/plain
# Content-Length: 8
# Last-Modified: Tue, 25 Apr 2017 17:39:03 GMT
# Connection: close
# ETag: "58ff89b7-8"
# X-Verify: xSUCCESS:-----BEGIN CERTIFICATE-----
# MIIBpzCCARACCQCgJ9TYR7fSOzANBgkqhkiG9w0BAQsFADAYMRYwFAYDVQQDDA0x
# LmV4YW1wbGUuY29tMB4XDTE3MDQyNTE3MzkwM1oXDTE3MDUyNTE3MzkwM1owGDEW
# MBQGA1UEAwwNMS5leGFtcGxlLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkC
# gYEAr70r4WM5yL5LJrp6rhBLOX6FKX85NY59H7J3/XHU1/wAnr/AUclq0ugfyj8e
# rUTL5tNG8VC0fhKZ+nzgiMhY/WnLvF8LJArjw3DgeB8G5JAVZIMhUtfl9HmBv35Z
# OhcFVgx315umUcDBSDlOAxES2wILhU7h6YB7qiQkHPYZN4kCAwEAATANBgkqhkiG
# 9w0BAQsFAAOBgQBkUOogRBmb+bANFb/o01+q4yC9o7mWmzL2YCgokJU6sw6PrY6Q
# fExdPKrSYLwcQrGGow/zYMyndGRhVp0Z/61Ph6c7xXIVNge4L0JjVPZ4llgVcZTh
# 1FnvG808QBxPWY2s2lgmnu0B262DepxVHgDhR4oV8VUQRLMUMOnJFBBsWQ==
# -----END CERTIFICATE-----x
# Accept-Ranges: bytes
#
# SEE-THIS'
# doesn't match '(?^:FAILED.*BEGIN)'
ok 6 - good cert
ok 7 - good cert optional
ok 8 - good cert trusted
ok 9 - no trusted sent
ok 10 - misdirected
ok 11 - no alerts
ok 12 - no sanitizer errors
# Looks like you failed 2 tests of 12.
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/12 subtests
Test Summary Report
-------------------
./ssl_verify_client.t (Wstat: 512 Tests: 12 Failed: 2)
Failed tests: 4-5
Non-zero exit status: 2
Files=1, Tests=12, 1 wallclock secs ( 0.04 usr 0.00 sys + 0.24 cusr 0.08 csys = 0.36 CPU)
Result: FAIL
Same or similiar results with the nginx port in OpenBSD 6.1.
Duncaen
commented
Apr 25, 2017
Same or similiar results with the nginx port in |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Duncaen
Apr 25, 2017
I think its this commit [0] together with the nginxs ngx_ssl_verify_callback [1].
[0] libressl-portable/openbsd@ddd98f8
[1] https://github.com/nginx/nginx/blob/branches/stable-1.10/src/event/ngx_event_openssl.c#L666
Duncaen
commented
Apr 25, 2017
|
I think its this commit [0] together with the nginxs [0] libressl-portable/openbsd@ddd98f8 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jirutka
Apr 26, 2017
I’ve tries to rebuild LibreSSL 2.5.3 with reverted libressl-portable/openbsd@ddd98f8 and now all nginx tests pass!
jirutka
commented
Apr 26, 2017
|
I’ve tries to rebuild LibreSSL 2.5.3 with reverted libressl-portable/openbsd@ddd98f8 and now all nginx tests pass! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jirutka
Apr 26, 2017
Please read responses from the nginx team in https://trac.nginx.org/nginx/ticket/1257#comment:4. According to them it’s not problem on their said and it seems for us that they are right.
jirutka
commented
Apr 26, 2017
|
Please read responses from the nginx team in https://trac.nginx.org/nginx/ticket/1257#comment:4. According to them it’s not problem on their said and it seems for us that they are right. |
4a6f656c
assigned
bob-beck and
4a6f656c
Apr 26, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
4a6f656c
Apr 26, 2017
Member
Thanks for digging into the issue and reporting this. It seems that the change does indeed break the documented API - we're looking into solutions and will follow up soon.
|
Thanks for digging into the issue and reporting this. It seems that the change does indeed break the documented API - we're looking into solutions and will follow up soon. |
Steiniche
referenced this issue
Apr 26, 2017
Closed
[nextcloud] latest image stops after "unhandled exception" #130
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kaniini
commented
Apr 27, 2017
|
this regression being a security issue, have we got a CVE yet? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bob-beck
Apr 27, 2017
Member
|
I have seen no CVE for this issue. Perhaps nginx has one.
…On Wed, Apr 26, 2017 at 09:08:21PM -0700, William Pitcock wrote:
this regression being a security issue, have we got a CVE yet?
--
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub:
#307 (comment)
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bob-beck
Apr 27, 2017
Member
|
And before you ask, no we do not request them. If the discoverer of the
issue wishes to do so, that's fine.
…On Wed, Apr 26, 2017 at 10:23 PM, Bob Beck ***@***.***> wrote:
I have seen no CVE for this issue. Perhaps nginx has one.
On Wed, Apr 26, 2017 at 09:08:21PM -0700, William Pitcock wrote:
> this regression being a security issue, have we got a CVE yet?
>
> --
> You are receiving this because you were assigned.
> Reply to this email directly or view it on GitHub:
> #307#
issuecomment-297606290
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Shizmob
Apr 27, 2017
Since this seems to affect at least two widely-used software packages severely if used together with LibreSSL, we opted to request a CVE for this.
Shizmob
commented
Apr 27, 2017
|
Since this seems to affect at least two widely-used software packages severely if used together with LibreSSL, we opted to request a CVE for this. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Shizmob
commented
Apr 27, 2017
|
CVE-2017-8301 has been assigned for this issue. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
This has been reverted upstream - errata/release to follow soon. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Once the portable 2.5.4 heads out (shortly) I will close this out. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Errata released, and fixed in portable libressl 2.5.4 |
bob-beck
closed this
May 3, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kaniini
commented
May 3, 2017
|
thanks. |
jirutka commentedApr 25, 2017
•
edited
Edited 1 time
-
jirutka
edited Apr 26, 2017 (most recent)
After we updated LibreSSL from 2.4.4. to 2.5.3 in Alpine Linux, we have noticed that some TLS-related tests in nginx (both 1.10.3 and 1.12.0) started failing. Moreover, most of them fail because nginx accepted certificate that should be rejected! That’s pretty bad regression.
We’re not sure if the problem is in LibreSSL, nginx or nginx-tests, so reporting it to both. Nginx bug report: https://trac.nginx.org/nginx/ticket/1257.
People from VoidLinux have reproduced this issue too, on glibc.
Complete log: http://tpaste.us/Ynw6 or nginx-tests.log.txt
/cc @ncopa