4 ms·
Xt_sslpin: TLS Cert Pinning with Netfilter
- jeroenhd 5y agoAn interesting tool. Too bad IPv6 is missing, the rest of the limitations are probably not too bad for messing around with. xt_sslpin_sslparser.h looks like it was a total pain to write, I'm impressed that the author didn't just hack OpenSSL or similar into the code.
- tialaramex 5y agoNotice this can't work if both clients and servers are, or could in future be, willing to use TLS 1.3 or later. In TLS 1.3 the Certificate message is encrypted (as it perhaps always should have been) so this match won't work. If you are responsible for all clients or servers on the path this netfilter applies to, you can choose to configure them to deliberately never use TLS 1.3 or later, and having done so this trick will "work" although it's non-compliant and anything can and will break it without notice. If you don't have that control, you can't do anything about this. If you try to write a Netfilter that smashes TLS 1.3 negotiation hoping to trick one side into allowing TLS 1.2 you'll instead blow up the connection. This is deliberate, because if you could do this then there's no point in having better security in TLS 1.3.
- 1vuio0pswjnm7 5y agoI have been using TLS1.3 exclusively. I use a local forward proxy and I configure it to use 1.3 only for all outgoing connections. I have only discovered a few websites that do not yet support TLS1.3.
- tialaramex 5y agoThat's nice (although it suggests you don't visit many web sites) but sort of orthogonal to this HN topic you created. This tool Xt_sslpin doesn't do anything for TLS 1.3. It's a tiger-repelling rock. Maybe you don't see any tigers, but that's not because of the rock.
- deleted 5y ago[deleted]
- amluto 5y agoThis looks likely to be vulnerable to a server that creatively abuses TCP by reordering segments, sending duplicates, etc.
- captn3m0 5y agoWhat’s the threat model where this is going to be useful? Every key/cert rotation will need verification and if you connect to enough sites, can become overwhelming (especially with lowering certificate lifetimes).
- 1vuio0pswjnm7 5y ago(2013) Failure to include date results in someone going off on a tangent about TLS1.3, which did not appear until around 2018.