homepage
Open menu
Go one level top
  • Train and Certify
    Train and Certify

    Immediately apply the skills and techniques learned in SANS courses, ranges, and summits

    • Overview
    • Courses
      • Overview
      • Full Course List
      • By Focus Areas
        • Cloud Security
        • Cyber Defense
        • Cybersecurity and IT Essentials
        • DFIR
        • Industrial Control Systems
        • Offensive Operations
        • Management, Legal, and Audit
      • By Skill Levels
        • New to Cyber
        • Essentials
        • Advanced
        • Expert
      • Training Formats
        • OnDemand
        • In-Person
        • Live Online
      • Course Demos
    • Training Roadmaps
      • Skills Roadmap
      • Focus Area Job Roles
        • Cyber Defence Job Roles
        • Offensive Operations Job Roles
        • DFIR Job Roles
        • Cloud Job Roles
        • ICS Job Roles
        • Leadership Job Roles
      • NICE Framework
        • Security Provisionals
        • Operate and Maintain
        • Oversee and Govern
        • Protect and Defend
        • Analyze
        • Collect and Operate
        • Investigate
        • Industrial Control Systems
    • GIAC Certifications
    • Training Events & Summits
      • Events Overview
      • Event Locations
        • Asia
        • Australia & New Zealand
        • Latin America
        • Mainland Europe
        • Middle East & Africa
        • Scandinavia
        • United Kingdom & Ireland
        • United States & Canada
      • Summits
    • OnDemand
    • Get Started in Cyber
      • Overview
      • Degree and Certificate Programs
      • Scholarships
    • Cyber Ranges
  • Manage Your Team
    Manage Your Team

    Build a world-class cyber team with our workforce development programs

    • Overview
    • Why Work with SANS
    • Group Purchasing
    • Build Your Team
      • Team Development
      • Assessments
      • Private Training
      • Hire Cyber Professionals
      • By Industry
        • Health Care
        • Industrial Control Systems Security
        • Military
    • Leadership Training
  • Security Awareness
    Security Awareness

    Increase your staff’s cyber awareness, help them change their behaviors, and reduce your organizational risk

    • Overview
    • Products & Services
      • Security Awareness Training
        • EndUser Training
        • Phishing Platform
      • Specialized
        • Developer Training
        • ICS Engineer Training
        • NERC CIP Training
        • IT Administrator
      • Risk Assessments
        • Knowledge Assessment
        • Culture Assessment
        • Behavioral Risk Assessment
    • OUCH! Newsletter
    • Career Development
      • Overview
      • Training & Courses
      • Professional Credential
    • Blog
    • Partners
    • Reports & Case Studies
  • Resources
    Resources

    Enhance your skills with access to thousands of free resources, 150+ instructor-developed tools, and the latest cybersecurity news and analysis

    • Overview
    • Webcasts
    • Free Cybersecurity Events
      • Free Events Overview
      • Summits
      • Solutions Forums
      • Community Nights
    • Content
      • Newsletters
        • NewsBites
        • @RISK
        • OUCH! Newsletter
      • Blog
      • Podcasts
      • Summit Presentations
      • Posters & Cheat Sheets
    • Research
      • White Papers
      • Security Policies
    • Tools
    • Focus Areas
      • Cyber Defense
      • Cloud Security
      • Digital Forensics & Incident Response
      • Industrial Control Systems
      • Cyber Security Leadership
      • Offensive Operations
  • Get Involved
    Get Involved

    Help keep the cyber community one step ahead of threats. Join the SANS community or begin your journey of becoming a SANS Certified Instructor today.

    • Overview
    • Join the Community
    • Work Study
    • Teach for SANS
    • CISO Network
    • Partnerships
    • Sponsorship Opportunities
  • About
    About

    Learn more about how SANS empowers and educates current and future cybersecurity practitioners with knowledge and skills

    • SANS
      • Overview
      • Our Founder
      • Awards
    • Instructors
      • Our Instructors
      • Full Instructor List
    • Mission
      • Our Mission
      • Diversity
      • Scholarships
    • Contact
      • Contact Customer Service
      • Contact Sales
      • Press & Media Enquiries
    • Frequent Asked Questions
    • Customer Reviews
    • Press
    • Careers
  • Contact Sales
  • SANS Sites
    • GIAC Security Certifications
    • Internet Storm Center
    • SANS Technology Institute
    • Security Awareness Training
  • Search
  • Log In
  • Join
    • Account Dashboard
    • Log Out
  1. Home >
  2. Blog >
  3. Following a Trail of Breadcrumbs - A Design Flaw in Yahoo! Mail
