Skip to content
Business logic Write-up Intermediate

[$500] How I was able to give verification badge to any YouTube channel and bypass needed requirements

The channel verification form sent the channel ID twice: once in a machine-readable header and once in human-readable content. By putting a non-eligible channel ID in the header and an eligible channel ID in the content, an attacker could get a verification badge for a channel that did not meet the subscriber requirement.

Vojtech Cekal Follow

Published on vojtechcekal.medium.com

Bounty$500 View original

Vojtech Cekal

Vojtech Cekal, on vojtechcekal.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

YouTube verification badges are the checkmark symbol shown next to a channel or account name. They exist to distinguish genuine celebrity or company accounts from impersonators, and so to reduce impersonation-driven fraud. The report concerns the channel verification application flow, which lives on support.google.com and is reached from a YouTube account. The main requirement described is a channel with 100,000+ subscribers linked to the Google account, which gates access to the application form. Google's design gates access to the application form on that requirement: without an eligible channel the account sees an ineligible message, and with one it sees an eligible message and an "Apply now" button.

Setup

The researcher needed a Google account with a channel of 100,000+ subscribers linked to it, because that is what unlocks the form. The tooling was a proxy such as Burp Suite to intercept the submission request. The report does not give further environment details beyond the request headers it shows (a Chromium-based browser on macOS).

Finding it

Clicking "Apply now" opens a form with two fields:

  • Channel name: the current name of the channel.
  • Channel ID: the ID of the channel, usually found in the URL or at youtube.com/account_advanced.

After filling both fields and clicking Submit, the browser sends a POST to /apis/cufinsert on support.google.com. The researcher intercepted it and found the body odd in two ways.

First, values that should be derived server-side are supplied client-side: subject_line, account_email and many other fields are all in the body. The email in particular should come from the session, not from a field the client controls.

Second, the crucial fields (channel_name, channel_id and others) appear twice. The first batch sits under header, which the researcher takes to be the part consumed by the backend system. The second batch sits under content, which the researcher takes to be the part shown to the employees who review the application and then act on it. That duplication is what the researcher exploited.

Exploitation

Step 1: capture the submission

With a valid, eligible channel selected in the form, the submission request looks approximately like this (the researcher removed most cookies and some private information, so this is a shortened version):

The important parts are the resource.header array, which carries the machine-readable field values, and resource.content, a plain-text rendering of the same values that the reviewing employee reads. Both contain channel_name and channel_id.

Step 2: put the ineligible channel in the header

The researcher inserted the channel ID of a channel that did not meet the criteria into the header batch:

