Connected Device Security Flaws: Common Vulnerabilities and How to Fix Them