Closed
Bug 1490006
Opened 8 years ago
Closed 7 years ago
Invalid CH.legacy_version is not rejected in TLS 1.3
Categories
(NSS :: Libraries, defect)
NSS
Libraries
Tracking
(Not tracked)
RESOLVED
FIXED
3.42
People
(Reporter: ueno, Assigned: ueno)
Details
Attachments
(1 file, 1 obsolete file)
While RFC 8446 Appendix D.5 says:
Implementations MUST NOT send a ClientHello.legacy_version or
ServerHello.legacy_version set to 0x0300 or less. Any endpoint
receiving a Hello message with ClientHello.legacy_version or
ServerHello.legacy_version set to 0x0300 MUST abort the handshake
with a "protocol_version" alert.
NSS server ignores the field and continues the handshake.
To reproduce with tlsfuzzer:
selfserv -w nss -d sql:server -V tls1.3: -H 1 -n localhost.localdomain -u -p 443
PYTHONPATH=. python ./scripts/test-tls13-legacy-version.py
version (3, 0) ...
Error encountered while processing node <tlsfuzzer.expect.ExpectAlert object at 0x7f4c6c764090> (child: <tlsfuzzer.expect.ExpectClose object at 0x7f4c6c7640d0>) with last message being: <tlslite.messages.Message object at 0x7f4c6c76a510>
Error while processing
Traceback (most recent call last):
File "./scripts/test-tls13-legacy-version.py", line 174, in main
runner.run()
File "/home/dueno/devel/tlsfuzzer/tlsfuzzer/runner.py", line 217, in run
RecordHeader2)))
AssertionError: Unexpected message from peer: Handshake(server_hello)
| Assignee | ||
Comment 1•8 years ago
|
||
This should fix the issue, though it would be nice to have a self test.
Assignee: nobody → dueno
| Assignee | ||
Comment 2•7 years ago
|
||
As suggested in RFC 8446 Appendix D.5, TLS 1.3 server should send protocol_version alert in response to a ClientHello with legacy_version set to 0x300 or smaller.
| Assignee | ||
Updated•7 years ago
|
Attachment #9007793 -
Attachment is obsolete: true
| Assignee | ||
Comment 3•7 years ago
|
||
Status: NEW → RESOLVED
Closed: 7 years ago
QA Contact: jjones
Resolution: --- → FIXED
Target Milestone: --- → 3.42
You need to log in
before you can comment on or make changes to this bug.
Description
•