Skip to content
Business logic Write-up Intermediate

How I broke into Google Issue Tracker

The Google Issue Tracker accepted emails that failed SPF and DKIM verification, allowing an attacker to create or comment on issues using any email address. In the public tracker, an attacker could impersonate any user; in the private tracker, they needed to know the component ID, thread ID, and the associated email address.

Abhishek Bundela Follow

Published on medium.com

{{media:0}}

Abhishek Bundela, on 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. 4 min read.

Context

Google Issue Tracker (Buganizer) is the tool Google uses internally to track bugs and feature requests during product development. It is also available outside Google for external public and partner users who need to collaborate with Google teams on specific projects. The feature in question lets users create issues and comment on them by sending email to the Buganizer system, rather than using the web interface.

According to the documentation, an issue is created by sending an email to:

Text
[redacted]

where componentID is an integer value identifying the component where you want to report the issue. To comment on an existing issue, the address is:

Text
[redacted]

where threadID is also an integer value for a particular issue.

The documentation states that for email creation the sending domain must support SPF and DKIM. The researcher had discussed SPF and DKIM in a previous article about a Google Groups flaw, and that earlier work is what led him to notice that researchers can comment on issues by replying to email from the Buganizer system.

Setup

The researcher tested both the public Issue Tracker and the private Issue Tracker, sending email through the smtp2go service. No other tooling, accounts or versions are described in the report.

Finding it

While reading the Issue Tracker documentation, the researcher asked a simple question: how does Issue Tracker handle unverified emails, meaning emails that failed SPF and DKIM verification? If content from unverified emails were posted directly into Issue Tracker, then an attacker who knows a victim's email address could create or comment on an issue on behalf of that victim.

Image for post
Image for post From the original on medium.com

The image shows the documentation stating that the sending domain must support SPF and DKIM for email-based issue creation.

Exploitation

Step 1: Create an issue as another user in the public tracker

The researcher sent an email through smtp2go and found he could create issues on behalf of any user in the public issue tracker. The result was that he could create issues on behalf of any user in the public issue tracker. The report does not include the exact email headers or body used.

Step 2: Comment on an issue as another user in the public tracker

Using the same technique, he could comment on issues by sending email to:

Text
[redacted]

Again the report does not reproduce the exact message.

Step 3: Attempt the same against the private tracker

He then tested whether the same trick worked in the private issue tracker. He sent an email (a random email address) via smtp2go to one of his own issues, and the attempt was unsuccessful: no comment was created.

Step 4: Comment on a private issue using the reporter's own address

He tried again, this time using his own email address (the same address used when reporting the vulnerability) via smtp2go, and the comment was created successfully. The comment was created successfully when he used his own email address.

Root cause

The report does not describe the implementation. The observable behaviour is that Issue Tracker accepted email that failed SPF and DKIM verification and posted its content as an issue or comment. In the public tracker this worked for arbitrary sender addresses; in the private tracker it worked only when the sender address matched the address associated with the issue. The report does not describe the implementation or explain why the emails were accepted. The report does not confirm which.

Impact

In the public issue tracker, an attacker can create issues and comment on issues using anyone's email address. Because the public tracker shows only the first two characters of the reporter's email and the domain name, an attacker who can see those characters and the domain can comment on that issue using any address that starts with those characters and ends in that domain. An attacker can also comment using a random address such as [redacted] to fool public researchers and ask for more details.

Image for post
Image for post From the original on medium.com

The image shows how the public issue tracker displays a reporter's email: only the first two characters and the domain are visible.

For the private issue tracker, commenting requires knowing the componentID, the threadID and the email address associated with that ID. Google's security team rated the issue as priority p2 and severity s2.

Fix

Variants to test

  • Send email with a forged sender address to the issue-creation address and to the comment address, and check whether the content appears. A positive result is an issue or comment created under the forged address.
  • Test the private tracker with a sender address that does not match the issue's reporter. A positive result is a comment created despite the mismatch.
  • Test addresses with plus-addressing variations (+componentID, +componentID+threadID) to see whether parsing differences allow bypassing verification.
  • Test domains with no SPF or DKIM records, and domains with failing records, to see whether either is treated differently.
  • Test whether the first two characters and domain shown in the public tracker are enough to post a comment from a lookalike address. A positive result is a comment accepted from an address that only matches those visible parts.

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. 12 min read.

What happened, in plain words

Google runs a system called Issue Tracker (its internal name is Buganizer). It is the tool Google uses to keep track of bugs and feature requests while products are being built. It is not only for Google staff: people outside Google, both members of the public and partner organisations, can use it to work with Google teams on specific projects.

One of its features is that you do not have to use the website to create or comment on an issue. You can simply send an email. The report is about what happens when someone sends such an email with a forged sender address, that is, an email that claims to come from somebody else. The researcher found that Issue Tracker accepted emails sent through smtp2go and posted their contents as issues and comments, even though the documentation says the sending domain must support SPF and DKIM.

In plain terms: if an attacker knew your email address, they could post an issue or a comment in the public issue tracker while appearing to be you. In the private issue tracker the trick only worked when the sender address matched the address already associated with the issue.

This is a logic flaw combined with broken authorisation. A logic flaw means the software does the wrong thing because a rule was implemented incorrectly or not at all, rather than because of a memory bug or a crash. Broken authorisation means the system lets someone do something they should not be allowed to do. Here, the missing rule was: do not trust an email whose sender has not been verified.

Background: what Issue Tracker is and how email fits in

The report quotes the documentation's own description of the product:

Issue Tracker is a tool used internally at Google to track bugs and feature requests during product development. It is available outside of Google for use by external public and partner users who need to collaborate with Google teams on specific projects.

Think of an issue tracker as a shared noticeboard. Each note on the board is an issue: a bug report or a feature request. Each issue belongs to a component, which is simply a category, such as the part of a product the issue is about. People can add comments to an issue, which are follow-up notes on the same topic.

Normally you would use a web page to create an issue or add a comment. Issue Tracker also lets you do it by email, which is convenient for people who live in their inbox. The documentation explains the two email addresses involved.

To create a new issue, you send an email to:

Text
[redacted]

Here componentID is an integer value identifying the component where you want to report the issue. An integer is just a whole number, like 12345. The part after the plus sign in an email address is called plus-addressing: mail servers treat [redacted] as belonging to [redacted], but the extra text is preserved and can be read by software. Issue Tracker uses that extra text to know which component the email is about.

To comment on an existing issue, the address is:

Text
[redacted]

where threadID is also an integer value for a particular issue. A thread is a conversation: the original issue plus all the comments attached to it. So the second number tells Issue Tracker which conversation the email belongs to.

Image for post
Image for post From the original on medium.com

The image shows this part of the documentation: the two address formats, with componentID described as an integer for the component and threadID as an integer for a particular issue.

The email checks the documentation promises

The documentation states that for email-based issue creation, the sending domain must support SPF and DKIM. Both are ways for the receiving mail system to check that an email really came from the domain it claims to come from.

  • SPF (Sender Policy Framework) works like a guest list at a door. The owner of a domain publishes a list of which mail servers are allowed to send email for that domain. The receiving server checks whether the email arrived from a server on that list. If not, the check fails.
  • DKIM (DomainKeys Identified Mail) works like a wax seal on a letter. The sending server attaches a cryptographic signature to the email, and the receiving server verifies it using a public key published by the domain. If the message was altered or the signature does not match, the check fails.

A domain is the part of an email address after the @ sign, such as example.com. A mail server is the computer that sends or receives email. A cryptographic signature is a mathematical stamp that is very hard to forge without the secret key.

The researcher had already written about SPF and DKIM in an earlier article about a flaw in Google Groups functionality. That earlier work is what led him to notice that researchers can comment on issues in Issue Tracker simply by replying to an email from the Buganizer system.

