Skip to content
Info disclosure Disclosed report Beginner

HackerOne Staging uses Production data for testing

An email from HackerOne's staging environment was sent to a real user, showing that production user data is being used in a lower testing environment. This could expose customer and hacker data to privacy risks.

tk0 Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 2 hours
  • Paid in 2 hours
  • Disclosed after 4 hours

Summary: Today I received an email related to smart rewards from HackerOne. This included staging environment details, such as:

sender: [email protected]
Privacy / Terms links pointing to domain: https://www.enorekcah.com/...

This basically tells us that HackerOne is using hacker data (real users) in their lower environment (STAGING). Usually this should be avoided and production data should not be copied into lower environments -> using live data for testing.

See attachment which holds a copy of received email: ████

Impact

Privacy issues related to customer/hacker data in HackerOne.

Cheers! @tk0

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

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is HackerOne itself, and the feature involved is the email that HackerOne sends for its smart rewards programme. The researcher, tk0, received one such email and noticed that it carried details belonging to a staging environment rather than production.

The two signals in the message were:

Text
sender: [redacted]
Privacy / Terms links pointing to domain: https://www.enorekcah.com/...

The sender address contains a +staging tag, and the Privacy and Terms links in the footer point at enorekcah.com, which is hackerone.com reversed. The researcher included a copy of the received email as an attachment, which is not reproduced here.

From those two details the researcher concluded that HackerOne is using real hacker data, meaning real users, in its lower environment. The report states the general principle that production data should not be copied into lower environments, and frames what was observed as live data being used for testing.

The report records a low severity and the weakness Privacy Violation, on the hackerone.com asset. It was disclosed on 5 November 2021. The report does not describe a bounty amount, a fix or any back and forth with the program.

Root cause

The report does not establish how the staging details came to appear in the message. The +staging tag in the sender and the reversed-domain links are both artefacts of a non production configuration: the first is a common way to route or label mail from a test environment, the second is a reversed form of the production domain.

Impact

The report keeps its claim narrow: privacy issues related to customer and hacker data in HackerOne. The researcher infers from the email that real user records exist in the lower environment and are being processed there.

The wider risk of production data in staging is that lower environments usually have weaker access controls, broader access for staff and contractors, less monitoring, and more copies of the data in backups and dumps. The report does not show any of that for this target, and it does not show that any data beyond the recipient's own was exposed. The finding is a signal about data handling practice, not a demonstrated extraction of other users' records.

How this kind of bug works

Test and staging environments are built to be convenient, not to hold sensitive records. Teams copy a production database into staging so that features behave realistically: real names, real email addresses, real reward histories. Once that copy exists, the data lives under the staging environment's controls, which are typically a shared password, a VPN with wide access, verbose logging, or a host that is easy to misconfigure.

The bug class covers two related failures. The first is data sprawl: production personal data present where it should not be. The second is environment confusion: a user facing artefact, an email, a link, a redirect, a notification, is generated by the wrong environment. The second is often the only visible symptom of the first, which is why it makes a useful detection signal.

Defences work at three layers. Data minimisation and masking keep personal data out of lower environments in the first place, or replace it with synthetic records. Environment isolation keeps staging credentials, domains and mail configuration separate from production so that a misconfiguration cannot reach a real user. Monitoring on outbound mail and on cross environment data flows catches the cases that slip through.

How to test for it

This is mostly an observation exercise rather than an injection exercise. The method:

  1. Register on the target with an address you control and trigger every notification the product offers: signup, password reset, reward or payout notices, invitations, digest emails, receipts.
  2. Read the raw message, not the rendered one. Check the envelope sender and the From header for environment tags such as +staging, +test, +dev, or subdomains like staging. and mail-test..
  3. Follow every link in the body and footer and record the host. Look for reversed domains, placeholder domains, internal hostnames, non standard ports, and links that resolve to a staging host.
  4. Compare what the email says about your account with what the production application shows. A mismatch in identifiers, balances or timestamps suggests the message was rendered from a different data set.
  5. Where the product exposes an API, check whether responses contain fields that look like test fixtures or obviously synthetic values, and whether identifiers in emails match identifiers in the production UI.

A positive result is a user facing artefact that demonstrably originates from a non production environment, or evidence that your own production record is being processed there. A stronger result is evidence that records belonging to other users are present in that environment, but obtaining that usually requires access you should not seek without explicit permission.

