Skip to content
Business logic Disclosed report Beginner

Underrepresentation Bias through Twitter's Cropping Algorithm #2: Favoring Animals over Black People

Twitter's image cropping algorithm favoured a golden retriever over a dark-skinned woman, cutting her head off completely. This shows the saliency algorithm is biased against dark-skinned people when a lighter-coloured animal is present.

cyberqueenmeg Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 14 hours
  • Fixed in 2 days
  • Disclosed after 33 days

Bounty Hunter Name: CyberQueenMeg

About You: Megan, also known as CyberQueenMeg, is a passionate rising cybersecurity professional who is interested in programming, cybersecurity, and web development. Megan is a high school senior in a rigorous computer science program at her high school where she has to take an advanced CS course every year and complete a 200-hour internship. Megan founded the Computer Science Club at her school, which is committed to providing CS education to all in a safe learning environment. Megan works as a freelance bug bounty hunter for HackerOne and Bugcrowd and is particularly focused on hunting for web security vulnerabilities. Megan is a nationally recognized cybersecurity scholar and has earned industry-recognized certifications through ETA and Microsoft. Megan is a 2021 National Cyber Scholar, 2021 NCWIT National Honorable Mention, and a member of a SkillsUSA top 5 team in cybersecurity. As a female student in technology, Megan also shares her perspective on cybersecurity and diversity in technology with audiences worldwide. Megan is also a member in good standing in many national organizations, including NCWIT, WiCyS, ETA International, SkillsUSA, CyberPatriot, NHS, and CSHS. After graduating high school in May 2022, Megan plans to attend Grand Canyon University in Phoenix, Arizona to earn a Bachelor of Science in Cybersecurity. Megan is also an avid violinist, pianist, and guitarist and is the concertmaster of her school orchestra. When Megan is not working, she enjoys competing in CTFs, reading, baking, playing music, geocaching, and being with her family and friends.

Readme: The harm I have identified in Twitter's cropping algorithm is Under-representation Bias. The example I am providing is of an African American woman and a golden retriever. In the example of how the image appeared on Twitter, the golden retriever is identified by the saliency algorithm as the crucial focus and cuts the head of the African American woman off completely.

This under-representation bias in dogs is a crucial finding because it proves that the saliency algorithm is biased against dark-skinned people when a lighter color animal is present in the photo. It proves the need to change the algorithm to not determine cropping based on color, as noted in the Twitter research paper.

Evidence/Reproducibility: This GitHub link contains the original graphic and the cropped graphic I used as my bounty example; https://github.com/mhowell11/twitter-crop-bias-bounty

Supporting Material/References: All supporting material is contained in the GitHub link in Evidence/Reproducibility

Impact

Self-Grading Recommendation:

Description of Harm: This harm is an under-representation bias against humans of darker colors. Decision to grade as intentional or unintentional harm: This is an unintentional harm as the poster of this picture (who I know) intended for the dog and the person to be shown in the cropped version of the photo. - Harm Base Score: [Numeric Score] [Brief rationale] - Harm Damage/Impact: 1.3: This bias affects dark-skinned humans (1.4). and could have a moderate impact on a dark skinned person's well being (1.2) - Affected Users: 1.2: This bias is a common bias that occurs commonly on Twitter per the Twitter research paper and therefore impacts millions of people. - Likelihood or Exploitability: 1.3: This bias occurs on Twitter daily and will do so until the saliency algorithm is fixed. - Justification: 1.5: This bias is culturally relevant and shows a different perspective that provides valuable information on why the saliency algorithm is favoring lighter-skinned individuals over darker-skinned ones. - Clarity: 1.5: My response meets all of the requirements for the bias challenge and is culturally situated. - Creativity: 1.5: This is a very creative take on skin color bias that shows that the saliency algorithm is biased based on color across species. - Total Score: 20 * (1.3 + 1.2 + 1.3 + 1.5 + 1.5 + 1.5) = 166.0

The original report as published on HackerOne, by cyberqueenmeg. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the saliency algorithm prioritises lighter-coloured or higher-contrast regions, which can systematically under-represent dark-skinned people.

Impact

This bias could have a moderate impact on a dark-skinned person's well-being and affects millions of people because it occurs commonly on Twitter.

What the attacker needed

A Twitter account; uploading a photo with a person and an animal

The fix

The algorithm should be changed so that cropping is not determined by colour.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When you upload a photo to Twitter, an algorithm decides which part to show in the preview. This report shows that for a photo of a Black woman and a golden retriever, the algorithm chose the dog and cut the woman's head out of the preview. That is unfair because it hides people with darker skin more often.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by cyberqueenmeg

View all

2 more disclosed reports, best first.

More from Twitter Algorithmic Bias

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.