When a Simple ‘git push’ Becomes Dangerous: Lessons from the
A crafted git push request to GitHub Enterprise Server exploited improper input validation in backend processing, allowing remote code execution on internal systems. The researchers reached a shared internal node and accessed a private repository from a different user context, showing tenant isolation had failed.
Have you heard about Command Injection that causes server-side execution? Now it has happened in real life.
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 backend trusted and processed structured data from the git push client without adequate validation, and isolation boundaries between tenants were not fully enforced.
Impact
The researchers could execute code on GitHub's internal systems and access repositories belonging to other users and organisations, meaning tenant isolation failed.
What the attacker needed
Ability to send a crafted git push request; target runs GitHub Enterprise Server or GitHub.com
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.
A git push is the command developers use to upload their code changes to a hosting service. Here, a specially built push request was not treated safely by the servers behind the scenes, so the researchers could run their own code on those servers and see another user's private repository. That breaks the basic promise that each user's code is kept separate.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.