Over half a million credit card details may have been compromised following a security breach at more than 4,000 ecommerce websites.