Startling Strangers in Vreden, DIY Home Automation, and the German Word for Waking Up in the Middle of the Night with the Realization That You Left Your Server Unsecured - Thu, Jan 17, 2019
This is another find inspired by recent searches on Shodan. I saw searches “FHEM Home Automation” and I needed to know more.
Fhem Home Automation Server on 18.104.22.168
Every single result for FHEM was from Germany. So I picked the first one and got going. Looking up FHEM first on Google I found that it is an open source server software for doing home automation, built in perl and meant to be run on any kind of full time 24 /7 computer, like a Raspberry Pi. It was made in Germany but has full English documentation.
Since I read that the servers were telnet enabled I first tried connecting to this IP via telnet on port 23. It was closed, so then I did a port scan via
nmap, and wound up getting some errors that I still don’t fully understand.
➜ nmap 22.214.171.124 Starting Nmap 7.70 ( https://nmap.org ) at 2019-01-17 14:35 PST RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 Nmap scan report for 126.96.36.199 Host is up (0.22s latency). Not shown: 997 closed ports PORT STATE SERVICE 9/tcp filtered discard 5060/tcp open sip 8083/tcp open us-srv Nmap done: 1 IP address (1 host up) scanned in 1771.98 seconds
I didn’t get anywhere with 9 or 5060 but 8083 is hosting a web page and I could see it in the browser. Uh oh! No password on the telnet port? But what’s the telnet port, since the usual one wasn’t open? I went checking in the event logs to see if there were any clues. Aha! So it’s 7072. However when I tried to log in I got an immediate rejection, like the port had been configured to only accept connections from a specific IP. Maybe whatever machine this server is running on has a firewall that the server software isn’t acknowledging. There is quite a bit of information in the web page though, and I quickly got a bit uncomfortable with how much access I seemed to have. I seemed to be able to access house data like temperature, power load, fan speeds, and more. And not just for the current day, but for every day, going back to April 19 2016 (though the graphic visualizations are only for the current day). It seems like this home has a PV panel also and was documenting how much power it generated. And I seemed to be able to uh turn it off? And not only that but I could seemingly do things like… turn off the lights in the house? In taking that screenshot I accidentally clicked one of the lightbulbs on. I was suddenly struck with the idea that I’d possibly just woken this person up, since it was the middle of the night in Germany. Needless to say, I decided to stop there. See you tomorrow.
PS here’s my traveling
traceroute, from Cuties Coffee in Los Angeles to Vreden, Germany.
👻🌵🔮 $ traceroute 188.8.131.52 traceroute to 184.108.40.206 (220.127.116.11), 64 hops max, 52 byte packets 1 192.168.0.1 (192.168.0.1) 8.477 ms 3.167 ms 3.413 ms 2 18.104.22.168 (22.214.171.124) 19.861 ms * 13.392 ms 3 agg58.lsdwcaro01h.socal.rr.com (126.96.36.199) 13.529 ms 13.357 ms 21.556 ms 4 agg21.lamrcadq01r.socal.rr.com (188.8.131.52) 17.601 ms 20.589 ms 22.920 ms 5 agg28.lsancarc01r.socal.rr.com (184.108.40.206) 24.212 ms 28.416 ms 48.527 ms 6 bu-ether26.lsancarc0yw-bcr00.tbone.rr.com (220.127.116.11) 24.408 ms 23.611 ms 22.001 ms 7 bu-ether11.tustca4200w-bcr00.tbone.rr.com (18.104.22.168) 21.756 ms 21.032 ms bu-ether45.chctilwc00w-bcr00.tbone.rr.com (22.214.171.124) 24.091 ms 8 126.96.36.199 (188.8.131.52) 18.474 ms 26.681 ms 18.794 ms 9 * * * 10 ae0-3356.nyk10.core-backbone.com (184.108.40.206) 99.160 ms 102.602 ms 95.709 ms 11 ae3-2072.ams10.core-backbone.com (220.127.116.11) 217.299 ms 164.564 ms 189.938 ms 12 nl.ams01.epcan.de (18.104.22.168) 187.750 ms * 169.762 ms 13 * * * 14 22.214.171.124 (126.96.36.199) 194.505 ms !X 226.705 ms !X 194.739 ms !X