The image appears at this point in the story, where the researcher connects his earlier Google Groups work to the email reply feature of Issue Tracker.

The question that started it

While reading the Issue Tracker documentation, the researcher asked a simple question: how does Issue Tracker handle unverified emails, meaning emails that failed SPF and DKIM verification?

This is a classic security question. The documentation describes what should happen when everything is correct. The interesting part is what happens when the checks fail. If the content of an unverified email were posted directly into Issue Tracker, then an attacker who knows a victim's email address could create or comment on an issue on behalf of that victim. In other words, the attacker could impersonate the victim. Impersonation means pretending to be someone else so that other people believe the messages came from them.

Setting up the test

The researcher used two things: the public Issue Tracker and the private Issue Tracker. The public issue tracker is the part that anyone can read. The private issue tracker is restricted to the people involved in a particular project or issue.

To send email with arbitrary sender addresses, he used the smtp2go service. SMTP is the protocol that mail servers use to send email to each other. An SMTP service lets you hand an email to a server for delivery. That is exactly what is needed to test whether the receiver checks that address. The report does not describe any other tooling, accounts or versions.

Step 1: Create an issue as another user in the public tracker

The researcher sent an email through smtp2go and found he could create issues on behalf of any user in the public issue tracker.

The result was that he could create issues on behalf of any user in the public issue tracker. The report does not include the exact email headers or body used. Headers are the hidden fields at the top of an email, such as From, To and Subject, that mail software uses to route and describe the message.

Why this step matters: creating an issue is the most basic write action in the tracker. If a forged email can create one, the system is trusting the sender address without verifying it.

Step 2: Comment on an issue as another user in the public tracker

Using the same technique, he could comment on issues by sending email to:

Text
[redacted]

Again the report does not reproduce the exact message. The address is the same one from the documentation: the first number picks the component, the second picks the conversation. The difference from step 1 is that the email is attached to an existing issue rather than starting a new one. This matters because a comment appears inside someone else's conversation, where other people are likely to read it and believe it.

Step 3: Attempt the same against the private tracker

He then tested whether the same trick worked in the private issue tracker. He sent an email from a random email address via smtp2go to one of his own issues, and the attempt was unsuccessful: no comment was created.

This is an important control. It shows the private tracker was not simply accepting everything. Something about the sender address was being checked, or at least the random address did not match what the system expected.

Step 4: Comment on a private issue using the reporter's own address

He tried again, this time using his own email address, the same address he used when reporting the vulnerability, via smtp2go, and the comment was created successfully.

This shows that the private tracker did not simply reject all email. When he used his own address, the comment was created successfully.

Why it worked

The report does not describe the implementation, so we can only reason about the observable behaviour. Issue Tracker accepted email that failed SPF and DKIM verification and posted its content as an issue or comment. In the public tracker this worked for arbitrary sender addresses. In the private tracker it worked only when the sender address matched the address associated with the issue.

Email ingestion means the process that reads incoming email and turns it into content in another system. The report does not confirm which explanation is correct.

Impact

In the public issue tracker, an attacker can create issues and comment on issues using anyone's email address. That alone is serious, because readers trust the name attached to a comment.

There is a second layer. The public tracker does not show the full reporter email. It shows only the first two characters of the reporter's email and the domain name. The researcher checked this in the attached image.

Image for post
Image for post From the original on medium.com

The image shows how the public issue tracker displays a reporter's email: only the first two characters and the domain are visible.

Because those two pieces are visible, an attacker who can see them can comment on that issue using any address that starts with those characters and ends in that domain. An attacker who can see those characters and the domain can comment using any address that starts with those characters and ends in that domain. The attacker does not need to know the full address.

An attacker can also comment using a random address such as [redacted] to fool public researchers and ask for more details. This is a form of social engineering: manipulating people rather than machines. A comment that appears to come from a trusted-looking address can persuade a researcher to reveal more about a bug, or to take an action they would not otherwise take.

