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

Do not reuse PSK identities (TLS 1.3 session tickets) #632

Open
nervuri opened this issue Oct 18, 2023 · 2 comments
Open

Do not reuse PSK identities (TLS 1.3 session tickets) #632

nervuri opened this issue Oct 18, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@nervuri
Copy link

nervuri commented Oct 18, 2023

Lagrange does reuse them, which is not allowed by the TLS 1.3 spec:

https://datatracker.ietf.org/doc/html/rfc8446#appendix-C.4

Clients SHOULD NOT reuse a ticket for multiple connections. Reuse of a ticket allows passive observers to correlate different connections.

To check this easily, you can open gemini://tlsprivacy.nervuri.net/json/v1, then refresh repeatedly while noting the contents of the psk_identities array. The same identity value is reused across connections and the obfuscated_ticket_age is incremented with the number of (milli)seconds that have passed between each connection. The major web browsers use a different PSK identity every time.

@skyjake
Copy link
Owner

skyjake commented Oct 19, 2023

Has something changed here vs. the previous discussion? As far as I can see, in the context of Gemini, setting a 10 minute maximum time for session reuse mitigates potential tracking issues sufficiently.

Also, "SHOULD NOT" does not equate to "is not allowed"?

@nervuri
Copy link
Author

nervuri commented Oct 19, 2023 via email

@skyjake skyjake added the enhancement New feature or request label Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants