According to media reports, like this one by Business Insider, one reason your browser's default search engine switches to Yahoo may be malware. The popular search engine has nothing to do with the process though — the redirect is there to quickly take you through a slew of transitional domains that may or may not be collecting data about your device and internet activity, and then landing you to the popular search engine.