Skip to content
RCE Disclosed report Advanced

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.

Orange Tsai .8361) Follow

Originally disclosed on HackerOne

Critical View original
  • 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

2017-02-14_124553.png
2017-02-14_124553.png From the original on HackerOne
2017-02-14_124702.png
2017-02-14_124702.png

The original report as published on HackerOne, by orange. 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 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.

More by Orange Tsai .8361)

View all

22 more disclosed reports, best first.

More from Imgur

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.