Common false positives: a marketing platform that legitimately uses a separate sending domain; a + tag used for routing or analytics rather than environment labelling; a CDN or link shortener domain that merely looks unusual; and a staging link that is dead and was never sent to a real user. Confirm that the artefact reached a real account before reporting.

How it is fixed

The standard fixes are:

  • Stop copying production personal data into lower environments. Use synthetic or anonymised data sets for testing, and mask fields such as email addresses and names where a realistic shape is needed.
  • Separate configuration per environment: sender addresses, link domains and API endpoints should come from environment specific config, never from a shared default that can fall through to production.
  • Add a guard that refuses to send mail to non test recipients from a non production environment, and tag or rewrite all outbound links there.
  • Audit existing lower environments for production records, purge them, and restrict access to those that must keep realistic data.

Hunting notes

This class hides wherever environments share code, templates or configuration: transactional email, password reset flows, invoice and receipt generation, webhooks, and any feature that renders a link back to the application. Recon signals worth watching are staging and test subdomains that resolve publicly, mail sending domains with environment words in them, and certificate transparency entries for hosts that look like copies of the main application.

To get a report accepted, show the artefact and the environment evidence together: the full headers, the link targets, and a clear statement of which account received it. Keep the impact claim to what you can prove. Saying that production data appears to be present in staging is defensible; saying that other users' data is exposed is not, unless you can show it. Programs tend to treat this as a low severity privacy issue, so the value of the report lies in the clarity of the evidence rather than in an inflated impact statement.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 7 min read.

What happened, in plain words

HackerOne runs a bug bounty platform: companies publish their software there and security researchers report flaws in it. Like most online services, HackerOne has more than one copy of its website. The one real users see is called production. There are also private copies used by the company's own staff to try out changes before releasing them; one of these is called staging. The idea is simple: you test on the copy, and only when everything works do you move it to the real thing. A useful everyday comparison is a restaurant that tries a new dish in the kitchen before putting it on the menu.

The feature in this report is an email. HackerOne sends emails to researchers about its smart rewards programme. The researcher, tk0, received one of these emails and looked closely at it. Two details stood out:

Text
sender: [redacted]
Privacy / Terms links pointing to domain: https://www.enorekcah.com/...

Line by line:

  • sender: [redacted] is the address the email came from. The part before the @ is no-reply+staging. The +staging tag is a label added to the address. Mail systems commonly use such tags to route or sort messages, and here the word itself says the message came from the staging setup rather than the live one.
  • Privacy / Terms links pointing to domain: https://www.enorekcah.com/... describes the links at the bottom of the email, the ones that normally take you to the privacy policy and the terms of service. Instead of pointing at hackerone.com, they point at enorekcah.com. Read that name backwards and you get hackerone.com.

The researcher attached a copy of the received email to the report; that attachment is not reproduced here.

Why do these two details matter? Because the email reached a real person, tk0, and carried staging details, the researcher concluded that real hacker data is present in the lower environment and is being processed there. The report states the general principle that production data should not be copied into lower environments, and describes what was seen as live data being used for testing.

The report records a low severity and the weakness Privacy Violation, on the hackerone.com asset. It was disclosed on 5 November 2021. It does not describe a bounty amount, a fix, or any exchange with the program.

In general, how this kind of bug works

Test and staging environments are built to be convenient, not to hold sensitive records. Teams copy a production database into staging so that features behave realistically: real names, real email addresses, real reward histories. Once that copy exists, the data lives under the staging environment's controls, which are typically a shared password, a VPN with wide access, verbose logging, or a host that is easy to misconfigure.

The bug class covers two related failures. The first is data sprawl: production personal data present where it should not be. The second is environment confusion: a user facing artefact, an email, a link, a redirect, a notification, is generated by the wrong environment. The second is often the only visible symptom of the first, which is why it makes a useful detection signal.

Defences work at three layers. Data minimisation and masking keep personal data out of lower environments in the first place, or replace it with synthetic records. Environment isolation keeps staging credentials, domains and mail configuration separate from production so that a misconfiguration cannot reach a real user. Monitoring on outbound mail and on cross environment data flows catches the cases that slip through.

How to test for it

