Skip to content
Info disclosure Write-up Beginner

How I got 200$ in 5 minutes – Sensitive data leak

A publicly writable Google Drive folder linked from the website contained sensitive internal audio recordings. An attacker could access and potentially modify these files, which included personal information such as names, phone numbers, and addresses.

Sanjay Verdu Follow

Published on hack4bounty.com

Bounty$200 View original

by sanjayPosted onMay 19, 2020May 22, 2020

Sanjay Verdu (@codersanjay), on hack4bounty.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

The target was an e-commerce website. The report does not name it, so it is referred to here as https://www.example.com. The feature involved is a marketing page that offers brand assets for download. Instead of hosting the assets itself, the site linked out to a Google Drive folder containing the brand images. That folder was the object of the finding: it was configured so that anyone with the link could not only read it but also write to it, and it held more than the brand images.

The weakness class is information disclosure, and the reward was 200 USD. The timeline given in the report is: submitted on 2 May, patched on 2 May, awarded 200 USD.

Setup

No accounts, roles, tools or versions are described. The work was manual browsing of the target site, plus a Google Drive folder reached through a link on one of its pages. The only precondition that matters is that the Drive link was publicly reachable and that the folder's sharing settings allowed the visitor to upload.

Finding it

The researcher's routine is to walk the whole site page by page: open each page, look at what it contains, click the links and watch where they redirect. The report lists the checks that get priority during that walk:

  1. If a page carries a sensitive action such as login, check whether it is served over HTTPS. Served over HTTP, the report calls that a P3 on Bugcrowd.
  2. If the sensitive page is on HTTPS, try loading the same page over HTTP and see whether it still works. The report calls that a P4 on Bugcrowd.
  3. Click every link that looks interesting and check whether it leads to an external site.

On the third point the report gives a heuristic. Links named home or dashboard obviously stay on the same site. Links named Download it from here, Check this out and the like may or may not leave the site, and the judgement is intuitive: if a link looks juicy, click it.

Click that juicy link From the original on hack4bounty.com

On the target, after about a minute of browsing, the researcher reached a page containing a link labelled:

Text
Download our brand images from here.

Clicking it led to an external site, a Google Drive folder from which the brand images could be downloaded.

From the original on hack4bounty.com

Exploitation

Step 1: test whether the shared folder is writable

With the Drive folder open, the researcher dragged an image from the local machine into the folder to see whether write access had been granted to visitors. The upload succeeded.

From the original on hack4bounty.com

At that point an issue was confirmed, but the researcher did not want it valued at 50 or 100 USD, so the next question was whether the folder held anything beyond images.

Step 2: enumerate the folder contents

Inside the Drive there was a folder named Recordings. It contained many audio files. The researcher opened them one by one to see what they held.

From the original on hack4bounty.com

The files were internal to the website: call recordings between the site and its users. Some of them leaked PII such as name, phone number and address. There were around 40 audio files in total.

. From the original on hack4bounty.com

Step 3: report

A report was written and submitted to the program, and the researcher waited for a response.

From the original on hack4bounty.com

Root cause

The link on the marketing page pointed at a Google Drive folder whose sharing configuration granted write access to anyone holding the link, rather than read-only access. The same folder was also used to store operational material, the Recordings folder of call recordings, alongside the public brand images. Two separate mistakes combine: over-permissive sharing on a public link, and mixing internal data with assets meant for publication. The report does not describe how the folder was configured or who set it up; the above is what the observed behaviour implies.

Impact

Anyone who visited the page and followed the link could upload files into the folder, and could browse and download everything in it, including around 40 call recordings between the site and its users, some containing names, phone numbers and addresses. The write access also means an outsider could plant content in a folder the site distributes publicly, though the report does not explore that angle.

Fix

The team's response, received about two hours after submission, was that they removed write access to the drive and removed the sensitive audio files from it. The bounty awarded was 200 USD.

Variants to test

  • Follow every outbound link on a target's marketing, press and careers pages. A positive result is a third-party storage folder (Drive, Dropbox, S3 bucket, SharePoint) that opens without authentication.
  • On any such folder, attempt an upload of a harmless file. A positive result is the file appearing in the folder, which confirms write access for link holders.
  • Enumerate the folder tree rather than stopping at the top level. A positive result is subfolders whose names suggest internal material, such as recordings, backups, exports or invoices.
  • Open a sample of the files found. A positive result is content that is internal to the organisation or contains personal data of its users.
  • Check whether the same storage account is referenced from other pages or older versions of the site, since a link removed from one page may still be live elsewhere.
From the original on hack4bounty.com

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

