Skip to content
Access control Disclosed report Beginner

Internal attachments can be exported via "Export as .zip" feature

The new "Export as .zip" feature let a user download the full contents of a report, including internal comments and attachments that should only be visible to team members. An attacker could therefore obtain internal attachments they were not meant to see.

japz Follow

Originally disclosed on HackerOne

Bounty$12,500 High 7.5 View original
  • Triaged in under an hour
  • Fixed in 2 hours
  • Paid in 30 hours
  • Disclosed after 30 hours

Summary by the program

This issue was introduced on Monday, November 21st and resolved one week later on Monday, November 28th, within 90 minutes of the report being filed. We'd like to thank @japzdivino for bringing this to our attention and for working with us as we resolved the issue.

A new "Export as .zip" feature was released that permits teams to export the full contents of a report (including any internal comments and attachments). This is a useful feature for when a team needs to relay the full contents of a report to other colleagues who may not have access to HackerOne.

In this particular case, the vulnerability allowed for downloading internal attachments that would normally only be visible by team members. As part of our standard Root Cause Analysis, we also discovered that inline attachments could be misused to potentially view internal attachments at a future point based on guessing attachment identifiers.

HackerOne performed a thorough investigation of all uses of the "Export as .zip" functionality and have found no evidence of malicious exploitation of this vulnerability.

Note that although #182358 looks similar on the surface, it is unrelated, as it was fixed before this issue was introduced.

Summary by the researcher

Here is my blog: https://medium.com/pinoywhitehat/security-teams-internal-attachments-can-be-exported-via-export-as-zip-feature-on-hackerone-35ca6ec2bf8b

The report

Hello HackerOne Team

This newly disclosed report: #182358 Partial disclosure of report activity through new "Export as .zip" feature was not completely fix.

I have found that i can still view the attachment after it is being removed on the thread.

Best PoC is this #182358 since this is the newly fix and disclosed.

Steps to reproduce

  1. Go to https://hackerone.com/reports/182358
  2. Export the report as .zip
  3. Now extract the .zip file (HackerOne_Report-security#182358.zip)
  4. You will see that the image is still there, but base on the thread, you guys removed it on disclosed report.

I have attached the .zip file downloaded and save on my local and i can still view the removed image.

Disclosed partially removed attachment:

Regards Japz

The original report as published on HackerOne, by japz. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 reports can contain internal comments and attachments that are visible only to members of the security team handling the report. To let a team relay the full contents of a report to colleagues who do not have access to HackerOne, the platform released an "Export as .zip" feature that packages the complete report, including internal comments and attachments, into a downloadable archive.

The report here concerns that export feature. The researcher found that an attachment which had been removed from a report thread could still be retrieved by exporting the report as a .zip archive. The report was filed against HackerOne itself and was disclosed on 30 November 2016, with a severity of high (CVSS 7.5) and a bounty of 12,500 USD.

Setup

The report does not describe any special accounts, roles, tools or versions. The only precondition visible in the text is a report that has an attachment which was later removed from the thread, and the ability to use the "Export as .zip" feature on that report. The researcher used the previously disclosed report #182358 as the proof of concept, describing it as the newly fixed and disclosed report.

Finding it

The researcher's starting point was an earlier, already disclosed report, #182358, titled Partial disclosure of report activity through new "Export as .zip" feature. In the researcher's view that fix was incomplete. The observation was that an attachment could still be viewed after it had been removed from the thread: the export archive continued to contain the removed image even though the thread no longer showed it.

That is the mismatch that made the behaviour look wrong. The thread is the place where a team member removes an attachment they no longer want visible, but the export path produced a file that still carried the removed content.

Exploitation

Step 1: Open the report

The researcher used the disclosed report #182358 as the proof of concept and started from its page:

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

This is the report whose attachment had been removed on the disclosed version of the thread.

Step 2: Export the report as .zip

From the report, the researcher used the "Export as .zip" feature to download the report contents as an archive.

Step 3: Extract the archive

The downloaded archive is named:

Text
HackerOne_Report-security#182358.zip

Extracting it produces the exported report contents.

Step 4: Observe the removed attachment

Inside the extracted archive the image is still present, even though, as the researcher puts it, the image was removed on the disclosed report thread. The researcher downloaded the .zip file, saved it locally, and could still view the removed image from it. The report includes a section labelled Disclosed partially removed attachment to illustrate this, but the text itself contains no further request, response or file listing beyond the archive name above.

Root cause

The report itself does not describe the implementation. What it establishes is the observable behaviour: removing an attachment from the thread did not remove it from what the export feature packages. The export therefore drew on content that the thread no longer exposed, rather than on the current, visible state of the report.

The program's own summary adds a second, related weakness found during its root cause analysis: inline attachments could be misused to potentially view internal attachments at a future point based on guessing attachment identifiers. The program says inline attachments could be misused to potentially view internal attachments at a future point based on guessing attachment identifiers. The program also notes that #182358 looks similar on the surface but is unrelated, because it was fixed before this issue was introduced.

Impact

Under the conditions in the report, a party able to export a report as a .zip could obtain an attachment that the team had removed from the thread, and would normally expect to be gone. The program describes the vulnerability as allowing the download of internal attachments that would normally only be visible by team members. The additional inline-attachment weakness could, per the program, potentially allow internal attachments to be viewed at a future point by guessing attachment identifiers.

The program states that it investigated all uses of the "Export as .zip" functionality thoroughly and found no evidence of malicious exploitation of this vulnerability.

Fix

The program reports that the issue was introduced on Monday, 21 November and resolved one week later on Monday, 28 November, within 90 minutes of the report being filed. The report does not describe the code change itself. The program also describes the inline-attachment weakness found during its root cause analysis.

Variants to test

  • Remove an attachment from a thread, then export the report as .zip and inspect the archive for the removed file. A positive result is the removed attachment appearing in the extracted contents.
  • Compare what the thread shows with what the export contains for comments and attachments that were edited or deleted. A positive result is any content present in the archive but absent from the current thread.
  • Where attachment identifiers appear in URLs or archive contents, try neighbouring or otherwise guessable identifiers against internal attachments. A positive result is retrieving an attachment that the requesting account should not be able to see.
  • Apply the same check to other export or archive features that package a record's full contents, such as ticket, issue or report exports. A positive result is exported content that the live view no longer exposes.

Hunting notes

This kind of bug tends to sit in features that assemble a complete record for download: exports, archives, backups and "send full context" options. The signal is a gap between two views of the same object, where the live page hides or removes something but the export path still reaches it. Here the researcher showed impact by taking an already disclosed report whose attachment had been removed, exporting it, and demonstrating that the removed image was still viewable from the saved archive.

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

What happened, in plain words

HackerOne is a website where security researchers report bugs to companies. Each report is like a private conversation thread: the researcher and the company's security team can post comments and attach files (screenshots, logs, and so on). Some of those comments and attachments are internal, meaning only the security team can see them, not the public.

To make it easier for a security team to share a whole report with colleagues who do not have a HackerOne account, the platform added a feature called "Export as .zip". A .zip file is a single file that bundles other files together, like a folder you can email. The export feature packages the entire report, including internal comments and attachments, into one downloadable .zip archive.

The problem: if a team member removed an attachment from the report thread (for example, because it contained something they no longer wanted to share), the export feature still included that removed attachment in the .zip file. So someone who exported the report could open the archive and see the attachment that the team thought was gone.

The researcher who found this used an earlier, already public report (#182358) as a demonstration. That report had an attachment that had been removed from its thread. The researcher exported that report as a .zip, extracted it, and found the removed image still inside. The report was filed against HackerOne itself, rated high severity (CVSS 7.5), and earned a bounty of 12,500 USD. It was disclosed on 30 November 2016.

Context

HackerOne reports can contain internal comments and attachments that are visible only to members of the security team handling the report. To let a team relay the full contents of a report to colleagues who do not have access to HackerOne, the platform released an "Export as .zip" feature that packages the complete report, including internal comments and attachments, into a downloadable archive.

The report here concerns that export feature. The researcher found that an attachment which had been removed from a report thread could still be retrieved by exporting the report as a .zip archive. The report was filed against HackerOne itself and was disclosed on 30 November 2016, with a severity of high (CVSS 7.5) and a bounty of 12,500 USD.

Setup

The report does not describe any special accounts, roles, tools or versions. The only precondition visible in the text is a report that has an attachment which was later removed from the thread, and the ability to use the "Export as .zip" feature on that report. The researcher used the previously disclosed report #182358 as the proof of concept, describing it as the newly fixed and disclosed report.

Finding it

The researcher's starting point was an earlier, already disclosed report, #182358, titled Partial disclosure of report activity through new "Export as .zip" feature. In the researcher's view that fix was incomplete. The observation was that an attachment could still be viewed after it had been removed from the thread: the export archive continued to contain the removed image even though the thread no longer showed it.

That is the mismatch that made the behaviour look wrong. The thread is the place where a team member removes an attachment they no longer want visible, but the export path produced a file that still carried the removed content.

Exploitation

Step 1: Open the report

The researcher used the disclosed report #182358 as the proof of concept and started from its page:

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

This is the report whose attachment had been removed on the disclosed version of the thread.

Step 2: Export the report as .zip

From the report, the researcher used the "Export as .zip" feature to download the report contents as an archive.

Step 3: Extract the archive

The downloaded archive is named:

Text
HackerOne_Report-security#182358.zip

Extracting it produces the exported report contents.

Step 4: Observe the removed attachment

Inside the extracted archive the image is still present, even though, as the researcher puts it, the image was removed on the disclosed report thread. The researcher downloaded the .zip file, saved it locally, and could still view the removed image from it. The report includes a section labelled Disclosed partially removed attachment to illustrate this, but the text itself contains no further request, response or file listing beyond the archive name above.

Root cause

The report itself does not describe the implementation. What it establishes is the observable behaviour: removing an attachment from the thread did not remove it from what the export feature packages. The export therefore drew on content that the thread no longer exposed, rather than on the current, visible state of the report.

The program's own summary adds a second, related weakness found during its root cause analysis: inline attachments could be misused to potentially view internal attachments at a future point based on guessing attachment identifiers. The program says inline attachments could be misused to potentially view internal attachments at a future point based on guessing attachment identifiers. The program also notes that #182358 looks similar on the surface but is unrelated, because it was fixed before this issue was introduced.

Impact

Under the conditions in the report, a party able to export a report as a .zip could obtain an attachment that the team had removed from the thread, and would normally expect to be gone. The program describes the vulnerability as allowing the download of internal attachments that would normally only be visible by team members. The additional inline-attachment weakness could, per the program, potentially allow internal attachments to be viewed at a future point by guessing attachment identifiers.

The program states that it investigated all uses of the "Export as .zip" functionality thoroughly and found no evidence of malicious exploitation of this vulnerability.

Fix

The program reports that the issue was introduced on Monday, 21 November and resolved one week later on Monday, 28 November, within 90 minutes of the report being filed. The report does not describe the code change itself. The program also describes the inline-attachment weakness found during its root cause analysis.

Variants to test

  • Remove an attachment from a thread, then export the report as .zip and inspect the archive for the removed file. A positive result is the removed attachment appearing in the extracted contents.
  • Compare what the thread shows with what the export contains for comments and attachments that were edited or deleted. A positive result is any content present in the archive but absent from the current thread.
  • Where attachment identifiers appear in URLs or archive contents, try neighbouring or otherwise guessable identifiers against internal attachments. A positive result is retrieving an attachment that the requesting account should not be able to see.
  • Apply the same check to other export or archive features that package a record's full contents, such as ticket, issue or report exports. A positive result is exported content that the live view no longer exposes.

Hunting notes

This kind of bug tends to sit in features that assemble a complete record for download: exports, archives, backups and "send full context" options. The signal is a gap between two views of the same object, where the live page hides or removes something but the export path still reaches it. Here the researcher showed impact by taking an already disclosed report whose attachment had been removed, exporting it, and demonstrating that the removed image was still viewable from the saved archive.

Glossary

  • API: A set of rules that lets one piece of software talk to another, like a waiter taking your order to the kitchen.
  • Attachment: A file (image, document, log) added to a report or comment.
  • Authorisation: The process of checking whether a user is allowed to do something, like a bouncer checking a guest list.
  • Bounty: A reward paid to a researcher for finding and reporting a security bug.
  • Cookie: A small piece of data a website stores in your browser to remember who you are, like a wristband at an event.
  • CVSS: A standard score (0 to 10) that rates the severity of a security vulnerability.
  • Export: A feature that packages data from a website into a file you can download.
  • Identifier: A unique name or number used to refer to a specific item, such as an attachment ID.
  • Inline attachment: An attachment displayed directly inside a comment or message, rather than as a separate download.
  • Internal comment: A comment visible only to members of the security team, not to the public.
  • Proof of concept (PoC): A demonstration that a vulnerability is real, often using a specific example.
  • Root cause analysis: The process of finding the underlying reason a bug happened, not just fixing the symptom.
  • Severity: How serious a vulnerability is, often expressed as low, medium, high, or critical.
  • Token: A piece of data used to prove identity or permission, like a temporary pass.
  • Vulnerability: A weakness in software that can be exploited to cause harm.
  • .zip: A file format that compresses and bundles multiple files into one archive.

More by japz

View all

43 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.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.