Twitter, Tumblr and Pinterest have been caught up in a hacking attack on a firm. (Reuters)