Research: Millions of smart devices vulnerable to hacking