A security researcher spent a few minutes browsing an online shop's website, the way any curious visitor might. On one page he found a link that said the shop's brand images could be downloaded from there. The link took him to a Google Drive folder, which is Google's online storage service, a bit like a shared filing cabinet that lives on the internet instead of in an office.

The folder was meant to hand out pictures. But its sharing settings were too generous: anyone who had the link could also drop new files into it, not just take files out. The researcher proved this by uploading a picture of his own. Then he looked around inside the folder and found a subfolder called Recordings full of audio files. They turned out to be phone call recordings between the shop and its customers, and some of them contained personal details such as names, phone numbers and addresses.

He reported it. About two hours later the company replied that it had removed the ability for visitors to upload to the folder and had deleted the sensitive audio files, and it paid him 200 USD. The timeline in the report is: submitted on 2 May, patched on 2 May, awarded 200 USD.

The report does not name the shop, so throughout this article it is called https://www.example.com. The kind of problem is called information disclosure: private information that should have stayed inside the company could be seen by outsiders.

The starting point

The target was an e-commerce website, meaning a shop that sells things online. The feature involved is a marketing page, one of those pages a company puts up to promote itself, which offered the shop's brand assets for download. Brand assets are the official pictures and logos a company lets partners and journalists use. Instead of keeping those pictures on its own servers, the site simply linked out to a Google Drive folder that held them.

That folder is where the whole story happens. It was set up so that anyone who had the link could not only look at and download the files, but also add files of their own. And it held more than the brand images.

No special accounts, roles, tools or software versions are described anywhere in the report. Everything was done by hand in a normal web browser: browsing the shop's pages, then opening a Google Drive folder reached through a link on one of those pages. The only thing that had to be true for the finding to work is that the Drive link was reachable by anyone and that the folder's sharing settings let a visitor upload.

Finding it

The researcher's routine is simple to describe: walk the whole site page by page. Open each page, look at what is on it, click the links and watch where they take you. Think of it like walking around a shop you have never visited, opening every door and reading every sign, just to learn the layout before you start looking for anything specific.

The report lists the checks that get priority during that walk:

  1. If a page carries a sensitive action such as login, check whether it is served over HTTPS. Served over HTTP, the report calls that a P3 on Bugcrowd.
  2. If the sensitive page is on HTTPS, try loading the same page over HTTP and see whether it still works. The report calls that a P4 on Bugcrowd.
  3. Click every link that looks interesting and check whether it leads to an external site.

A few of those terms need unpacking for a first-time reader.

HTTPS is the secure version of the way a browser talks to a website. The ordinary version, HTTP, sends everything in the clear, like a postcard that anyone handling it along the way can read. HTTPS scrambles the conversation, like a sealed envelope, so that a password typed into a login box cannot be read by someone sitting between you and the site. A login page served over plain HTTP is therefore a real problem, because the password travels unprotected.

Bugcrowd is a bug bounty platform, a website where companies list their systems and offer rewards to people who find flaws in them. P3 and P4 are priority labels used there: P3 is a medium-level issue, P4 a lower one. They are a rough way of saying how serious a finding is, and therefore roughly how much it might be worth.

On the third point the report gives a rule of thumb. Links named home or dashboard obviously stay on the same site, because those are internal page names. Links named Download it from here, Check this out and the like may or may not leave the site, and the judgement is intuitive: if a link looks juicy, click it.

Click that juicy link From the original on hack4bounty.com

The image shows the caption "Click that juicy link", illustrating the habit of following interesting-looking links wherever they lead.

On the target, after about a minute of browsing, the researcher reached a page that looked interesting. It contained a link labelled:

Text
Download our brand images from here.

This is just the visible text of a link on the page, nothing more. The label promises pictures, but a label tells you nothing about where the link actually goes. That is exactly why the researcher clicks these: the destination is the unknown, and the only way to learn it is to follow it.

Clicking it led to an external site, a Google Drive folder from which the brand images could be downloaded.

From the original on hack4bounty.com

The image shows the moment of arrival at that external Google Drive folder, where the brand images could be downloaded.

Testing whether the shared folder is writable

With the Drive folder open, the researcher dragged an image from his own computer into the folder, to see whether visitors had been given write access. Write access means permission to change what is in the folder, as opposed to read access, which only lets you look. In everyday terms: a read-only folder is a noticeboard behind glass, you can read what is pinned there but not add anything; a writable folder is a whiteboard anyone can pick up a pen for.

The upload succeeded. That single action is the proof: if a stranger can put a file into the folder, then the folder is open for writing to the whole internet.

From the original on hack4bounty.com

The image shows the uploaded image sitting in the Drive folder after the drag and drop, confirming that write access was granted to visitors.

