Remote Code Execution on Git.imgur-dev.com
The GitHub Enterprise server at git.imgur-dev.com was running an outdated version (pre-2.8.7) that contained a Rails static key vulnerability. An attacker could exploit this to achieve remote code execution on the server.
Originally disclosed on HackerOne
- Triaged in 13 hours
- Fixed in 14 hours
- Paid in 9 days
- Disclosed after 2 months
Summary by the researcher
GitHub Enterprise Rails static key issue.
The patch released on date 2017/01/31 (https://enterprise.github.com/releases/2.8.7/notes), but two weeks pass, it seems still vulnerable. I think this server is very critical for Imgur, so I reported to the vendor.
Thanks to Imgur Security Team's kindness :)
P.s. Also thanks to @iblue and his amazing finding! http://exablue.de/blog/2017-03-15-github-enterprise-remote-code-execution.html
The report
Hi, Imgur Security Team:
I just found that your GitHub Enterprise Server(https://git.imgur-dev.com/) didn't patch to the latest version(2.8.7). And there is a Rails static key leads to RCE vulnerability!
You can see the PoC from my screenshots :)
Attachments


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 server was not updated to the patched version 2.8.7, leaving a known Rails static key vulnerability unaddressed.
Impact
An attacker could achieve remote code execution on the GitHub Enterprise server, which the reporter considered critical for Imgur.
What the attacker needed
Unpatched GitHub Enterprise
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 report is about a server that runs GitHub Enterprise, a self-hosted version of GitHub. The server was not updated to the latest security patch, leaving a known flaw in the Ruby on Rails framework that could let an attacker run their own code on the machine. The reporter found this and told the company.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.