Security researchers have uncovered a flaw in Yahoo Mail that would have enabled hackers to snoop on user’s emails or use the accounts to spread viruses to other people.
Yahoo’s HackerOne bug bounty program was responsible for surfacing flaw, which was spotted by Finnish white hat Jouko Pynnonen, who was awarded $10,000 (£7,947) for his efforts.
The email company moved quickly to squash the bug before it could cause havoc through the use XXS (cross-site scripting) attacks.
However, Pynnonen discovered that this barrier could be breached by with an email including a custom HTML link. Upon opening the email, the code would immediately activate JavaScript to render a share button in the email but with broken HTML pointing to a whitelisted site. This enabled the code to sneak past the Yahoo Mail filter.
“As long as the URL pointed to a white-listed website such as YouTube, it was not further sanity checked or encoded. The value was used as is for setting a div innerHTML to create the button,” explained Pynnonen.
Using this technique, more malicious code could be injected into the HTML and cause malware and viruses to be spread without the Yahoo Mail filter blocking them.
“I tried creating an email with “abusive” data-* attributes and bingo!, found a pathological case pretty quickly.” Added Pynnonen, noting the scope of the attack vector he discovered at the year anniversary of the Yahoo Mail bug that had allowed malicious JavaScript code to be stuck into carefully crafted emails.
What was particularly notable about the bug was that the embedded HTML link did not need to be clicked by a user for the JavaScript code to be executed. As such, this vector of cyber attack could catch out people who are more savvy to the danger of clicking on dodgy links in emails.
Luckily for Yahoo, this bug was spotted before it has had time to be rigorously exploited, as one major hack attack and data leak this year has already caused major problems for Yahoo.
Are you a security expert? Try our quiz!
US regulator says Tesla's messaging on social media could lead drivers to believe 'Full Self-Driving'…
US lawmakers write to biggest chip equpment makers in US, Japan, Netherlands asking for data…
Investor optimism following Donald Trump re-election win pushes Nvidia to record high, adds 30 percent…
Dutch chip equipment maker ASML says 'fully recovered' from IT outage affecting operations worldwide and…
US federal judge finds Meta chief excutive Zuckerberg can't be held personally liable in child-addiction…
Chinese chip manufacturing giant SMIC says AI has helped boost revenues to record levels in…