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

What sort of message integrity are we concerned about? #726

Closed
martinthomson opened this issue Feb 1, 2021 · 0 comments · Fixed by #735
Closed

What sort of message integrity are we concerned about? #726

martinthomson opened this issue Feb 1, 2021 · 0 comments · Fixed by #735

Comments

@martinthomson
Copy link
Contributor

Section 11.3 talks about message integrity in general terms. The introductory sentence is good, but it then seemingly intermingles several different factors that might be relevant:

  1. Accidental corruption of messages in the network. This is not something that applies to HTTPS, but it is relevant for the cleartext variant.
  2. The use of intermediaries that might not be trusted not to modify messages. Noting here that this is likely selective as intermediaries need to modify certain parts of messages.
  3. Attacks on the protocol, which break down further:
    a. Attacks on cleartext HTTP, which has no real defense.
    b. Attacks on TLS, which has good defenses on the whole, though less so with respect to truncation of responses. This is due to the way that HTTP/1.1 allows connection termination (which is under attacker influence) to end a response and the way that TLS in practice is really poor at propagating close_notify in a way that is distinguishable from TCP closure.

Overall, I think that this text could be made clearer.

martinthomson added a commit to martinthomson/http-core that referenced this issue Feb 2, 2021
I didn't want to make this too disruptive, so I concentrated on the high
points.  Related to the changes in httpwg#734.

Breakdown:
 - integrity is important (existing text)
 - HTTPS provides integrity, but you have to be careful with truncation
   (includes existing example)
 - HTTP provides no integrity
 - extensions can be used to provide additional protection, including
   managing the risk of intermediaries messing around (massaging existing
   text)

Closes httpwg#726.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants