scribble

slashcrypto's page

Home About Crypto Writings Impressum

28 Nov 2018
Pwning eBay - How I Dumped eBay Japan's Website Source Code

Today I wanna write about a finding I discovered during a research project where the aim was to find critical vulnerabilities in Alexa Top 1 Million websites. The main focus was to discover common configuration issues which do not require sophisticated exploits, which are easy to find and which can have a high impact on businesses. Some results of this research were presented at ITSECX 2018, an Austrian IT-Security conference. The slides of my talk can be found here.

TL; DR

I found out, that www.ebay.co.jp runs a version control repository on their production site which was not properly secured. This gave me access to the .git folder in the webroot directory which further allowed me to download the entire source code of www.ebay.co.jp including database passwords and much more. The initial research for this topic was performed back in 2015 by internetwache.org - their blog post about their findings can be found here and I highly recommend to read it!

Dumping eBay’s Source Code

I used the GitTools published by internetwache.org which can be found here. I ran this script through millions of Alexa Top 1 Million subdomains. When checking the results, eBay Japan popped up. In order to initially verify the bug, I accessed www.ebay.co.jp/.git/HEAD and the following came up:

eBay leaks git repo

eBay leaks git repo

This was a strong indicator, that the website is actually vulnerable. Due to the fact that eBay runs a bug bounty program and www.ebay.co.jp is in scope, I dumped their source code using the GitTools scripts. While waiting for the download to finish I reported the issue to eBay. I was able to download about 700 MB of compressed data. After extracting, I got 1.2 GB of data to go through. The data-set contained:

  • Wordpress configuration files (yes, they use Wordpress) including hashed user credentials for the backend login
  • Database passwords for production databases
  • Log files
  • A lot of PHP source code (who could have guessed?!)
  • much more …

Ebay was very responsive and fixed the issue about 10-12 hours after I reported it.

Sadly, they have no cash rewards for valid bugs but I got added to their Hall of Fame.

Update 29.11.2018 - eBay employees donated $500 to charity

Source

Thanks for reading and if you want to contact me, feel free to use the contact details provided here.

Home About Crypto Writings Impressum