Skip to content
Business logic Disclosed report Advanced CVE-2023-23764

Smuggling content in PR with refs/replace in GitHub

GitHub Enterprise Server had an incorrect comparison vulnerability that allowed commit smuggling by showing an incorrect diff in the pull request UI. An attacker with write access to the repository could exploit this to display a misleading diff.

inspector-ambitious Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 4 months
  • Paid in 4 months
  • Disclosed after 4 months

Summary by the program

An incorrect comparison vulnerability was identified in GitHub Enterprise Server that allowed commit smuggling by displaying an incorrect diff within the GitHub pull request UI. To do so, an attacker would need write access to the repository. This vulnerability affected GitHub Enterprise Server versions 3.7.0 and above and was fixed in versions 3.7.9, 3.8.2, and 3.9.1. This vulnerability was reported via the GitHub Bug Bounty program.

The original report as published on HackerOne, by inspector-ambitious. 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 diff comparison logic did not properly account for Git's replace refs, allowing the displayed diff to differ from the actual commit content.

Impact

An attacker with write access could smuggle commits by making the pull request diff incorrect, potentially deceiving reviewers.

What the attacker needed

Write access to the repository

The fix

The vulnerability was fixed in versions 3.7.9, 3.8.2, and 3.9.1.

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 view a pull request, GitHub shows a diff of what changed. This bug let someone with write access to the repository make that diff incorrect, so reviewers could be misled. It is like showing a fake receipt for a purchase.

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 inspector-ambitious

View all

15 more disclosed reports, best first.

More from GitHub

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.