Skip to content
Info disclosure Write-up Beginner

Security teams Internal attachments can be exported via “Export as .zip” feature on HackerOne

The 'Export as .zip' feature on HackerOne included attachments that had been removed from a disclosed report, allowing anyone to download them. An attacker could export a report and extract internal attachments that were meant to be hidden.

Japz Divino Follow

Published on medium.com

Bounty$12,500 View original

{{media:0}}

Japz Divino, on medium.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. 5 min read.

Context

HackerOne is a bug bounty platform. When a program publicly discloses a report, the platform supports two kinds of disclosure: Full disclosure, which includes vulnerability information, attachments and the full timeline of activity, and limited disclosure, which restricts visibility to a summary of the vulnerability and the timeline of activity (comments or actions).

On 14 November 2016 HackerOne released a feature that lets anyone export a disclosed report in two ways:

  • View raw text: shows a text area where you can copy and paste the report timeline.
  • Export as .zip: downloads the complete report, including attachments, as a zip archive.
Image for post
Popup modal when you try to export the report as raw text or .zip file in hackerone From the original on medium.com

The popup modal shown when you try to export the report as raw text or as a .zip file.

The bug described here is an information disclosure (CWE-200) in that export feature, rated High (7.5) by the author. It was found on HackerOne's own bug bounty program in late 2016 and, according to the author, was the highest bounty amount paid in a single submission on that program so far, because of its business impact.

Setup

The research needed only access to publicly disclosed reports. The precondition is a disclosed report where an attachment was removed at the researcher's request. The author tested on 17 November 2016, three days after the export feature shipped, and again on 29 November 2016.

Finding it

The first attempt was straightforward: export a report that contains redacted text and check whether the redacted text appears in the raw text file. It did not, so the author stopped there.

On 29 November 2016, browsing the HackerOne hacktivity timeline, the author saw a newly disclosed report by @faisalahmed about the same export feature: he could still view redacted text in a report when exporting it with View raw text. That report is https://hackerone.com/reports/182358, and it was submitted within 24 hours of the feature's release, which explains why the author's own test three days later found nothing.

Out of curiosity about whether that bug was really fixed, the author pressed the export button on report #182358 and exported it as a zip file to include everything on the report.

Image for post
Image for post From the original on medium.com

After extracting the zip, the archive contained a text file and an image file. The text file confirmed that the redacted-text bug was fixed. The image, however, was a screenshot that appeared to be a PoC used on the report, and it was not visible when reading the report itself. The author remembered that faisalahmed had commented asking to remove some screenshots from the report, and concluded that the image in the exported archive was the one that had been requested for removal.

Exploitation

The author reported it to the HackerOne security team with these steps:

Step 1: Open the disclosed report

HTTP
https://hackerone.com/reports/182358

This is faisalahmed's report, which is publicly disclosed.

Step 2: Export the report as .zip

Use the Export as .zip option on the report. The platform builds an archive of the complete report, including attachments.

Step 3: Extract the archive

Text
HackerOne_Report-security#182358.zip

Step 4: Inspect the contents

The image is still inside the archive, even though, based on the thread, the HackerOne team had removed the image from the disclosed report at the researcher's request. The visible report no longer shows it, but the export still ships it.

Root cause

The report does not describe the cause; the export still included an attachment removed from the disclosed report. The report does not describe the implementation, so the exact mechanism is not stated; likely the export queried attachments without filtering out the ones that had been removed.

The text file in the archive confirmed that the earlier redacted-text bug was fixed.

Impact

In this case, exporting the disclosed report as a zip returned an attachment that had been removed from the public view. In this case the exposed file was a screenshot the researcher had asked to be removed, which is exactly the kind of material a limited disclosure or an attachment removal is meant to hide.

Fix

HackerOne confirmed the vulnerability 12 minutes after the report was filed and triaged it.

The fix was released in production later that morning. After the fix, when you export a report whose attachments were removed, those attachments no longer appear in the zip file; only the raw text file of the report submission is included.

Two days after resolution, the bounty was paid:

Disclosure timeline

