News for hackers. Stuff that matters.
Re:See this page fetch itself, byte by byte, over TLS by sxp on Saturday March 09, 2024 @09:45PM (#39656343)
> See this page fetch itself... Raw TCP traffic is carried via a serverless WebSocket proxy.

To be pedantic, we're watching the webpage asking a Cloudflare "serverless" server to fetch the webpage and then send the results to the webpage.

I was confused as to how they were able to get a raw TCP connection in a webpage since I thought that was blocked by normal browsers.

Re:See this page fetch itself, byte by byte, over TLS by londons_explore on Saturday March 09, 2024 @09:56PM (#39656383)
Random thought:

TLS is broken if the random numbers used for key generation aren't actually random.

Lots of malware/state agencies are known to patch random number generators to make sure they aren't random, and rumours swirl about exactly how random hardware random number generators are.

So why not simply log random numbers used for TLS handshakes? My machine probably only does 10k Https handshakes per day, so keeping a log of all of them for a few years would allow me to later check them to see if they were impacted by any attack. By logging the data from the server side of the connection I can likewise see if a server was affected.

Why doesn't any software even have a --log-tls-random option allowing paranoid sysadmins to do this?

Re:See this page fetch itself, byte by byte, over TLS by o11c on Saturday March 09, 2024 @10:02PM (#39656401)
Because logging actually opens a security hole, by allowing anyone who gets access to your hard derive to retroactively decrypt your internet traffic.
Re:See this page fetch itself, byte by byte, over TLS by londons_explore on Saturday March 09, 2024 @11:30PM (#39656717)
Okay - log a hash/fingerprint then.
Re:See this page fetch itself, byte by byte, over TLS by taco9999 on Saturday March 09, 2024 @11:42PM (#39656768)
Then how would you know if the original random numbers were affected?
Re:See this page fetch itself, byte by byte, over TLS by harrisi on Sunday March 10, 2024 @12:44AM (#39656988)
Once the hash function is inevitably broken in a few years you can find out.
Re:See this page fetch itself, byte by byte, over TLS by arkadiyt on Saturday March 09, 2024 @10:06PM (#39656414)
Chrome/Firefox/curl do allow exporting this by setting the `SSLKEYLOGFILE` environment variable, but as another poster points out this would let anyone with access to your hard drive decrypt your historical traffic
Re:See this page fetch itself, byte by byte, over TLS by pvg on Saturday March 09, 2024 @10:14PM (#39656447)
Big thread from some months ago: https://news.ycombinator.com/item?id=35884437