A newly discovered bug in widely used web encryption technology has made data on many of the world’s major websites vulnerable to theft by hackers.