At that point an issue was confirmed. But the researcher did not want it valued at 50 or 100 USD, so the next question was whether the folder held anything beyond images. This is a practical point about bug bounties: the reward usually reflects how much harm the flaw could cause, so it is worth checking how far a flaw reaches before writing it up.

Looking through the folder

Inside the Drive there was a folder named Recordings. It contained many audio files. The researcher opened them one by one to see what they held. Opening files one at a time is slow, but it is the only way to know what is actually inside them; a file name alone does not tell you whether the content is harmless or sensitive.

From the original on hack4bounty.com

The image shows the Recordings folder with its audio files, the point at which the researcher started opening them to see what they contained.

The files were internal to the website: call recordings between the site and its users. Some of them leaked PII such as name, phone number and address. PII stands for personally identifiable information, which is any detail that can be used to work out who a specific person is: a full name, a phone number, a home address, and so on. A recording of a support call that contains those details is exactly the kind of material a company is expected to keep private.

There were around 40 audio files in total. The report does not say who the recordings belonged to beyond "users", nor how many individuals were affected.

. From the original on hack4bounty.com

The image follows the description of the audio files and the PII they leaked.

Reporting it

A report was written and submitted to the program, and the researcher waited for a response.

From the original on hack4bounty.com

The image shows the reply from the team: they removed write access to the drive, removed the sensitive audio files, and awarded a bounty of 200 USD.

Why it happened

The link on the marketing page pointed at a Google Drive folder whose sharing configuration granted write access to anyone holding the link, rather than read-only access. In other words, the setting that decides who may do what with the folder was set too loosely for a folder that was being advertised to the public.

The same folder was also used to store operational material, the Recordings folder of call recordings, alongside the public brand images. Two separate mistakes combine here: over-permissive sharing on a public link, and mixing internal data with assets meant for publication. It is like leaving the key to the stationery cupboard on the reception desk, and then also storing the staff's private letters in that cupboard.

The explanation above is what the observed behaviour implies, not something the report states.

What the impact was

Anyone who visited the page and followed the link could upload files into the folder, and could browse and download everything in it. That included around 40 call recordings between the site and its users, some containing names, phone numbers and addresses.

The write access also means an outsider could plant content in a folder the site distributes publicly, though the report does not explore that angle. In plain terms, a stranger could have put their own file into a folder the company was pointing its visitors at, and the company would not necessarily have noticed.

How it was fixed

The team's response, received about two hours after submission, was that they removed write access to the drive and removed the sensitive audio files from it. The bounty awarded was 200 USD.

Other places to look for the same thing

These are the general lessons the finding suggests, written as things to try on other sites:

  • Follow every outbound link on a target's marketing, press and careers pages. A positive result is a third-party storage folder (Drive, Dropbox, S3 bucket, SharePoint) that opens without authentication. Authentication here simply means proving who you are, for example by logging in; a folder that opens without it is open to anyone with the address.
  • On any such folder, attempt an upload of a harmless file. A positive result is the file appearing in the folder, which confirms write access for link holders.
  • Enumerate the folder tree rather than stopping at the top level. A positive result is subfolders whose names suggest internal material, such as recordings, backups, exports or invoices.
  • Open a sample of the files found. A positive result is content that is internal to the organisation or contains personal data of its users.
  • Check whether the same storage account is referenced from other pages or older versions of the site, since a link removed from one page may still be live elsewhere.
From the original on hack4bounty.com

The closing image is the author's sign-off, pointing readers to his PayPal page for support.

Glossary

  • HTTPS: the secure version of the protocol a browser uses to talk to a website, encrypting the traffic so others cannot read it in transit.
  • HTTP: the ordinary, unencrypted version of the same protocol; data travels in the clear.
  • Bug bounty: a scheme where a company offers a reward to people who report security flaws in its systems.
  • Bugcrowd: a bug bounty platform where companies list their systems and researchers submit findings.
  • P3 / P4: priority labels on such platforms, roughly medium and low severity.
  • Information disclosure: a weakness where private information that should stay inside an organisation can be seen by outsiders.
  • Google Drive: Google's online file storage and sharing service.
  • Brand assets: a company's official images and logos, meant to be used in its public materials.
  • Write access: permission to add or change files in a folder or system.
  • Read access: permission to view files without being able to change them.
  • PII: personally identifiable information, any detail that can identify a specific person, such as a name, phone number or address.
  • Authentication: the process of proving who you are, typically by logging in.
  • Enumerate: to go through a collection of items one by one to see what is there.
  • E-commerce: selling goods or services online.
  • Marketing page: a public page a company uses to promote itself or its products.

More by Sanjay Verdu

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.