Yahoo fixes a severe security vulnerability in Yahoo Mail

Security researcher uncovers new flaw in Yahoo Mail

Yahoo

A Yahoo Mail bug woud have allowed hackers to read people's email or create a virus infecting accounts, according to a security researcher who flagged the flaw to the company.

Yahoo paid Jouko Pynnonen of Klikki Oy, Finland, $10,000 for privately disclosing the flaw through its HackerOne bug bounty.

Advertisement - Article continues below

According to Pynnonen, the flaw was a cross-site scripting (XSS) attack and allowed an attacker to read a victim's email or create a virus infecting Yahoo Mail accounts, among other things.

"The attack required the victim to view an email sent by the attacker. No further interaction (such as clicking on a link or opening an attachment) was required," Pynnonen explained, adding that the flaw was similar to last year's Yahoo Mail bug, which similarly let an attacker compromise a user's account.

Email surveillance

While Yahoo filters HTML messages to make sure malicious code doesn't make it past the user's browser, the researcher found that the filters didn't catch all of the malicious data attributes, and by sending a specially crafted email, a hacker could trigger malicious JavaScript to be executed immediately.

The flaw was discovered when Pynnonen realised it was coming up to the year anniversary of last year's Yahoo Mail bug, which allowed malicious JavaScript code to be embedded in specially formatted emails.

Advertisement
Advertisement - Article continues below
Advertisement - Article continues below

"I decided to take another shot at it," he said. "I felt that finding another bug in basic HTML filtering seemed unlikely. However in the email composing view I noticed various attachment options to which I didn't give much attention last year."

Pynnonen composed an email containing different kinds of attachments and sent it to an external mailbox so he could inspect the 'raw' HTML this kind of email contains.

"What caught my eye were the data-* HTML attributes. First, I realised my last year's effort to enumerate HTML attributes allowed by Yahoo's filter didn't catch all of them," he said. "Second, since data-* HTML attributes are used to store application-specific data typically for JavaScript use, it seemed there was a new potential attack vector here. It would be possible to embed a number of HTML attributes that are passed through Yahoo's HTML filter and treated specially.

"I tried creating an email with "abusive" data-* attributes and bingo!, found a pathological case pretty quickly."

Advertisement - Article continues below

By inserting a quote symbol in the data-url value, he caused a broken HTML in the share button.

"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."

The flaw was reported to Yahoo Security via HackerOne on 12 November and fixed on 29 November. It's not the only time Yahoo Mail has been in the news this year, after a hacker offered the details of 200 million Mail accounts on the dark web in August.

Featured Resources

Navigating the new normal: A fast guide to remote working

A smooth transition will support operations for years to come

Download now

Putting a spotlight on cyber security

An examination of the current cyber security landscape

Download now

The economics of infrastructure scalability

Find the most cost-effective and least risky way to scale

Download now

IT operations overload hinders digital transformation

Clearing the path towards a modernised system of agreement

Download now
Advertisement

Recommended

Visit/security/ransomware/356292/university-of-california-gets-fleeced-by-hackers-for-114-million
ransomware

University of California gets fleeced by hackers for $1.14 million

30 Jun 2020
Visit/security/cyber-security/356289/australia-announces-135b-investment-in-cybersecurity
cyber security

Australia announces $1.35 billion investment in cyber security

30 Jun 2020
Visit/cloud/cloud-security/356288/csa-and-issa-form-cybersecurity-partnership
cloud security

CSA and ISSA form cyber security partnership

30 Jun 2020
Visit/business/policy-legislation/356215/senators-propose-a-bill-aimed-at-ending-warrant-proof-encryption
Policy & legislation

Senators propose a bill aimed at ending warrant-proof encryption

24 Jun 2020

Most Popular

Visit/laptops/29190/how-to-find-ram-speed-size-and-type
Laptops

How to find RAM speed, size and type

24 Jun 2020
Visit/security/vulnerability/356295/microsoft-patches-high-risk-flaws-that-can-be-exploited-with-a
vulnerability

Microsoft releases urgent patch for high-risk Windows 10 flaws

1 Jul 2020
Visit/security/34616/the-top-password-cracking-techniques-used-by-hackers
Security

The top 12 password-cracking techniques used by hackers

12 Jun 2020