Management Console Editor Privilege Escalation to Root SSH Access in GitHub Enterprise Server via RCE in actions-console
A command injection flaw in GitHub Enterprise Server's Management Console allowed an editor to execute commands in the actions-console container and gain admin SSH access. Exploitation required access to the instance and the editor role.
Originally disclosed on HackerOne
- Triaged in 12 days
- Fixed in 2 months
- Paid in 2 months
- Disclosed after 8 months
Summary by the program
A command injection vulnerability was identified in GitHub Enterprise Server that allowed an attacker with an editor role in the Management Console to gain admin SSH access to the appliance via the actions-console docker container while setting a service URL. Exploitation of this vulnerability required access to the GitHub Enterprise Server instance and access to the Management Console with the editor role. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.12 and was fixed in versions 3.11.5, 3.10.7, 3.9.10, and 3.8.15.
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, user-supplied input for a service URL was passed to a shell without proper sanitisation, allowing command injection.
Impact
An attacker with editor access could escalate to admin SSH access on the appliance.
What the attacker needed
Access to the GitHub Enterprise Server instance; editor role in the Management Console
The fix
The vulnerability was fixed in versions 3.11.5, 3.10.7, 3.9.10, and 3.8.15.
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.
This is a command injection bug: when a user typed a service URL, the server ran part of that input as a system command instead of treating it as plain text. An attacker with editor rights in the management console could use this to run their own commands inside a container and then get full admin access to the appliance.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.