When I don't have a laptop with me, I sometimes do server admin stuff using my smartphone. It's a reasonably secure phone because it runs a hardened Android distribution called #GrapheneOS. Or so I thought. Shoddy apps can of course violate your security and privacy on any operating system.
As a matter of fact, I once set up a Mastodon server via SSH using my smartphone as a terminal. My terminal app of choice is nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqqkp4cp8q00wrejgfyn7dmrjv36rdntrm4h8namll3d5jwn2ypufs6hv53m (nprofile…v53m) – it almost feels like Debian Gnu/Linux.
Today I found out that the #Termux developers do not care about their users' privacy: They put Google's DNS resolvers as defaults into their app and do tell their users about it. Which means that until today, Google learnt about each hostname I resolved in Termux, although I had configured my smartphone to use a different DNS resolver. The Termux developers were alerted to this bug ten years ago by nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqql7vwd57qv9f3828lp2r0hewykxy2zk2mnjyf4lujpr30vrxqtnsjdyvk2 (nprofile…yvk2) but chose not to do anything about it.
Someone wrote a shell script to correct this. But it requires special permissions you can only grant via ADB. So I just used a text editor to replace Google's DNS resolvers with privacy-respecting ones gleaned from nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq276r74yjdughqx9rgtwtcsdw8quetk6tam89jn07qg2zsk0un64qgq37xe (nprofile…37xe)'s recommendations in my first link: editor /data/data/com.termux/files/usr/etc/resolv.conf
#TIL #dnsleak #terminal #android #app #privacy