Skip to content
RCE Disclosed report Advanced CVE-2017-9800CVE-2017-1000116CVE-2017-1000117

RCE via ssh:// URIs in multiple VCS

A flaw in how Git, Subversion, and Mercurial handle ssh:// URIs could allow an attacker to execute arbitrary commands. The report references external advisories for details.

Joern Schneeweisz Follow

Originally disclosed on HackerOne

High 8.8 View original
  • Fixed in 8 days
  • Paid in 8 days
  • Disclosed after 38 days

I'd like to submit an RCE issue within Git SVN and Mercurial, the CVEs are:

  • CVE-2017-9800 (Subversion)
  • CVE-2017-1000116 (Mercurial (hg))
  • CVE-2017-1000117 (Git)

Further Info can be found at:

http://blog.recurity-labs.com/2017-08-10/scm-vulns

And product specific:

I think these issues which all are based on the same flaw could be worth an IBB Bounty. However I'd like to point out that we at Recurity Labs would like the bounty being donated to a charity. The to be determined charity will be something in the field of brain aneurysm, this is due to the fact that Felix, the founder of Recurity Labs, currently is recovering from a brain aneurysm.

So, just let us know what you think about this.

Cheers,

joern

P.S. I took the CVSS Score from the Subversion Advisory the Redhat advisory states a score of 6.3 (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L) I guess the truth is somewhere in between.

The original report as published on HackerOne, by joernchen. 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 improper validation of ssh:// URIs allows command injection when the URI is passed to the shell.

Impact

An attacker could execute arbitrary commands on a victim's system, leading to remote code execution.

What the attacker needed

Victim uses a vulnerable VCS; victim interacts with a malicious ssh:// URI

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.

Git, Subversion and Mercurial had a shared flaw that could let a malicious ssh:// address lead to command execution.

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 Joern Schneeweisz

View all

2 more disclosed reports, best first.

More from Internet Bug Bounty

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.