Yahoo! has confirmed a major data breach of its systems, with the number of users affected standing at 500 million.