HTTP
"resource":{"form_id":"channel_verification","header":[{"name":"channel_name","value":"Japan"},{"name":"channel_id","value":"UCPu6Px6WxDjRgUNODpecwLg"},{"name":"subject_line","value":"Channel Verification Application"},

UCPu6Px6WxDjRgUNODpecwLg is the ID of the channel with fewer than 100,000 subscribers, reachable at https://youtube.com/channel/UCPu6Px6WxDjRgUNODpecwLg. This is the channel that will actually receive the badge.

Step 3: put an eligible channel in the content

In the content field, the researcher left a different ID, that of a channel which did meet the criteria:

HTTP
"content":"channel_name: Japan\nchannel_id: UC-9-kyTW8ZkZNDHQJ6FgpwQ\nsubject_line: Channel Verification Application

UC-9-kyTW8ZkZNDHQJ6FgpwQ is the ID of the well-known auto-generated "Music" channel at https://youtube.com/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ.

Step 4: submit and observe the outcome

The employees reviewing the request saw an application for UC-9-kyTW8ZkZNDHQJ6FgpwQ, while the request was in fact for UCPu6Px6WxDjRgUNODpecwLg. There was no validation that the applicant actually owned the channel being verified. The reviewers approved the application, and the system then assigned the badge to UCPu6Px6WxDjRgUNODpecwLg. The researcher notes that the badge was still on the channel at the time of writing.

Root cause

The submission body carries the same logical fields twice, in two representations that are not cross-checked: header (consumed by the backend) and content (read by the human reviewer). Because the two can disagree, the reviewer's decision is made on one channel while the system acts on another. Compounding this, the flow does not verify that the applicant owns the channel named in the request, so an approval based on a convincing but unrelated channel is enough to get the badge applied to the attacker's channel. The client-side account_email and similar fields show the same pattern of trusting client-supplied values that should be derived from the session. The report says there was no validation that the applicant owned the channel being verified.

Impact

An attacker with an eligible channel (100,000+ subscribers) linked to their Google account can obtain a verification badge for another channel, including one below the subscriber threshold, by naming the eligible channel in content and the target channel in header. The badge is then assigned to the target channel by the system after human approval. The report does not describe further consequences beyond the badge being granted and remaining in place.

Fix

The evident fix is to derive the channel identity from a single authoritative source server-side, cross-check header and content so they cannot disagree, and verify ownership of the channel being verified before applying a badge.

Variants to test

  1. Duplicate field representations: look for forms where the same value appears in a machine-readable array and a human-readable text blob. A positive result is a submission where the two disagree and the backend acts on one while the reviewer sees the other.
  2. Client-supplied identity fields: check whether account_email, subject lines or similar are taken from the body rather than the session. A positive result is a request where changing the field changes the outcome without any server-side rejection.
  3. Ownership checks on approval flows: submit a request naming a channel you do not own. A positive result is an approval or badge assignment without any ownership verification.
  4. Threshold-gated features: for any feature gated on a metric (subscribers, followers, spend), try supplying an eligible entity in the reviewer-facing field and an ineligible one in the system-facing field. A positive result is the ineligible entity receiving the benefit.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

What happened, in plain words

YouTube gives a verification badge (the checkmark next to a channel name) to channels that meet certain requirements. The main requirement is having at least 100,000 subscribers. The badge helps viewers know that a channel is genuine and not an impersonator.

The researcher found a way to give that badge to a YouTube channel with fewer than 100,000 subscribers. He did this by taking advantage of the fact that the application form sends the same information twice: once in a part that the computer system reads, and once in a part that a human employee reads. By putting a channel that meets the requirements in the human-readable part and a channel that does not meet the requirements in the system-readable part, he tricked the employee into approving the application for the wrong channel. The system then gave the badge to the channel that did not meet the requirements.

He reported the issue to Google and received a $500 bounty. The badge was still on the channel when he wrote the report.

Background: what is a verification badge?

A verification badge is the checkmark symbol that appears next to a name or username on many platforms. It is used to show that an account belongs to a real celebrity, company, or public figure, and to make it harder for impostors to pretend to be them. The badge helps viewers tell genuine accounts apart from potential impersonators.

On YouTube, to get a verification badge, you need a channel with at least 100,000 subscribers linked to your Google account. Google's system checks this: if you do not have such a channel, you see a message saying you are not eligible. If you do have one, you see a message saying you are eligible and a button that says "Apply now".

Setting up

To try this, the researcher needed a Google account with a channel that has 100,000 or more subscribers linked to it. That is what unlocks the application form. He also used a tool called a proxy, such as Burp Suite, to intercept the request that the browser sends when the form is submitted. A proxy sits between your browser and the website, letting you see and change the data that is sent back and forth.

The report does not give more details about the setup, other than the request headers, which show a Chromium-based browser on macOS.

Finding the vulnerability

When you click "Apply now", a form appears with two fields:

  • Channel name: the current name of the channel.
  • Channel ID: the unique identifier of the channel. You can usually find it in the channel's URL or at youtube.com/account_advanced.

After filling in both fields and clicking Submit, the browser sends a POST request to /apis/cufinsert on support.google.com. The researcher intercepted this request and noticed two strange things.

First, some values that should be determined by the server are instead supplied by the browser. For example, subject_line, account_email, and many other fields are included in the request body. The email address, in particular, should come from your login session, not from a field that the browser can change.

Second, the important fields (channel_name, channel_id, and others) appear twice. The first set is under header, which the researcher believes is the part that the backend system uses. The second set is under content, which is the part shown to the human employees who review the application. That duplication is what the researcher exploited.

Exploitation

Step 1: capture the submission

With a valid, eligible channel selected in the form, the submission request looks approximately like this. The researcher removed most cookies and some private information, so this is a shortened version:

This is an HTTP request. The first line tells the server what kind of request it is (POST), the path (/apis/cufinsert), and the HTTP version. The following lines are headers, which carry extra information like cookies (small pieces of data stored by your browser to identify your session) and the content type. The body of the request is the JSON object that starts with {"common_params":.... JSON is a way to format data as text, using curly braces for objects and square brackets for arrays.

The important parts are the resource.header array, which contains the machine-readable field values, and resource.content, a plain-text version of the same values that the reviewing employee reads. Both contain channel_name and channel_id.

Step 2: put the ineligible channel in the header

The researcher inserted the channel ID of a channel that did not meet the criteria into the header batch:

HTTP
"resource":{"form_id":"channel_verification","header":[{"name":"channel_name","value":"Japan"},{"name":"channel_id","value":"UCPu6Px6WxDjRgUNODpecwLg"},{"name":"subject_line","value":"Channel Verification Application"},

UCPu6Px6WxDjRgUNODpecwLg is the ID of the channel with fewer than 100,000 subscribers, reachable at https://youtube.com/channel/UCPu6Px6WxDjRgUNODpecwLg. This is the channel that will actually receive the badge.

Step 3: put an eligible channel in the content

In the content field, the researcher left a different ID, that of a channel which did meet the criteria:

HTTP
"content":"channel_name: Japan\nchannel_id: UC-9-kyTW8ZkZNDHQJ6FgpwQ\nsubject_line: Channel Verification Application

UC-9-kyTW8ZkZNDHQJ6FgpwQ is the ID of the well-known auto-generated "Music" channel at https://youtube.com/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ.

Step 4: submit and observe the outcome

The employees reviewing the request saw an application for UC-9-kyTW8ZkZNDHQJ6FgpwQ, while the request was in fact for UCPu6Px6WxDjRgUNODpecwLg. There was no validation that the applicant actually owned the channel being verified. The reviewers approved the application, and the system then assigned the badge to UCPu6Px6WxDjRgUNODpecwLg. The researcher notes that the badge was still on the channel at the time of writing.

Root cause

The submission body carries the same logical fields twice, in two representations that are not cross-checked: header (used by the backend) and content (read by the human reviewer). Because the two can disagree, the reviewer's decision is made on one channel while the system acts on another. Compounding this, the flow does not verify that the applicant owns the channel named in the request, so an approval based on a convincing but unrelated channel is enough to get the badge applied to the attacker's channel. The client-side account_email and similar fields show the same pattern of trusting client-supplied values that should be derived from the session. The report says there was no validation that the applicant owned the channel being verified.

Impact

An attacker with an eligible channel (100,000+ subscribers) linked to their Google account can obtain a verification badge for another channel, including one below the subscriber threshold, by naming the eligible channel in content and the target channel in header. The badge is then assigned to the target channel by the system after human approval. The report does not describe further consequences beyond the badge being granted and remaining in place.

Fix

The evident fix is to derive the channel identity from a single authoritative source server-side, cross-check header and content so they cannot disagree, and verify ownership of the channel being verified before applying a badge.

Variants to test

  1. Duplicate field representations: look for forms where the same value appears in a machine-readable array and a human-readable text blob. A positive result is a submission where the two disagree and the backend acts on one while the reviewer sees the other.
  2. Client-supplied identity fields: check whether account_email, subject lines or similar are taken from the body rather than the session. A positive result is a request where changing the field changes the outcome without any server-side rejection.
  3. Ownership checks on approval flows: submit a request naming a channel you do not own. A positive result is an approval or badge assignment without any ownership verification.
  4. Threshold-gated features: for any feature gated on a metric (subscribers, followers, spend), try supplying an eligible entity in the reviewer-facing field and an ineligible one in the system-facing field. A positive result is the ineligible entity receiving the benefit.

Glossary

  • API: Application Programming Interface; a set of rules that lets one piece of software talk to another. In a web context, it is often a URL that accepts requests and returns data.
  • Badge: A small icon, like a checkmark, shown next to a name to indicate that the account is verified.
  • Burp Suite: A tool used by security researchers to intercept, inspect, and modify HTTP traffic between a browser and a website.
  • Channel ID: A unique string that identifies a YouTube channel.
  • Cookie: A small piece of data that a website stores in your browser and that your browser sends back with each request, often used to keep you logged in.
  • Header (HTTP): Part of an HTTP request or response that carries metadata, such as the content type or cookies.
  • HTTP: HyperText Transfer Protocol; the language that browsers and web servers use to communicate.
  • JSON: JavaScript Object Notation; a text format for structured data, using braces for objects and brackets for arrays.
  • POST: An HTTP method used to send data to a server, often to create or update something.
  • Proxy: A tool or server that sits between your browser and the internet, allowing you to see and modify the traffic.
  • Request body: The part of an HTTP request that contains the data being sent, such as form fields.
  • Session: A period of interaction between a user and a website, often identified by a cookie, that keeps you logged in.
  • Token: A piece of data, often a string, used to authenticate or authorize a request, like a session cookie or an anti-CSRF token.
  • Verification badge: The checkmark symbol on YouTube that indicates a channel is verified.
  • Vulnerability: A weakness in a system that can be exploited to cause harm or bypass rules.
  • XSRF token: A security token used to prevent Cross-Site Request Forgery attacks; it is included in requests to prove they come from the legitimate site.

More from Google

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.