Skip to content
RCE Disclosed report Advanced CVE-2024-1374

Management Console Editor Privilege Escalation to Root SSH Access in GitHub Enterprise Server via nomad template injection and audit-forward

A command injection flaw in GitHub Enterprise Server let an editor in the Management Console run arbitrary commands through nomad templates when setting up audit log forwarding. This gave the attacker admin SSH access to the appliance.

inspector-ambitious Follow

Originally disclosed on HackerOne

  • Triaged in 16 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 nomad templates when configuring audit log forwarding. 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. 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, user-supplied input in the audit log forwarding configuration was passed into nomad templates without proper sanitisation, allowing command injection.

Impact

An attacker with editor access to the Management Console could gain admin SSH access to the appliance.

What the attacker needed

Access to the GitHub Enterprise Server instance; editor role in the Management Console

The fix

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

The Management Console is a web interface for managing a GitHub Enterprise Server appliance. An editor there could use a feature for forwarding audit logs to run their own commands on the server, because the input was not safely handled. That let them get the highest level of access, an admin SSH login.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.