370x370_Frank-Kim.jpg
Frank Kim

Following a Trail of Breadcrumbs - A Design Flaw in Yahoo! Mail

March 2, 2010

It's my pleasure to post this guest blog from my colleague and fellow security professional, Khash Kiani, about an interesting design flaw in Yahoo! Mail.

Intent

The ultimate goal of this exercise was to reveal a few fundamental design flaws with the authentication mechanism of Yahoo! Mail, more specifically its password reset scheme.

The exercise also intended to bring awareness to one of the most often used attack vectors of low-tech hacking: find a simple technical flaw in an application and exploit it via manual techniques. This case study illustrates how social engineers play with people's trust and utilize basic techniques to gain information about individuals; information that would ultimately be leveraged to gain unauthorized access to Yahoo! Mail accounts.

Find the weak link.

The plan for this exercise was to use one of the most fundamental tactics of social engineering: obtaining information that is mostly considered harmless, but can be leveraged to gain access to something sensitive, such as an email account. Yahoo! Mail's Forgot Password feature provided a path of least resistance for this exercise. Secret questions, one of the most common ways of resetting passwords, are just as important as the password itself; allowing the user to reset the password, and therefore act as another form of authentication.

Sarah Palin is a great example of how a hacker can use secret questions to compromise an account. Palin used a Yahoo! email address, gov.palin@yahoo.com. But like most people, she selected an easy-to-guess question, "Where did you meet your husband?". This question was asked right after the user was presented with "What is your Birthday?" and "What is your Postal Code?" questions; all public and the majority available on her Wikipedia page.

The Attack

Target: Jordan. A casual acquaintance of the attacker.

Step I

Compromise personal information to answer secret questions of Yahoo!'s forgot password feature: There are many different ways of gaining access to information needed for this exploit. Some of the options available to a social engineer can range from using the telephone or the Internet to obtain the information.

Question 1: "What town was your father born in?"

Compromise: Jordan's parents were born in Venezuela. The attacker performed a search for the largest cities in that country. The answer was the third one on the list.

breadcrumbs

Question 2: "What street did you grow up on?"

Compromise: From the free People Search Engine sites, the attacker used Zabasearch.com and typed in the name and the state and received a list of all potential addresses. The first 4 attempts failed, but the 5th one succeeded.

peoplesearchengine

And that's all. Using the above information the attacker was able to reset the password and get into the email account.

yahoo

Once inside the Yahoo! account, the attacker was able to fully compromise the account by changing all of Jordan's password reset information such as the secret questions, the email address where the password reset link is sent to, and even change the mobile number associated with the account.

Step II

Up the ante: Once inside target's Yahoo! account, the attacker searched for the keyword "password" and found all previous password reset links sent to this account from various sites such as MySpace, and Facebook. The attacker was then able to go to any of these sites and utilize their "forgot password feature" to reset the password via the compromised Yahoo! account.

But why stop there?

Step III

Compromise the rest: Once the attacker had compromised one email account, it was fairly easy to access the rest. Most peoples' email accounts are linked via the password reset functionality. Yahoo!, Gmail, Hotmail and others give the user the ability to add at least one additional email address where a password reset form can be sent to. So once one of Jordan's email accounts was accessed and fully compromised, the rest followed. Again, once inside, each account's password recovery questions and linked email address was replaced, preventing the target from resetting her own passwords.

Step IV

Inform the target: By now the attacker has replaced Jordan's password on two of her Yahoo! accounts, Gmail account, Facebook, Myspace and Paypal. This was probably a good time to stop and inform his target about the compromise.

Elapsed time, 40 minutes. Game over.

Defense Against Retaliation

Knowing his target's personality and expertise, the attacker knew that Jordan was going to retaliate against his email accounts. So he took the following measures, in order to ensure she wasn't able to exploit him in a similar fashion:

  • The attacker visited his Gmail and a few other web sites to make sure that the password reset features did not utilize his not-so-secure Yahoo! Mail account.
  • The attacker strengthened his Yahoo! Mail secret questions and answers with something only he would be able to answer. For instance:
    • Question: "Pwd is?"
    • Answer: "A strong pass phrase"