This is mostly an observation exercise rather than an injection exercise. The method:

  1. Register on the target with an address you control and trigger every notification the product offers: signup, password reset, reward or payout notices, invitations, digest emails, receipts.
  2. Read the raw message, not the rendered one. Check the envelope sender and the From header for environment tags such as +staging, +test, +dev, or subdomains like staging. and mail-test..
  3. Follow every link in the body and footer and record the host. Look for reversed domains, placeholder domains, internal hostnames, non standard ports, and links that resolve to a staging host.
  4. Compare what the email says about your account with what the production application shows. A mismatch in identifiers, balances or timestamps suggests the message was rendered from a different data set.
  5. Where the product exposes an API, check whether responses contain fields that look like test fixtures or obviously synthetic values, and whether identifiers in emails match identifiers in the production UI.

A positive result is a user facing artefact that demonstrably originates from a non production environment, or evidence that your own production record is being processed there. A stronger result is evidence that records belonging to other users are present in that environment, but obtaining that usually requires access you should not seek without explicit permission.

Common false positives: a marketing platform that legitimately uses a separate sending domain; a + tag used for routing or analytics rather than environment labelling; a CDN or link shortener domain that merely looks unusual; and a staging link that is dead and was never sent to a real user. Confirm that the artefact reached a real account before reporting.

How it is fixed

The standard fixes are:

  • Stop copying production personal data into lower environments. Use synthetic or anonymised data sets for testing, and mask fields such as email addresses and names where a realistic shape is needed.
  • Separate configuration per environment: sender addresses, link domains and API endpoints should come from environment specific config, never from a shared default that can fall through to production.
  • Add a guard that refuses to send mail to non test recipients from a non production environment, and tag or rewrite all outbound links there.
  • Audit existing lower environments for production records, purge them, and restrict access to those that must keep realistic data.

Hunting notes

This class hides wherever environments share code, templates or configuration: transactional email, password reset flows, invoice and receipt generation, webhooks, and any feature that renders a link back to the application. Recon signals worth watching are staging and test subdomains that resolve publicly, mail sending domains with environment words in them, and certificate transparency entries for hosts that look like copies of the main application.

To get a report accepted, show the artefact and the environment evidence together: the full headers, the link targets, and a clear statement of which account received it. Keep the impact claim to what you can prove. Saying that production data appears to be present in staging is defensible; saying that other users' data is exposed is not, unless you can show it. Programs tend to treat this as a low severity privacy issue, so the value of the report lies in the clarity of the evidence rather than in an inflated impact statement.

Glossary

  • Production: the live version of a service that real users interact with.
  • Staging: a private copy of a service used by staff to test changes before they reach production.
  • Lower environment: any non production copy of a system, such as staging or test.
  • Bug bounty platform: a website where companies publish software for researchers to test and where flaws are reported.
  • Smart rewards: HackerOne's programme that sends emails about rewards to researchers.
  • Sender address: the email address a message appears to come from.
  • + tag: an extra label added to the part of an email address before the @, used to route or sort mail.
  • Domain: the name of a website, such as hackerone.com.
  • Placeholder domain: a stand-in name used during testing so that test links do not reach the real site.
  • Privacy Violation: the weakness category recorded for this report, covering mishandling of personal data.
  • Severity: a rating of how serious a finding is; here, low.
  • Disclosed: made public, as opposed to kept private between researcher and program.
  • Data sprawl: personal data existing in places where it should not.
  • Environment confusion: a user facing artefact being produced by the wrong environment.
  • Data minimisation: keeping only the personal data that is actually needed.
  • Masking: replacing real personal data with fake values that keep a realistic shape.
  • Synthetic data: invented records used for testing instead of real ones.
  • Environment isolation: keeping each environment's settings, credentials and domains separate.
  • Header: the hidden part of an email that carries routing and sender information.
  • Envelope sender: the address used behind the scenes to deliver a message, which can differ from the visible From address.
  • API: a way for software to talk to a service and get data back.
  • Test fixture: sample data prepared in advance for testing.
  • False positive: a finding that looks like a bug but is not.
  • CDN: a network of servers that delivers website content, often under its own domain.
  • Link shortener: a service that turns long links into short ones under its own domain.
  • Webhook: an automatic message one system sends to another when something happens.
  • Certificate transparency: public logs of security certificates issued for websites, useful for spotting hosts that look like copies of a main site.
  • Recon: the information gathering phase before testing.
  • Impact: the harm a finding could cause, which a report should state only as far as it can prove.

More by tk0

View all

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