Time Event
2016-11-29 03:04:52 Report submitted to HackerOne security team
2016-11-29 03:16:36 Security team acknowledges and triages the report
2016-11-29 04:36:34 Bug fixed and released to production
2016-11-29 04:59:23 Researcher verifies the fix
2016-11-30 09:15:51 $12,500 bounty and swag rewarded

The original submission is Internal attachments can be exported via "Export as .zip" feature.

Variants to test

  • Other export formats on the same platform. Try every export path (raw text, zip, API endpoints that return report data) against a report with removed attachments or redacted fields. A positive result is any removed attachment or redacted content appearing in the export output.
  • Attachment removal versus edit history. Remove an attachment from a report you control, then export it and check whether the file is still packaged. A positive result is the removed file present in the archive.
  • Limited disclosure reports. Export a report under limited disclosure and inspect the archive for attachments or timeline entries that the limited view hides. A positive result is content beyond the summary and timeline.
  • Cached or generated archives. Request the same export twice, before and after an attachment is removed, and compare the archives. A positive result is the second archive still containing the removed file.
  • Deleted comments with attachments. Post a comment with an attachment, delete the comment, then export the report. A positive result is the attachment from the deleted comment inside the zip.
  • Authorisation boundaries on export. Export reports you can see but do not own, including ones where the reporter asked for redaction, and check whether the archive matches the visible report exactly. Any mismatch is worth reporting.

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. 11 min read.

What happened, in plain words

HackerOne is a website where companies (called "programs") ask independent security researchers to find bugs in their software and pay them for it. When a researcher finds a bug, they write a report on HackerOne describing it. A report can contain text, comments, and attachments such as screenshots. Later, the company and the researcher can decide to make that report public, so other people can read it and learn from it.

In November 2016, HackerOne added a button that lets anyone download a public report as a zip file, a single file that behaves like a folder and can hold several files inside it. The idea was convenience: instead of copying text by hand, you get the whole report in one download. The author of this write-up, Japz Divino, exported a public report as a zip to check whether an earlier bug was fixed and noticed something odd. The zip contained a screenshot that had been removed from the report page. The researcher who wrote that report had asked for the screenshot to be taken down, and the HackerOne team had removed it from what visitors see, but the download still handed it out.

That is the whole bug: a file that was supposed to be hidden was still reachable through a different door. In security language this is called information disclosure, meaning private or removed information can still be read by someone who should not see it. The author rated it High (7.5), and HackerOne paid $12,500 for it, which the author says was the highest single bounty on HackerOne's own bug bounty program at that point, because of its business impact, meaning the real-world harm the leak could cause.

Background: reports, disclosure and exports

To follow the story you only need a few ideas.

A bug bounty program is a deal between a company and outside researchers: find flaws in our systems, tell us privately, and we pay you. HackerOne runs such a program for its own platform too, so researchers can report bugs in HackerOne itself.

A report is the page where a researcher describes a bug. It has a description, a timeline of comments and actions, and often attachments, which are extra files such as screenshots used as proof. Proof of concept, or PoC, is the material that shows a bug really works; a screenshot is a common form of PoC.

When a report is made public, HackerOne offers two levels of disclosure:

  • Full disclosure shows the vulnerability information, the attachments and the full timeline of activity.
  • Limited disclosure shows only a summary of the vulnerability and the timeline of activity (comments or actions).

Think of it like a school notice board. Full disclosure pins the whole file, including the photos. Limited disclosure pins only a short summary and the list of who said what and when.

On 14 November 2016 HackerOne released a feature to export a disclosed report in two ways:

  • View raw text: shows a text area where you can copy and paste the report timeline.
  • Export as .zip: downloads the complete report, including attachments, as a zip archive.
Image for post
Popup modal when you try to export the report as raw text or .zip file in hackerone From the original on medium.com

The image shows the popup modal, a small window that appears over the page, when you try to export the report as raw text or as a .zip file in HackerOne.

A zip archive is a container file. It is like an envelope that can hold several documents; you download one file, then "extract" it, which means unpacking the envelope so the individual files appear on your computer.

The bug described here is an information disclosure (CWE-200) in that export feature. CWE-200 is simply the catalogue number for this kind of weakness in a public list of software weaknesses. The author rated it High (7.5). The number in brackets is a severity score, a standard way of saying how serious a flaw is; higher means worse. It was found on HackerOne's own bug bounty program in late 2016 and, according to the author, was the highest bounty amount paid in a single submission on that program so far, because of its business impact.

