Smartphone users looking for a quick charge in a public place could expose their devices to malicious data hackers.