What security vulnerabilities are associated with open ports, and how do you conduct port scanning safely?