While testing these security controls, the attacker noticed a several fundamental design flaws in Yahoo! Mail's password reset feature. Unfortunately, these issues prevented him from securing his own account.

Flaws

Password Reset Flaw #1

In Yahoo! Mail, users are able to modify their secret questions via the "Update password reset info" feature. However, during the password recovery process, users are given the option to revert back to the original questions by clicking the "This is not my question" link on the "Please answer your secret question" page. As a result, you can never replace your original secret questions.

Yahoo_Notmyquestion

Clicking "This is not my question" displays the original secret question

secretquestion_2

What if you kept the original questions, but replaced the answers with something stronger or more obscure? For instance:

  • Question: "Where did you spend your honeymoon"
  • Original answer: "France"
  • A more secure answer: "my favorite country in Europe"

But astoundingly that is not possible due to another flaw.

Password Reset Flaw #2

In Yahoo!, when changing the answer to a secret question, the functionality is designed in such way that your new answer does not "replace" the old one; instead the new answer is added to the list.

With this issue, users end up with a collection of identical questions, and different answers where any of them will satisfy that specific question.

Basically, the original, default, insecure questions and answers were still accessible. And that's exactly how Jordan got in!

The following two screenshots demonstrate that it is impossible to strengthen the answer to an existing secret question.

Secretquestion_3 secretquestion_4

There is more

With older Yahoo! Accounts, the first secret question is the account holder's registered Birthday, Country and Postal Code. Many people still maintain this set as their first secret question. Some of this information could be retrieved from social networking sites like Facebook or by performing a quick search on PeopleFinders.com or Zabasearch.com. Alternatively, the attacker can revert to basic social engineering tactics to compromise this information.

Validate_Question

For example, a new target, Jennifer, still maintained her original default secret questions: Birthday, Country, and Postal Code; followed by "What is My Full Name?". Some basic recon about the target reveals that she lived in Tacoma at some point during her high school years. The attacker then creates an anonymous Yahoo! account with the Yahoo! ID Linda1_Tacoma.

Using a Yahoo! IM client, the attacker "Added a Contact" which Jennifer accepted. This is not guaranteed to work. If Jennifer had rejected the request, the attacker could either try again later with a different Yahoo! ID, or move on to another target.

chatroom

The attacker has retrieved Jennifer's Date of Birth, a small list of Zip Codes to choose from, and her Last Name. With that information her Yahoo! account can be compromised. The attacker also used her Full Name and Location Information to compromise her Hotmail account.

Key Points:

Regardless of what form of communication the social engineers use to gain information from the target, they always follow a few key principles:

  • Establish trust before fully engaging the target.
  • Always bury the key questions among innocent ones.
  • Never end the conversation after getting key questions answered.
  • Don't "burn your mark". Sometimes you may need to slow down or stop asking questions altogether and try later.


Conclusion

After discussing these issues with Yahoo!'s security team, there seems to be one main motivation behind these design decisions: Giving the "victim" the ability to regain access to a compromised account via her "original" secret questions that the attacker has no way of changing.

These solutions could be effective for a scenario where the attacker has learned a victim's password, but not the account's secret questions. However, the unfortunate side affect of these design decisions are the flaws we have described above.

These questionable design decisions in the Password Recovery scheme highlight the importance of injecting thorough security throughout the Software Development Life Cycle (SDLC). General security best practices always encourage that security reviews and testing should be integrated throughout the SDLC. Perhaps with the proper amount of security review during the design phase, and understanding the ease of exploitation via secret questions, these issues would have been detected and addressed early on.

These exercises show us how easily someone can access another's email and other accounts that are designed in a similar fashion. As a general practice, everyone should delete old email accounts that aren't needed. Make your online presence as solid as possible, and avoid leaving online breadcrumbs all over the place. You never know who might want to cause you some headache down the road by compromising your accounts.

Khash Kiani
khashsec@gmail.com