Setting up

The research needed only access to publicly disclosed reports; no special tools were used.

The precondition is a disclosed report where an attachment was removed at the researcher's request. In other words, the page still exists and is public, but one file that used to be on it is gone from view. The question the author ended up asking was simple: is it really gone everywhere, or only from the page?

The author tested on 17 November 2016, three days after the export feature shipped, and again on 29 November 2016.

Finding it

The first attempt was straightforward: export a report that contains redacted text and check whether the redacted text appears in the raw text file. Redacted means deliberately blacked out or removed, the way a document can have a name crossed out before it is published. The reasoning was: if the page hides something, does the export hide it too? It did not leak, so the author stopped there.

On 29 November 2016, browsing the HackerOne hacktivity timeline (the public feed of disclosed reports), the author saw a newly disclosed report by @faisalahmed about the same export feature: he could still view redacted text in a report when exporting it with View raw text. That report is https://hackerone.com/reports/182358, and it was submitted within 24 hours of the feature's release, which explains why the author's own test three days later found nothing: the hole had already been reported and closed by then.

Out of curiosity about whether that bug was really fixed, the author pressed the export button on report #182358 and exported it as a zip file to include everything on the report. The goal was not to attack anything; it was to check whether the earlier fix worked.

Image for post
Image for post From the original on medium.com

After extracting the zip, the archive contained a text file and an image file. The text file confirmed that the redacted-text bug was fixed. The image, however, was a screenshot that appeared to be a PoC used on the report, and it was not visible when reading the report itself. The author remembered that faisalahmed had commented asking to remove some screenshots from the report, and concluded that the image in the exported archive was the one that had been requested for removal.

This is the key moment of the whole story. The page showed one thing; the download showed another. The removed screenshot was still travelling inside the zip.

Reproducing it

The author reported it to the HackerOne security team with these steps. Each step is something you could do yourself in a browser.

Step 1: Open the disclosed report

HTTP
https://hackerone.com/reports/182358

This is a web address, the same kind you type in the address bar of a browser. It points to faisalahmed's report, which is publicly disclosed, so anyone can open it. Opening it first matters because you need to see what the public version looks like before comparing it with the download.

Step 2: Export the report as .zip

Use the Export as .zip option on the report. The platform builds an archive of the complete report, including attachments. This is a normal button in the page, not a trick; that is what makes the bug serious. No special request is needed, just the feature as designed.

Step 3: Extract the archive

Text
HackerOne_Report-security#182358.zip

This is the name of the file that lands on your computer. The #182358 part matches the report number, so you can tell which report the archive belongs to. Extracting it means using your computer's built-in zip tool to unpack the envelope and see the files inside.

Step 4: Inspect the contents

The image is still inside the archive, even though, based on the thread, the HackerOne team had removed the image from the disclosed report at the researcher's request. The visible report no longer shows it, but the export still ships it. Comparing what the page shows with what the download contains is the whole test, and it needs no technical skill beyond opening a file.

Why it happened

The report does not describe the cause; the export still included an attachment removed from the disclosed report.

A useful comparison is a library. If a librarian removes a book from the shelf but the catalogue still lists it, anyone who orders by catalogue number will still get the book. The shelf (the report page) was cleaned; the catalogue (the export) was not.

The report does not describe the implementation, so the exact mechanism is not stated; likely the export queried attachments without filtering out the ones that had been removed.

The text file in the archive confirmed that the earlier redacted-text bug was fixed. Two doors into the same room had been checked, and only one had been locked.

Impact

In this case, exporting the disclosed report as a zip returned an attachment that had been removed from the public view. In this case the exposed file was a screenshot the researcher had asked to be removed, which is exactly the kind of material a limited disclosure or an attachment removal is meant to hide.

Why does that matter enough to pay $12,500? Because removing an attachment is a promise. A researcher may ask for a screenshot to be taken down because it contains something they do not want public, and if the removal only hides it on the page while the download still hands it out, the promise is broken. The business impact is trust: people rely on the platform to honour takedowns.

