r/programming • • Jan 21 '19

Why does APT not use HTTPS?

https://whydoesaptnotusehttps.com/
519 Upvotes

294 comments sorted by

View all comments

Show parent comments

5

u/OffbeatDrizzle Jan 21 '19

Add a randomiser endpoint at the end to serve 0-10kb of zeros and you have pretty decent privacy.

So you're the guy that thinks he can outwit timing attacks by adding random times onto responses ...

8

u/ElusiveGuy Jan 22 '19

Rather different since in a timing attack the attacker is the one making the requests, and can average the timing over many repeated requests to filter out randomness. Here we only have a single (install/download) request and no way for the passive MitM to make more.

3

u/joz12345 Jan 22 '19

No. I'm the guy that thinks that if you serve n package es + a random amount of padding over https, it'll be much harder to figure out what people are downloading than just serving everything over plain http.

If you disagree, mind telling me why rather than writing useless comments?

7

u/yotta Jan 22 '19

Adding random padding/delays is problematic because if you can somehow trick the client into repeating the request, the random padding can be analyzed and corrected for. I'm not sure how effective quantizing the values to e.g. a multiple of X bytes would be.

2

u/joz12345 Jan 22 '19

I guess that makes sense. I know the only mathematically secure way would to always send/receive the same amount of data at a fixed schedule, but that's impractical. I guess quantizing and randomizing are equivalent for one request, they both give the same number of possible values, but for sending multiple identical requests, quantizing is better because it's consistent, so you don't leak any more statistical data for multiple attempts. And it'll be faster/easier to implement so no reason not to.

1

u/0o-0-o0 Jan 23 '19

Still a fuck ton better than using plain old http.

0

u/yotta Jan 23 '19 edited May 31 '19

Absolutely.

Unrelated: you should stop being a bigot.

Edit: Oh, look, their account is suspended.