Share:
TwitterLinkedInFacebook
Copy url Url was copied to clipboard
Subscribe to SANS Newsletters
Receive curated news, vulnerabilities, & security awareness tips
United States
Canada
United Kingdom
Spain
Belgium
Denmark
Norway
Netherlands
Australia
India
Japan
Singapore
Afghanistan
Aland Islands
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua and Barbuda
Argentina
Armenia
Aruba
Austria
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belize
Benin
Bermuda
Bhutan
Bolivia
Bonaire, Sint Eustatius, and Saba
Bosnia And Herzegovina
Botswana
Bouvet Island
Brazil
British Indian Ocean Territory
Brunei Darussalam
Bulgaria
Burkina Faso
Burundi
Cambodia
Cameroon
Cape Verde
Cayman Islands
Central African Republic
Chad
Chile
China
Christmas Island
Cocos (Keeling) Islands
Colombia
Comoros
Cook Islands
Costa Rica
Croatia (Local Name: Hrvatska)
Curacao
Cyprus
Czech Republic
Democratic Republic of the Congo
Djibouti
Dominica
Dominican Republic
East Timor
East Timor
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Ethiopia
Falkland Islands (Malvinas)
Faroe Islands
Fiji
Finland
France
French Guiana
French Polynesia
French Southern Territories
Gabon
Gambia
Georgia
Germany
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guernsey
Guinea
Guinea-Bissau
Guyana
Haiti
Heard And McDonald Islands
Honduras
Hong Kong
Hungary
Iceland
Indonesia
Iraq
Ireland
Isle of Man
Israel
Italy
Jamaica
Jersey
Jordan
Kazakhstan
Kenya
Kiribati
Korea, Republic Of
Kosovo
Kuwait
Kyrgyzstan
Lao People's Democratic Republic
Latvia
Lebanon
Lesotho
Liberia
Liechtenstein
Lithuania
Luxembourg
Macau
Macedonia
Madagascar
Malawi
Malaysia
Maldives
Mali
Malta
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Mexico
Micronesia, Federated States Of
Moldova, Republic Of
Monaco
Mongolia
Montenegro
Montserrat
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
Netherlands Antilles
New Caledonia
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
Northern Mariana Islands
Oman
Pakistan
Palau
Palestine
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Pitcairn
Poland
Portugal
Puerto Rico
Qatar
Reunion
Romania
Russian Federation
Rwanda
Saint Bartholemy
Saint Kitts And Nevis
Saint Lucia
Saint Martin
Saint Vincent And The Grenadines
Samoa
San Marino
Sao Tome And Principe
Saudi Arabia
Senegal
Serbia
Seychelles
Sierra Leone
Sint Maarten
Slovakia
Slovenia
Solomon Islands
South Africa
South Georgia and the South Sandwich Islands
South Sudan
Sri Lanka
St. Helena
St. Pierre And Miquelon
Suriname
Svalbard And Jan Mayen Islands
Swaziland
Sweden
Switzerland
Taiwan
Tajikistan
Tanzania
Thailand
Togo
Tokelau
Tonga
Trinidad And Tobago
Tunisia
Turkey
Turkmenistan
Turks And Caicos Islands
Tuvalu
Uganda
Ukraine
United Arab Emirates
United States Minor Outlying Islands
Uruguay
Uzbekistan
Vanuatu
Vatican City
Venezuela
Vietnam
Virgin Islands (British)
Virgin Islands (U.S.)
Wallis And Futuna Islands
Western Sahara
Yemen
Yugoslavia
Zambia
Zimbabwe

By providing this information, you agree to the processing of your personal data by SANS as described in our Privacy Policy.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Tags:
  • DevSecOps

Related Content

Blog
powershell_option_340x340.jpg
Cyber Defense, DevSecOps, Digital Forensics and Incident Response, Cybersecurity and IT Essentials, Penetration Testing and Red Teaming
July 15, 2022
Month of PowerShell: Working with PowerShell Log Files
In this article we'll look at how we can leverage PowerShell's object-passing pipeline to parse and retrieve data from an IIS web server log file.
370x370_Joshua-Wright.jpg
Joshua Wright
read more
Blog
CloudSecNext Summit Visual Summary
Cloud Security, DevSecOps
May 3, 2022
A Visual Summary of SANS CloudSecNext Summit 2022
On May 3-4, thousands from around the globe tuned in for the SANS CloudSecNext Summit. We invited Ashton Rodenhiser to create graphic recordings of our Summit presentations. If you missed a talk or are looking to view the SANS CloudSecNext Summit through a visual lens, take a look at the recordings...
370x370-person-placeholder.png
Alison Kim
read more
Blog
DevSecOps
May 4, 2015
2015 State of Application Security: Closing the Gap
The 2015 SANS State of Application Security Analyst Paper and webcasts are complete. This year, Jim Bird, the lead author of the SANS Application Security Survey series, Frank Kim, and I all participated in writing the questions, analyzing the results, drafting the paper, and preparing the webcast...
Eric_Johnson_370x370.png
Eric Johnson
read more
  • Register to Learn
  • Courses
  • Certifications
  • Degree Programs
  • Cyber Ranges
  • Job Tools
  • Security Policy Project
  • Posters & Cheat Sheets
  • White Papers
  • Focus Areas
  • Cyber Defense
  • Cloud Security
  • Cybersecurity Leadership
  • Digital Forensics
  • Industrial Control Systems
  • Offensive Operations
