Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check SSLv3 padding length #410

Merged
merged 1 commit into from
Dec 22, 2019
Merged

Check SSLv3 padding length #410

merged 1 commit into from
Dec 22, 2019

Conversation

ocheron
Copy link
Contributor

@ocheron ocheron commented Dec 22, 2019

Contrary to TLS, SSL requires the CBC padding to be minimal, i.e. the minimum number of bytes to get a multiple of the block size. This PR adds the verification and makes tlsfuzzer script
test-SSLv3-padding.py all successful.

Tests that records received satisfy the constraint given in RFC 6101
section 5.2.3.2:

   padding_length: The length of the padding must be less than the
   cipher's block length and may be zero.
Copy link
Collaborator

@kazu-yamamoto kazu-yamamoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

kazu-yamamoto added a commit to kazu-yamamoto/hs-tls that referenced this pull request Dec 22, 2019
@kazu-yamamoto kazu-yamamoto merged commit b2566bf into haskell-tls:master Dec 22, 2019
@kazu-yamamoto
Copy link
Collaborator

Merged.

@ocheron ocheron deleted the ssl-padding branch December 29, 2019 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants