Skip to content
Business logic Write-up Intermediate

Supply Chain Attacks via GitHub.com Releases

GitHub.com allows any project collaborator to modify release assets after publication without notifying owners or the public. An attacker who compromises a collaborator's account could alter release files, leading to supply chain attacks against users who download them.

Nightwatch Cybersecurity Follow

Published on wwws.nightwatchcybersecurity.com

Release functionality on GitHub.com allows modification of assets within a release by any project collaborator. This can occur after the release is published, and without notification or audit logging accessible in the UI to either the project owners or the public.

Nightwatch Cybersecurity (@nightwatchcyber), on wwws.nightwatchcybersecurity.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.

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

How it worked

Root cause

Likely the release system lacks fine-grained permissions and change notifications, so any collaborator can silently replace release assets after publication.

What the attacker needed

Compromised collaborator account; project uses GitHub.com releases

The fix

The vendor stated this is intended behaviour and is planning improvements; as a mitigation, project owners should digitally sign releases and users should verify signatures and use the API to check asset data.

How it was found

  1. Alice creates a public repository and adds a shell script.
  2. Alice invites Bob as a collaborator.
  3. Alice publishes a release including the shell script as an asset.
  4. Bob modifies the shell script within the release.
  5. Viewing the release shows no indication of modification, but downloading the script shows it differs from what Alice published.

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 write-up has not been written yet. The Original tab links to the source.

On GitHub, when a project publishes a release, the files attached to it can be changed later by anyone who has write access to the project. The project owner and the public are not told that the files changed. If an attacker takes over one of those collaborator accounts, they could swap a harmless file for a malicious one, and people downloading the release would not know.

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 Nightwatch Cybersecurity

View all

4 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.