The fix

HackerOne confirmed the vulnerability 12 minutes after the report was filed and triaged it. Triaged means the security team reviewed the report, accepted that it was a real bug, and started handling it.

The fix was released in production later that morning. "In production" means on the live website that real users visit, not on a test copy. After the fix, when you export a report whose attachments were removed, those attachments no longer appear in the zip file; only the raw text file of the report submission is included.

Two days after resolution, the bounty was paid:

Disclosure timeline

Time Event
2016-11-29 03:04:52 Report submitted to HackerOne security team
2016-11-29 03:16:36 Security team acknowledges and triages the report
2016-11-29 04:36:34 Bug fixed and released to production
2016-11-29 04:59:23 Researcher verifies the fix
2016-11-30 09:15:51 $12,500 bounty and swag rewarded

The original submission is Internal attachments can be exported via "Export as .zip" feature.

Variants to test

Once you understand the shape of the bug, you can look for the same shape elsewhere. The pattern is always: something is hidden in one view, and you check whether another view still shows it.

  • Other export formats on the same platform. Try every export path (raw text, zip, API endpoints that return report data) against a report with removed attachments or redacted fields. An API endpoint is a web address that returns data in a machine-readable form rather than a web page; think of it as a serving hatch next to the shop counter. A positive result is any removed attachment or redacted content appearing in the export output.
  • Attachment removal versus edit history. Remove an attachment from a report you control, then export it and check whether the file is still packaged. A positive result is the removed file present in the archive. Testing on your own report keeps it safe and legal.
  • Limited disclosure reports. Export a report under limited disclosure and inspect the archive for attachments or timeline entries that the limited view hides. A positive result is content beyond the summary and timeline.
  • Cached or generated archives. Request the same export twice, before and after an attachment is removed, and compare the archives. A cache is a stored copy kept to save time, like keeping yesterday's newspaper on the counter. A positive result is the second archive still containing the removed file.
  • Deleted comments with attachments. Post a comment with an attachment, delete the comment, then export the report. A positive result is the attachment from the deleted comment inside the zip.
  • Authorisation boundaries on export. Export reports you can see but do not own, including ones where the reporter asked for redaction, and check whether the archive matches the visible report exactly. Authorisation means the rules about who is allowed to do what. Any mismatch is worth reporting.

Glossary

  • Bug bounty program: an arrangement where a company pays outside researchers for finding and privately reporting flaws in its systems.
  • Report: the page on a bug bounty platform where a researcher describes a bug, with a description, a timeline and often attachments.
  • Attachment: an extra file, such as a screenshot, added to a report as evidence.
  • PoC (proof of concept): the material that demonstrates a bug really works, for example a screenshot.
  • Disclosure: making a report public. Full disclosure shows vulnerability information, attachments and the full timeline; limited disclosure shows only a summary and the timeline of activity.
  • Redacted: deliberately removed or blacked out before publication.
  • Export: downloading the contents of a report as a file, either as raw text or as a zip archive.
  • Zip archive: a single file that acts as a container for several files, which you extract to see them individually.
  • Extract: unpacking a zip archive so its individual files appear on your computer.
  • Popup modal: a small window that appears over the page and must be dealt with before you continue.
  • Information disclosure (CWE-200): a weakness where information that should be hidden can still be read; CWE-200 is its entry in a public catalogue of software weaknesses.
  • Severity score: a number expressing how serious a flaw is; higher means worse. The author rated this one High (7.5).
  • Business impact: the real-world harm a flaw could cause to a company or its users, such as loss of trust.
  • Hacktivity timeline: the public feed of disclosed reports on HackerOne.
  • Triage: the security team's review in which a report is accepted as a real bug and handling begins.
  • Production: the live website that real users use, as opposed to a test copy.
  • API endpoint: a web address that returns data in a machine-readable form rather than a web page.
  • Cache: a stored copy of something kept to save time on later requests.
  • Authorisation: the rules about who is allowed to do what.
  • Bounty: the money paid to a researcher for a valid report.
  • Swag: promotional items, such as clothing, given as an extra reward.

More by Japz Divino

View all

5 more disclosed reports, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

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.