URL encryption breaks caching

Bug #457474 reported by root
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
psiphon
Fix Committed
Unknown
Adam P

Bug Description

We use CBC mode (random IV mixed into each string encryption) to encode URLs. This means that the same URL will encode differently each time. This means that instead of the same page element getting downloaded only once, regardless of how often it's referenced, it will get downloaded once for each reference.

            For example: On cnn.com, the little red bullet image gets downloaded 33 times instead of one time.

            This causes major inefficiency on the client end, and unnecessary load on our server.

Tags: category1
Revision history for this message
root (n-root-psiphon-ca) wrote :

Note that if we switch to port forwarding we could stop encoding URLs and this problem would go away.

                Alternatively, we could use ECB mode (the same plaintext gets encrypted to the same ciphertext), but that raises some security concerns.

Adam P (adam+)
Changed in psiphon:
status: New → Confirmed
Rod (rod-psiphon)
visibility: private → public
e.fryntov (e-fryntov)
tags: added: category1
Revision history for this message
Adam P (adam+) wrote :

When closing this, be sure to verify and close bug #457417

Revision history for this message
Adam P (adam+) wrote :

When closing this, be sure to verify and close Bug #457433

Adam P (adam+)
Changed in psiphon:
status: Confirmed → Fix Committed
assignee: nobody → Adam (adam+)
milestone: none → 2.5
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.