For the private issue tracker, commenting requires knowing the componentID, the threadID and the email address associated with that ID. All three pieces must line up, which makes the private case harder to exploit but not impossible for someone who has that information.

Google's security team rated the issue as priority p2 and severity s2. Priority describes how urgently the company wants to fix something. Severity describes how much harm the flaw can cause.

What should change

Other things worth testing

These are variations on the same idea, useful for anyone learning how to test this kind of feature:

  • Send email with a forged sender address to the issue-creation address and to the comment address, and check whether the content appears. A positive result is an issue or comment created under the forged address.
  • Test the private tracker with a sender address that does not match the issue's reporter. A positive result is a comment created despite the mismatch.
  • Test addresses with plus-addressing variations (+componentID, +componentID+threadID) to see whether parsing differences allow bypassing verification. Parsing is how software splits a piece of text into its parts; different parsers can disagree about what an address means.
  • Test domains with no SPF or DKIM records, and domains with failing records, to see whether either is treated differently. A domain with no records at all is a different case from a domain whose records say "this server is not allowed".
  • Test whether the first two characters and domain shown in the public tracker are enough to post a comment from a lookalike address. A positive result is a comment accepted from an address that only matches those visible parts.

Glossary

  • API: a defined way for one piece of software to talk to another, like a waiter taking your order to the kitchen.
  • Broken authorisation: a flaw where the system lets someone do something they should not be permitted to do.
  • Buganizer: Google's internal name for its Issue Tracker system.
  • Comment: a follow-up note added to an existing issue.
  • Component: a category in an issue tracker, identified here by an integer, that says which part of a product an issue belongs to.
  • ComponentID: the integer that identifies a component in the email address.
  • Cryptographic signature: a mathematical stamp that is very hard to forge without the secret key.
  • DKIM (DomainKeys Identified Mail): an email check where the sending server attaches a signature that the receiver verifies against a public key published by the domain.
  • Domain: the part of an email address after the @ sign, such as example.com.
  • Email ingestion: the process that reads incoming email and turns it into content in another system.
  • From address: the field in an email that says who the message is from.
  • Headers: the hidden fields at the top of an email, such as From, To and Subject.
  • Impersonation: pretending to be someone else so that others believe the messages came from them.
  • Integer: a whole number, such as 12345.
  • Issue: a bug report or feature request tracked in an issue tracker.
  • Issue Tracker: the tool Google uses to track bugs and feature requests, available internally and to external public and partner users.
  • Logic flaw: a flaw where the software does the wrong thing because a rule was implemented incorrectly or not at all, rather than because of a crash or memory bug.
  • Mail server: a computer that sends or receives email.
  • Parsing: how software splits a piece of text into its parts.
  • Plus-addressing: the convention where [redacted] is delivered to [redacted] but the extra text is preserved for software to read.
  • Priority (p2): a label for how urgently a company wants to fix something.
  • Private issue tracker: the restricted part of Issue Tracker, visible only to the people involved in a project or issue.
  • Public issue tracker: the part of Issue Tracker that anyone can read.
  • Severity (s2): a label for how much harm a flaw can cause.
  • SMTP (Simple Mail Transfer Protocol): the protocol mail servers use to send email to each other.
  • smtp2go: an SMTP service the researcher used to send email with arbitrary sender addresses.
  • Social engineering: manipulating people rather than machines, for example by writing a convincing message.
  • SPF (Sender Policy Framework): an email check where the domain publishes a list of servers allowed to send mail for it, and the receiver checks whether the email came from one of them.
  • Thread: a conversation consisting of an issue plus all its comments.
  • ThreadID: the integer that identifies a particular issue or conversation in the email address.
  • Unverified email: an email that failed SPF and DKIM verification.

More by Abhishek Bundela

View all

1 more disclosed report, best first.

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.