Skip to content
Misconfiguration Write-up Intermediate

Five Green Checkmarks I Typed Myself: Making GitHub’s Own Bot Vouch for a Failing Plugin

A GitHub Actions workflow triggered by pull_request_target built a Markdown table from an unescaped plugin name field, allowing an attacker to inject pipe characters and fake green checkmarks while hiding real failing gate results. An attacker could make a malicious plugin appear to pass automated quality checks under the repository's bot identity.

_marwankhodair_ Follow

Published on medium.com

Github

_marwankhodair_, 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. 7 min read.

## Context

`github/awesome-copilot` is GitHub's public directory of Copilot plugins. Anyone can submit a plugin by opening a pull request that adds an entry to `plugins/external.json`. A bot then runs a set of quality gates against the submitted plugin and posts a results table as a comment on the PR, so that maintainers can see at a glance whether the submission is any good.

The workflow that does this is triggered with:

```text
on: pull_request_target
```

`pull_request_target` runs the workflow with the base repository's permissions while operating on the content of the contributor's fork. The code is the contributor's, but the token belongs to the base repository. That combination is what made the rest of the investigation worth pursuing.

## Setup

The submission surface is a single JSON file in the repository, `plugins/external.json`, edited through a pull request from a fork. No special role is needed: the report's framing is that anyone can submit a plugin this way. The researcher worked from a fork and opened a PR against the upstream repository. The only tooling implied is the ability to edit the JSON entry and read the bot's comment on the resulting PR.

## Finding it

The question that drives any `pull_request_target` review is which fields from the pull request reach a privileged job, and what that job does with them. Here the path was short:

```text
my fork        |      plugin.name         <- I fully control this string        |detect-changed-plugins    <- reads it from the PR HEAD        |run-quality-gates         <- passes the object along, unmodified        |sync-pr-state             <- permissions: pull-requests: write + issues: write        |github-actions[bot] posts a comment containing my string
```

The `plugin.name` value comes straight from the fork and is carried, unmodified, through `detect-changed-plugins` and `run-quality-gates` into `sync-pr-state`, which holds `pull-requests: write` and `issues: write` and posts the comment as `github-actions[bot]`.

The line that ends the investigation lives in `eng/external-plugin-quality-gates.mjs`:

```text
`| ${entry.name} | ${entry.quality.vally_lint_status} | ${entry.quality.smoke_status} | ...`
```

This is a Markdown table row built with a template literal. `entry.name` is the first cell. Nothing is escaped: not Markdown syntax, and, more importantly, not the pipe character that defines the table structure itself.

## Exploitation

### Step 1: Confirm the string reaches the comment and renders as Markdown

Before doing anything structural, the researcher checked whether the controlled string arrives in the comment and is interpreted as Markdown rather than shown as plain text. The payload placed in the plugin entry was:

```json
"name": "[BBP-PoC: Markdown Injection via plugin.name](https://github.com/marwankhodair/bbp-test-01) **SECURITY RESEARCH**"
```

This is a Markdown link followed by bold text. After opening the PR, the bot posted its report and the plugin name rendered as a clickable hyperlink and bold text in three separate places: the table cell, every `<details><summary>` heading, and the bullet summary at the bottom of the comment.


{{media:0}}


The image shows the plugin name rendered by the bot as a live hyperlink and bold text, with the real gate results still present in the table columns. This confirmed three injection points and no escaping. A link in a bot comment is a finding, but a small one, since anyone can post a link. The more interesting behaviour was one character away.

### Step 2: Use the pipe character to rewrite the table

A Markdown renderer decides the number of columns from the header row and silently discards any extra cells in a body row. The bot's header has six columns, and the plugin name is the first cell. By embedding pipes in the name, the attacker's content occupies cells two through six, and the real check results are pushed past the edge of the table and disappear.

The payload was:

```json
"name": "bbp-test-plugin | �
 | �
 | �
 | �
 | �
 |"
```

The raw comment body the workflow produced was:

```text
| bbp-test-plugin | �
 | �
 | �
 | �
 | �
 | | fail | fail | infra_error | not_run | infra_error | [sha] |
```

Everything after the fifth checkmark is the real result. Because the header defines six columns, the renderer keeps the first six cells and drops the rest, so the truth renders nowhere.

What a maintainer actually sees:

```text
Plugin           | vally lint | install smoke | version match | canvas | overallbbp-test-plugin  |     �
     |      �
       |      �
       |   �
   |   �

```

What actually happened:

```text
Plugin           | vally lint | install smoke | version match | canvas  | overallbbp-test-plugin  |    fail    |     fail      |  infra_error  | not_run | infra_error
```


{{media:1}}


The image shows the rendered table where every gate failed, with the five green checks typed into the JSON file in the fork. The five checkmarks are not the bot's assessment of the plugin; they are a string from the contributor's fork, reprinted by `github-actions[bot]` in a comment that looks exactly like every other automated report in the repository. The two are visually indistinguishable because they are the same comment.

## Root cause

The vulnerable line is a template literal that interpolates `entry.name` directly into a Markdown table row without escaping. Markdown escaping is the missing defence, and specifically escaping of the pipe character, which is structural in a table. Because the renderer derives the column count from the header and drops overflow cells, an unescaped pipe in the first cell lets the contributor supply the remaining cells and displace the genuine results.

The workflow design compounds this. `pull_request_target` gives the job the base repository's permissions while reading content from the fork, and the `sync-pr-state` job holds `pull-requests: write` and `issues: write`. The contributor controls the data, and the bot identity and permissions are the repository's. The report does not describe any escaping of `plugin.name` in that line; the later hardening PRs added name validation and further checks.

## Impact

The automated gate report exists so that a human maintainer, reviewing many plugin submissions, can decide whether to look closely at a PR or wave it through. The comment is therefore a trust signal, and the contributor had write access to it through a JSON field. An attacker submitting a genuinely malicious Copilot plugin could hand the reviewer a pre-approved-looking scorecard for it, published under the repository's own bot identity, with `pull-requests: write` and `issues: write` behind it.

This is not remote code execution. It is quieter: turning the repository's automated safety mechanism into the attacker's own marketing material. The real results were still visible if a reviewer expanded every `<details>` block and read the bullet summary at the bottom, so the attack targets the reviewer who skims the table.

On the bounty side, the report was filed under the GitHub Bug Bounty Program and the verdict was informational. The report's explanation is that `github/awesome-copilot` is an open-source repository GitHub happens to own, not a GitHub product, so it falls outside bounty scope regardless of how real the bug is. The payout was zero.

## Fix

The repository addressed the issue with two hardening PRs merged within days:

- **#2444**: Harden external plugin PR quality gate rendering and name validation
- **#2445**: Harden external plugin validation: semver, SPDX, email, and unknown-field checks

The maintainer's comment on the researcher's PR was:

> “thank you for the report, I’ve addressed the problems in #2444 and added some more into our validation workflow to avoid these attack vectors.”


{{media:2}}


The image shows the maintainer's comment on the PR. The report does not describe the exact code changes in either PR beyond their titles.

## Variants to test

1. **Other `pull_request_target` workflows that interpolate PR-controlled fields into comments.** Trace every field from the fork into jobs holding `pull-requests: write` or `issues: write`. A positive result is a bot comment containing attacker-controlled Markdown that renders as a link, bold text, or a table.
2. **Markdown table cells built from user input.** Submit a value containing `|` and check whether the rendered table gains columns or whether genuine results are pushed out of view. A positive result is a table whose visible cells differ from the raw comment body.
3. **Other structural Markdown characters in interpolated fields.** Test characters that change structure in the renderer in use, such as pipes in tables, and observe whether the rendered output diverges from the raw text. A positive result is a rendered comment whose meaning differs from the underlying data.
4. **Bot comments used as review signals.** Identify automated comments that maintainers rely on to decide how closely to review a submission, and check whether any field in that comment is contributor-controlled. A positive result is a contributor-controlled field appearing in a comment that looks identical to the bot's genuine output.

## Takeaways

1. `pull_request_target` plus fork-controlled data plus write permissions is the whole bug class. Find the trigger, then trace every field from the PR into the privileged job. The vulnerable line is usually a template literal.
2. Structural characters are payloads too. Everyone escapes `<script>`. Almost nobody escapes `|` in a Markdown table, and the pipe lets you rewrite the table's meaning without touching HTML at all.
3. Extra cells vanish silently. The renderer dropping overflow columns is what turns “I injected some text” into “I deleted the evidence”.
4. Bot comments are trust signals, not decoration. If a human uses a bot's output to decide how carefully to review something, then write access to that output is a real security boundary.

The final scoreboard reads: the bug bounty program returned informational with $0; GitHub's actual codebase was patched twice, plus extra validation that was not even requested; and the contribution to `github/awesome-copilot` is a permanent PR titled *"security test"* containing a plugin whose official name is five green checkmarks.


{{media:3}}


Not every bug pays. Some of them quietly get GitHub to write better code and thank you for 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. 19 min read.

## What happened, in plain words

GitHub maintains a public directory called `github/awesome-copilot`. It is a catalogue of add-ons for GitHub Copilot, GitHub's AI coding assistant. Think of it like an app store: a list of plugins, each with a name and a description, that people can browse and install.

Anyone is allowed to suggest a new plugin for that catalogue. You do it by opening a pull request (a PR): a formal proposal that says "please add my entry to this list". A robot then checks your submission and posts a comment on your PR with a table of results, so the human maintainers can see quickly whether your plugin is any good.

The researcher found that the plugin name you type is copied into that robot comment without being cleaned first. By putting special characters in the name, he could make the robot's own comment show five green ticks for a plugin that had failed every single check. The robot looked like it was approving his plugin. It was really just repeating text he had written.

He reported it to GitHub's bug bounty programme (a scheme that pays people for finding security problems). GitHub replied that the report was "informational" and paid nothing, because this catalogue is an open-source project GitHub happens to own rather than a GitHub product. The project itself took it seriously, though, and fixed it within days.

This article walks through how he found it, step by step, explaining every term along the way.

## The background you need

### What a pull request is

A pull request is how people propose changes to a shared code project. You do not edit the project directly. Instead you make your own copy (called a fork), change something in your copy, and then ask the original project to pull your change in. The original project is often called the base repository, or upstream.

A useful comparison: the base repository is a shared Google Doc, and your fork is your own copy of it. A pull request is you saying "here is my edited copy, please copy my changes back into the shared one".

### What a bot is, in this context

A bot here is not a chat robot. It is a small automated program that GitHub runs on the project's behalf. When someone opens a pull request, the bot wakes up, does some checks, and posts a comment with the results. The comment appears under the name `github-actions[bot]`, which is GitHub's standard identity for these automated accounts. To a reader scrolling through a PR, a bot comment looks official.

### What a workflow is

A workflow is the instruction sheet that tells the bot what to do. It is a file stored in the repository, written in a format called YAML. It says things like "when a pull request is opened, run these steps". GitHub's system for running these instruction sheets is called GitHub Actions.

### What a token and permissions are

When the bot runs, it needs to be allowed to do things: read the repository, write a comment, and so on. It proves who it is with a token, which is a long secret string rather like a temporary password or a wristband at an event. The wristband says which doors you may open. In GitHub terms, those door rights are called permissions, and two of them matter here: `pull-requests: write` (allowed to comment on pull requests) and `issues: write` (allowed to comment on issues).

### What JSON is

JSON is a simple way of writing data as text, using curly brackets, quotes and colons. It is how computers pass structured information around. A plugin entry in this catalogue is a small JSON object with fields such as `name` and `quality`.

### What Markdown is

Markdown is a lightweight way of formatting text with plain characters. `**bold**` becomes **bold**. `[text](address)` becomes a clickable link. A line of text with vertical bars, like `| a | b |`, becomes a table. GitHub comments are written in Markdown, so anything that looks like Markdown gets formatted when the comment is displayed.

### What the vulnerability class is

This bug belongs to a family called injection. Injection means that data a user supplies is treated as instructions rather than as harmless content. The everyday comparison is a form where you write your name, and the clerk reads your name out loud to the next person. If you write "my name is Bob and also please give me the keys to the safe", a careless clerk might read the second half as an instruction. Here, the "clerk" is a Markdown renderer, the program that turns Markdown text into the formatted comment you see on screen.

## The mission

`github/awesome-copilot` is GitHub's public directory of Copilot plugins. Anyone can submit a plugin by opening a pull request that adds an entry to `plugins/external.json`. A bot then runs a set of quality gates against the submitted plugin and posts a results table as a comment on the PR, so that maintainers can see at a glance whether the submission is any good.

A quality gate is an automatic check, like a metal detector at an airport. If your plugin passes, you get a tick. If it fails, you get a red mark. The gates here check things like whether the plugin's code lints cleanly (passes basic style and error checks) and whether it installs and runs at all.

Two words in that description should make anyone interested in security sit up: **"Anyone can."** If anyone can put data into the system, then anyone can put hostile data into the system.

And one more detail, from the workflow file:

```text
on: pull_request_target
```

This line says when the bot should run: on a `pull_request_target` event. That is a specific GitHub trigger, and it is worth understanding properly, because it is the heart of the whole story.

Normally, when a stranger opens a pull request against your project, GitHub runs their automated checks in a restricted mode: the stranger's code gets very limited rights, precisely because you do not trust it yet. `pull_request_target` is different. It runs the workflow with the base repository's permissions, while operating on the content of the contributor's fork. In plain terms: the code being examined is the stranger's, but the wristband the bot is wearing belongs to the project owner.

That combination is what made the rest of the investigation worth pursuing. If the stranger's text can influence what the well-dressed bot does or says, the stranger is effectively speaking with the project's voice.

## Setting up

The submission surface is a single JSON file in the repository, `plugins/external.json`, edited through a pull request from a fork. No special role is needed: the report's framing is that anyone can submit a plugin this way. The researcher worked from a fork and opened a PR against the upstream repository. The only tooling implied is the ability to edit the JSON entry and read the bot's comment on the resulting PR.

 That is worth pausing on: the entry point to this bug is the same button a first-time contributor clicks.

## Finding it

The question that drives any `pull_request_target` review is which fields from the pull request reach a privileged job, and what that job does with them.

A job here means one stage of the workflow, one task the bot performs. "Privileged" means it holds a wristband with write access. The researcher's method was to follow the data like a detective following a parcel: which parts of my submission get picked up, which stages carry them along, and where do they finally get used?

Here the path was short:

```text
my fork        |      plugin.name         <- I fully control this string        |detect-changed-plugins    <- reads it from the PR HEAD        |run-quality-gates         <- passes the object along, unmodified        |sync-pr-state             <- permissions: pull-requests: write + issues: write        |github-actions[bot] posts a comment containing my string
```

Line by line, in plain words:

- `my fork | plugin.name` marks the starting point: the `name` field of the plugin entry, sitting in the researcher's own copy of the repository. He fully controls this string, meaning he can type absolutely anything into it.
- `detect-changed-plugins` is the first job. It reads the submission from the PR HEAD, which is simply the latest commit on the contributor's branch, the most recent version of his proposed change.
- `run-quality-gates` is the second job. It runs the actual checks and passes the plugin object along, unmodified. Nothing here cleans or filters the name.
- `sync-pr-state` is the third job. This is the privileged one: it holds `pull-requests: write` and `issues: write`, so it is allowed to post comments.
- The last line is the outcome: `github-actions[bot]` posts a comment containing the researcher's string.

So the name travels from a file the researcher controls, through two jobs that do not touch it, into a job that is allowed to speak officially. The parcel was never opened for inspection along the way.

The line that ends the investigation lives in `eng/external-plugin-quality-gates.mjs`:

```text
`| ${entry.name} | ${entry.quality.vally_lint_status} | ${entry.quality.smoke_status} | ...`
```

This is a Markdown table row built with a template literal. A template literal is a way of building a piece of text in JavaScript by mixing fixed text with values pulled from variables. The backticks mark the start and end of the text, and `${...}` means "insert the value of this here".

Line by line:

- The backtick opens a piece of text.
- `|` is a vertical bar, the character that Markdown uses to separate table cells.
- `${entry.name}` inserts the plugin name, straight from the contributor's file.
- `| ${entry.quality.vally_lint_status} |` inserts the result of the lint check as the next cell.
- `| ${entry.quality.smoke_status} |` inserts the result of the smoke test, a quick "does it start up at all" check, as the next cell.
- `| ...` means the same pattern continues for the remaining columns.

`entry.name` is the first cell. Nothing is escaped: not Markdown syntax, and, more importantly, not the pipe character that defines the table structure itself.

Escaping means marking a character as ordinary text so it cannot be read as formatting. If you want to display a literal asterisk in Markdown, you write a backslash before it. Here, nobody did that for the name. So if the name contains a pipe, the renderer will treat it as a real table separator, not as part of a name.

## Exploitation

### Step 1: Confirm the string reaches the comment and renders as Markdown

Before doing anything structural, the researcher checked whether the controlled string arrives in the comment and is interpreted as Markdown rather than shown as plain text. This is the sensible first move in any injection test: prove the door is open before trying to walk through it. If the name had appeared as literal text, with the brackets and asterisks visible, there would have been nothing to exploit.

The payload placed in the plugin entry was:

```json
"name": "[BBP-PoC: Markdown Injection via plugin.name](https://github.com/marwankhodair/bbp-test-01) **SECURITY RESEARCH**"
```

Line by line:

- `"name":` is the JSON field being set, the plugin's name.
- `[BBP-PoC: Markdown Injection via plugin.name]` is the visible text of a Markdown link. BBP-PoC is short for bug bounty programme proof of concept, meaning "a harmless demonstration for the bounty programme".
- `(https://github.com/marwankhodair/bbp-test-01)` is the address the link points to.
- `**SECURITY RESEARCH**` is Markdown for bold text.

This is a Markdown link followed by bold text. After opening the PR, the bot posted its report and the plugin name rendered as a clickable hyperlink and bold text in three separate places: the table cell, every `<details><summary>` heading, and the bullet summary at the bottom of the comment.

A `<details>` block is a collapsible section in a web page: a little triangle you click to expand hidden content. `<summary>` is the label shown next to that triangle. So the name was being echoed in the main table, in the clickable headings of the collapsible sections, and in the bullet list at the end.


{{media:0}}


The image shows the plugin name rendered by the bot as a live hyperlink and bold text, with the real gate results still present in the table columns. This confirmed three injection points and no escaping. A link in a bot comment is a finding, but a small one, since anyone can post a link. The more interesting behaviour was one character away.

### Step 2: Use the pipe character to rewrite the table

Now the clever part. A Markdown renderer decides the number of columns from the header row and silently discards any extra cells in a body row.

The header row is the top row of a table, the one with the column titles. The body rows are the rows underneath, with the actual data. The rule is: the header says how many columns there are, and if a body row has more cells than that, the extras simply do not appear. They are not shown as an error. They vanish.

The bot's header has six columns, and the plugin name is the first cell. By embedding pipes in the name, the attacker's content occupies cells two through six, and the real check results are pushed past the edge of the table and disappear.

The payload was:

```json
"name": "bbp-test-plugin | �
 | �
 | �
 | �
 | �
 |"
```

Line by line:

- `"name":` sets the plugin name field again.
- `bbp-test-plugin` is the harmless visible name.
- `| �
 | �
 | �
 | �
 | �
 |` is five green tick emoji, each separated by pipes, so the renderer reads them as five separate table cells.

So the name is not really a name any more. It is a name plus five fake result cells.

The raw comment body the workflow produced was:

```text
| bbp-test-plugin | �
 | �
 | �
 | �
 | �
 | | fail | fail | infra_error | not_run | infra_error | [sha] |
```

Line by line:

- `| bbp-test-plugin |` is the first cell, the name.
- `�
 | �
 | �
 | �
 | �
 |` are the five fake cells the researcher typed.
- `| fail | fail | infra_error | not_run | infra_error |` are the genuine results, still present in the raw text. `fail` means the check failed. `infra_error` means the checking machinery itself had a problem. `not_run` means the check never ran.
- `[sha]` stands for the commit identifier, the unique code that labels a particular version of the code.

Everything after the fifth checkmark is the real result. Because the header defines six columns, the renderer keeps the first six cells and drops the rest, so the truth renders nowhere.

What a maintainer actually sees:

```text
Plugin           | vally lint | install smoke | version match | canvas | overallbbp-test-plugin  |     �
     |      �
       |      �
       |   �
   |   �

```

Line by line:

- `Plugin | vally lint | install smoke | version match | canvas | overall` is the header: six columns, one for the name and five for the checks.
- `bbp-test-plugin` is the name in the first cell.
- The five ticks fill the five check columns.

What actually happened:

```text
Plugin           | vally lint | install smoke | version match | canvas  | overallbbp-test-plugin  |    fail    |     fail      |  infra_error  | not_run | infra_error
```

Line by line:

- The same header, the same name.
- `fail`, `fail`, `infra_error`, `not_run`, `infra_error` are the real outcomes of the five checks.


{{media:1}}


The image shows the rendered table where every gate failed, with the five green checks typed into the JSON file in the fork. The five checkmarks are not the bot's assessment of the plugin; they are a string from the contributor's fork, reprinted by `github-actions[bot]` in a comment that looks exactly like every other automated report in the repository. The two are visually indistinguishable because they are the same comment.

That last point is the one to hold on to. This was not a fake comment pasted somewhere else. It was the real bot, posting its real report, in its real format, with the researcher's text sitting where the results should be.

## Why this matters more than "it is just a comment"

The automated gate report exists so that a human maintainer, reviewing many plugin submissions, can decide whether to look closely at a PR or wave it through. The comment is therefore a trust signal, and the contributor had write access to it through a JSON field.

A trust signal is anything a busy person uses as a shortcut for a decision. A green tick from an automated system is a trust signal in the same way a security sticker on a laptop bag is: it does not prove anything by itself, but people rely on it.

An attacker submitting a genuinely malicious Copilot plugin could hand the reviewer a pre-approved-looking scorecard for it, published under the repository's own bot identity, with `pull-requests: write` and `issues: write` behind it.

This is not remote code execution. Remote code execution means making a server run your code, the dramatic kind of hack in films. It is quieter: turning the repository's automated safety mechanism into the attacker's own marketing material.

The real results were still visible if a reviewer expanded every `<details>` block and read the bullet summary at the bottom, so the attack targets the reviewer who skims the table. And in practice, the reviewer who skims is the reviewer.

On the bounty side, the report was filed under the GitHub Bug Bounty Program and the verdict was informational. The report's explanation is that `github/awesome-copilot` is an open-source repository GitHub happens to own, not a GitHub product, so it falls outside bounty scope regardless of how real the bug is. The payout was zero.

"Informational" is a common bounty label meaning "we accept that this is true, but it does not qualify for a reward". It is not the same as "invalid".

## The fix

The repository addressed the issue with two hardening PRs merged within days:

- **#2444**: Harden external plugin PR quality gate rendering and name validation
- **#2445**: Harden external plugin validation: semver, SPDX, email, and unknown-field checks

Hardening means making something more resistant to attack, like adding a second lock to a door. Name validation means checking that the name looks like a name before using it, for example rejecting characters that have special meaning. Semver is a standard way of writing version numbers such as 1.2.3. SPDX is a standard way of labelling software licences. The second PR added checks on version format, licence format, email format, and on fields that should not be there at all.

The maintainer's comment on the researcher's PR was:

> “thank you for the report, I’ve addressed the problems in #2444 and added some more into our validation workflow to avoid these attack vectors.”


{{media:2}}


The image shows the maintainer's comment on the PR. The exact code changes in either PR are not described beyond their titles.

## Variants to test

If you want to look for similar bugs yourself, these directions follow from the report's takeaways. Each one is a variation on the same idea: find a place where your text ends up somewhere it should not be able to change.

1. **Other `pull_request_target` workflows that interpolate PR-controlled fields into comments.** Interpolate means inserting a value into a piece of text. Trace every field from the fork into jobs holding `pull-requests: write` or `issues: write`. A positive result is a bot comment containing attacker-controlled Markdown that renders as a link, bold text, or a table.
2. **Markdown table cells built from user input.** Submit a value containing `|` and check whether the rendered table gains columns or whether genuine results are pushed out of view. A positive result is a table whose visible cells differ from the raw comment body.
3. **Other structural Markdown characters in interpolated fields.** Test characters that change structure in the renderer in use, such as pipes in tables, and observe whether the rendered output diverges from the raw text. A positive result is a rendered comment whose meaning differs from the underlying data.
4. **Bot comments used as review signals.** Identify automated comments that maintainers rely on to decide how closely to review a submission, and check whether any field in that comment is contributor-controlled. A positive result is a contributor-controlled field appearing in a comment that looks identical to the bot's genuine output.

A practical tip that follows from all four: always compare the raw comment text with what the page displays. If the two tell different stories, you have found something.

## Takeaways

1. `pull_request_target` plus fork-controlled data plus write permissions is the whole bug class. Find the trigger, then trace every field from the PR into the privileged job. The vulnerable line is usually a template literal.
2. Structural characters are payloads too. Everyone escapes `<script>`. Almost nobody escapes `|` in a Markdown table, and the pipe lets you rewrite the table's meaning without touching HTML at all.
3. Extra cells vanish silently. The renderer dropping overflow columns is what turns "I injected some text" into "I deleted the evidence".
4. Bot comments are trust signals, not decoration. If a human uses a bot's output to decide how carefully to review something, then write access to that output is a real security boundary.

The final scoreboard reads: the bug bounty program returned informational with $0; GitHub's actual codebase was patched twice, plus extra validation that was not even requested; and the contribution to `github/awesome-copilot` is a permanent PR titled *"security test"* containing a plugin whose official name is five green checkmarks.


{{media:3}}


Not every bug pays. Some of them quietly get GitHub to write better code and thank you for it. The researcher is still going to squint about the $0.

## Glossary

- **API**: a defined way for one piece of software to talk to another, like a service counter with set questions and answers.
- **Base repository**: the original shared project that a pull request proposes changes to.
- **Bug bounty programme**: a scheme where organisations pay researchers for reporting security problems to them.
- **Commit**: a saved snapshot of changes in a code project, identified by a unique code called a SHA.
- **Copilot**: GitHub's AI coding assistant.
- **Escaping**: marking a character as ordinary text so it cannot be read as formatting or code.
- **Fork**: your own copy of someone else's repository, where you can make changes freely.
- **GitHub Actions**: GitHub's system for running automated tasks, called workflows, in response to events.
- **Hardening**: making a system more resistant to attack.
- **Informational**: a bounty verdict meaning the report is accepted as true but does not qualify for a reward.
- **Injection**: a bug where data supplied by a user is treated as instructions by the system.
- **Job**: one stage of a workflow, one task the automation performs.
- **JSON**: a text format for structured data, using brackets, quotes and colons.
- **Markdown**: a lightweight text formatting language where characters such as `*` and `|` have special meaning.
- **Markdown renderer**: the program that turns Markdown text into the formatted page you see.
- **Open-source**: software whose code is public and can be freely used and modified.
- **Payload**: the specific text or data an attacker sends to trigger a bug.
- **Permission**: a right granted to an account or token, such as the right to post comments.
- **Pipe character**: the vertical bar `|`, used in Markdown to separate table cells.
- **Plugin**: an add-on that extends what a piece of software can do.
- **PR HEAD**: the latest commit on the contributor's branch, the most recent version of their proposed change.
- **Privileged job**: a workflow stage that holds write permissions.
- **Pull request (PR)**: a formal proposal to merge your changes into someone else's project.
- **`pull_request_target`**: a GitHub trigger that runs a workflow with the base repository's permissions while reading content from the contributor's fork.
- **Quality gate**: an automatic check that a submission must pass.
- **Remote code execution**: a severe bug where an attacker makes a server run their code.
- **Repository**: a project's folder of files, tracked by version control.
- **Semver**: a standard way of writing version numbers, such as 1.2.3.
- **SPDX**: a standard way of labelling software licences.
- **Template literal**: a way of building text in JavaScript by mixing fixed text with inserted values, written with backticks and `${...}`.
- **Token**: a secret string that proves an automated process's identity and carries its permissions, like a temporary password or a wristband.
- **Trust signal**: anything a person uses as a shortcut to decide how much to trust something.
- **Upstream**: the original project that a fork was copied from.
- **Validation**: checking that input has an acceptable form before using it.
- **Workflow**: the instruction file that tells automation what to do and when.
- **YAML**: a human-readable text format often used for configuration files such as workflows.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.