Skip to content
Access control Disclosed report Intermediate

SECURITY: Referencing previous Reports attachment_IDs on new Reports via Draft_Sync DELETES Attachments

An attacker could reference an attachment ID from a previous report in a new report via draft sync, causing the original attachment to be deleted from the first report. This only works if both reports belong to the same reporter.

nismo Follow

Originally disclosed on HackerOne

  • Triaged in 9 hours
  • Fixed in 9 days
  • Paid in 16 days
  • Disclosed after 45 days

Issue New HackerOne exciting addition is the ability to include inline images by using their reference_ID, which is in this case {Fxxxxx}. The reference ID is bind to the its report Context_ID and cant be referenced by others (unique reference

Is seems that if the reference_ID is used in another newest report the attachment is deleted from the original report

Note: Reports must belong to the same reporter

POC

  1. Create a Report with an attachment and file it to any team. Notice the reference_ID (Fxxxxx)
  2. Create a new Report for any team and reference the ID via a POST in draft_Sync POST /security/reports/draft_sync HTTP/1.1 As soon as you do the POST Go to the https://hackeone/security/reports/new You will see the reference_ID attachment attached.
  3. Go to the report in 1. The reference_ID and attachment is deleted for the original report!
deletepoc.png
deletepoc.png From the original on HackerOne

Hope it will be fixed!

Thanks!

The original report as published on HackerOne, by nismo. 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 the draft sync endpoint does not properly validate that the referenced attachment belongs to the current report, leading to deletion from the original report.

Impact

An attacker could delete attachments from their own previous reports, potentially causing loss of evidence or information.

What the attacker needed

Attacker has an account; reports belong to same reporter

The fix

The draft sync endpoint should validate that the referenced attachment belongs to the current report.

How it was found

  1. Create a report with an attachment and note its reference ID.
  2. Create a new report and send a POST request to the draft sync endpoint referencing that ID.
  3. Visit the new report page to see the attachment attached.
  4. Return to the original report and observe that the attachment is deleted.

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.

When you upload a file to a report, it gets a unique ID. If you use that same ID in a new report, the system mistakenly removes the file from the old report. This only happens if both reports are yours.

What is Access control?

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.

More by nismo

View all

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