Subscribe to SANS Newsletters
Receive curated news, vulnerabilities, & security awareness tips
United States
Canada
United Kingdom
Spain
Belgium
Denmark
Norway
Netherlands
Australia
India
Japan
Singapore
Afghanistan
Aland Islands
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua and Barbuda
Argentina
Armenia
Aruba
Austria
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belize
Benin
Bermuda
Bhutan
Bolivia
Bonaire, Sint Eustatius, and Saba
Bosnia And Herzegovina
Botswana
Bouvet Island
Brazil
British Indian Ocean Territory
Brunei Darussalam
Bulgaria
Burkina Faso
Burundi
Cambodia
Cameroon
Cape Verde
Cayman Islands
Central African Republic
Chad
Chile
China
Christmas Island
Cocos (Keeling) Islands
Colombia
Comoros
Cook Islands
Costa Rica
Croatia (Local Name: Hrvatska)
Curacao
Cyprus
Czech Republic
Democratic Republic of the Congo
Djibouti
Dominica
Dominican Republic
East Timor
East Timor
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Ethiopia
Falkland Islands (Malvinas)
Faroe Islands
Fiji
Finland
France
French Guiana
French Polynesia
French Southern Territories
Gabon
Gambia
Georgia
Germany
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guernsey
Guinea
Guinea-Bissau
Guyana
Haiti
Heard And McDonald Islands
Honduras
Hong Kong
Hungary
Iceland
Indonesia
Iraq
Ireland
Isle of Man
Israel
Italy
Jamaica
Jersey
Jordan
Kazakhstan
Kenya
Kiribati
Korea, Republic Of
Kosovo
Kuwait
Kyrgyzstan
Lao People's Democratic Republic
Latvia
Lebanon
Lesotho
Liberia
Liechtenstein
Lithuania
Luxembourg
Macau
Macedonia
Madagascar
Malawi
Malaysia
Maldives
Mali
Malta
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Mexico
Micronesia, Federated States Of
Moldova, Republic Of
Monaco
Mongolia
Montenegro
Montserrat
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
Netherlands Antilles
New Caledonia
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
Northern Mariana Islands
Oman
Pakistan
Palau
Palestine
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Pitcairn
Poland
Portugal
Puerto Rico
Qatar
Reunion
Romania
Russian Federation
Rwanda
Saint Bartholemy
Saint Kitts And Nevis
Saint Lucia
Saint Martin
Saint Vincent And The Grenadines
Samoa
San Marino
Sao Tome And Principe
Saudi Arabia
Senegal
Serbia
Seychelles
Sierra Leone
Sint Maarten
Slovakia
Slovenia
Solomon Islands
South Africa
South Georgia and the South Sandwich Islands
South Sudan
Sri Lanka
St. Helena
St. Pierre And Miquelon
Suriname
Svalbard And Jan Mayen Islands
Swaziland
Sweden
Switzerland
Taiwan
Tajikistan
Tanzania
Thailand
Togo
Tokelau
Tonga
Trinidad And Tobago
Tunisia
Turkey
Turkmenistan
Turks And Caicos Islands
Tuvalu
Uganda
Ukraine
United Arab Emirates
United States Minor Outlying Islands
Uruguay
Uzbekistan
Vanuatu
Vatican City
Venezuela
Vietnam
Virgin Islands (British)
Virgin Islands (U.S.)
Wallis And Futuna Islands
Western Sahara
Yemen
Yugoslavia
Zambia
Zimbabwe

By providing this information, you agree to the processing of your personal data by SANS as described in our Privacy Policy.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
  • © 2023 SANS™ Institute
  • Privacy Policy
  • Contact
  • Careers
  • Twitter
  • Facebook
  • Youtube
  • LinkedIn