Skip to content
Access control Disclosed report Beginner

Order notifications being sent for a deactivated staff account

A deactivated staff account continued to receive email notifications for new orders because the notification setting was not disabled when the account was deactivated. An attacker with a deactivated staff account could still learn order details for a store they should no longer have access to.

newbie_101 Follow

Originally disclosed on HackerOne

Bounty$500 Low 3.4 View original
  • Triaged in 4 days
  • Fixed in 13 days
  • Paid in 4 days
  • Disclosed after 13 days

Summary by the program

@newbie_101 noticed that order notifications associated with a staff member's account continued to be sent even after that staff account was deactivated. This could result in unintentional disclosure of order details. We addressed the issue by adding logic to automatically disable notifications at the time an account is deactivated.

The report

Hi,

Steps to reproduce :

  • Have a staff account with settings permission
  • The staff account can go to notifications & add himself so as to get new order notifications
  • Now,deactivate the staff account via the admin.
  • Create a new order,you shall see that the staff still receives the order notification via email.
  • This happens because the account still exists,but if staff deleted , then there is no account,hence no email) so no notification.

Impact

  • Info disclosure about a customer of a store the staff account cant have access to.

The original report as published on HackerOne, by newbie_101. 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 a Shopify store admin, and the feature involved is staff accounts and their notification settings. and the feature involved is staff accounts and their notification settings. A staff account with settings permission can configure notifications so that it receives an email for each new order. The researcher, newbie_101, found that this notification keeps arriving after the staff account has been deactivated.

The reproduction steps are short and are given in full:

Text
- Have a staff account with settings permission
- The staff account can go to notifications & add himself so as to get new order notifications
- Now,deactivate the staff account via the admin.
- Create a new order,you shall see that the staff still receives the order notification via email.
- This happens because the account still exists,but if staff deleted , then there is no account,hence no email) so no notification.

The researcher's own explanation of the mechanism is that deactivation leaves the account record in place, so the notification configuration attached to it survives and the mail is still delivered. Deleting the staff member, by contrast, removes the account entirely, and with it the address that would receive the notification.

The program summarised the finding as order notifications continuing to be sent for a deactivated staff account, which could result in unintentional disclosure of order details. The fix was to add logic that automatically disables notifications at the moment an account is deactivated. The report was rated low severity with a CVSS score of 3.4, classified as improper authorization, and paid a bounty of 500.00 USD. It was disclosed on 2018-04-12.

Root cause

The researcher's explanation is that deactivation leaves the account record in place, so the notification setting attached to it survives. Deactivating a staff account revokes the ability to log in, but the notification subscription is stored against the account and is evaluated independently when an order is created. Nothing in the order notification path checks whether the recipient account is still active, so the mail goes out to an address that should no longer be receiving store data. The program addressed the issue by adding logic to automatically disable notifications when an account is deactivated.

Impact

The report frames the impact as information disclosure about a customer of a store that the staff account can no longer access. Order notifications typically carry customer and order detail, so a person whose access was deliberately withdrawn continues to receive that data by email. The report does not describe what a specific notification contains, so the exact fields exposed are not established here. The report frames the impact as information disclosure about a customer of a store the staff account can no longer access.

How this kind of bug works

Account state and side-channel delivery are usually modelled separately. Authentication checks whether an account may act; notification, webhook and subscription systems ask a different question, namely which addresses or endpoints should receive an event. When an account is disabled, the first check is updated and the second is forgotten. The result is a residual channel: the user cannot log in, but data still flows out to them.

The same pattern appears wherever a principal can register a destination for events: email notification lists, webhook endpoints, API keys, personal access tokens, forwarding rules, alerting integrations and export schedules. Deactivation, suspension, role removal and offboarding are the transitions that should sever these channels, and they are exactly the transitions that are easy to implement incompletely. The bug class is an authorization failure in the broad sense: a principal that should no longer be authorised to receive data continues to receive it.

How to test for it

  1. Identify every place a user can attach a destination to their account: notification preferences, webhook URLs, API tokens, email forwarding, integrations and scheduled reports.
  2. Register a destination you control, for example a mailbox or an endpoint that logs requests.
  3. Trigger the event that the destination subscribes to, and confirm delivery while the account is active. This is your baseline.
  4. Have an administrator deactivate, suspend or remove the role from the account, using the product's own administrative function.
  5. Trigger the same event again and watch the destination. A positive result is a delivery that still arrives after deactivation, with content that reflects the new event rather than a queued or retried older one.
  6. Repeat for the other transitions: role downgrade, removal from an organisation, password reset, and deletion where the product distinguishes deletion from deactivation.

A positive result looks like a fresh notification, webhook call or report arriving at your controlled destination after the account's access has been withdrawn. Common false positives are in-flight messages queued before deactivation, retries of an earlier delivery, and caches. To rule these out, use a distinct event after deactivation, such as a new order with a recognisable marker, and check timestamps and content. Also confirm that the administrative action actually took effect, for example by verifying that login now fails, so you are not reporting a deactivation that never happened.

How it is fixed

The standard fix is to make deactivation a single operation that also disables or removes every outbound channel tied to the account: notification subscriptions, webhook endpoints, tokens and integrations. Delivery code should additionally check the recipient's current state at send time rather than trusting a stored subscription, so that any channel missed by the deactivation path is still suppressed. Products that distinguish deactivation from deletion should apply the same cleanup to both, and reactivation should require the user to re-register destinations deliberately rather than restoring them silently.

Hunting notes

This bug class hides in features that were built after the account lifecycle was designed: notification preferences, alerting, webhooks and reporting are often added later and wired to the account record without hooks into the deactivation flow. Recon signals include admin panels with a staff or team section, per-user notification settings, and any product where an account can be disabled rather than deleted. Multi-tenant SaaS and e-commerce platforms are fertile ground because staff turnover is a normal workflow and the product must handle it.

To make the report land, show the full lifecycle in order: delivery while active, the administrative action, then delivery of a clearly new event afterwards, with the content of the message as evidence. State who could still read the mailbox or endpoint and what data the message carries. Programs accept these reports when the disclosure is concrete and the fix is obvious; vague claims that a notification might arrive are usually closed as informational.

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

What happened, in plain words

Shopify is a platform that lets people run an online shop. Each shop has an admin area, and the shop owner can invite other people to help run it. These helpers are called staff accounts. A staff account is a login with its own permissions, so the owner can decide what each person is allowed to see and do.

One of the things a staff account can do is subscribe to notifications: automatic emails that say something happened in the shop. In this report the event is a new order. A staff member with settings permission can go to the notifications settings and add their own email address, so that every time a customer places an order, they get an email about it.

The researcher, newbie_101, found that this email keeps arriving after the staff account has been deactivated. Deactivation is the admin action that switches an account off: the person can no longer log in. The expectation is that once you switch someone off, they stop receiving shop information. Here they did not.

The report was rated low severity, with a CVSS score of 3.4, classified as improper authorization, and paid a bounty of 500.00 USD. It was disclosed on 2018-04-12.

What the report shows

The reproduction steps are short and are given in full:

Text
- Have a staff account with settings permission
- The staff account can go to notifications & add himself so as to get new order notifications
- Now,deactivate the staff account via the admin.
- Create a new order,you shall see that the staff still receives the order notification via email.
- This happens because the account still exists,but if staff deleted , then there is no account,hence no email) so no notification.

Line by line:

  1. Have a staff account with settings permission. You need a staff account that is allowed to change settings. Without that permission the staff member could not set up the notification in the first place.
  2. The staff account can go to notifications & add himself so as to get new order notifications. The staff member subscribes their own email address to new-order emails. This is the destination that will later receive data.
  3. Now, deactivate the staff account via the admin. The owner uses the product's own administrative function to switch the account off. This is the moment access is supposed to end.
  4. Create a new order, you shall see that the staff still receives the order notification via email. A fresh order is placed, and the deactivated account's mailbox still gets the email. The word new matters: it shows this is not an old message arriving late.
  5. This happens because the account still exists, but if staff deleted, then there is no account, hence no email) so no notification. The researcher's explanation: deactivation leaves the account record in place, so the notification setting attached to it survives. Deleting the staff member removes the account entirely, and with it the address that would receive the mail.

The program summarised the finding as order notifications continuing to be sent for a deactivated staff account, which could result in unintentional disclosure of order details. The fix was to add logic that automatically disables notifications at the time an account is deactivated.

Why it matters

The impact stated in the report is information disclosure about a customer of a store that the staff account can no longer access. Order notifications normally carry customer and order detail, so someone whose access was deliberately withdrawn keeps receiving that data by email. The report does not describe what a specific notification contains, so the exact fields exposed are not established here. The report frames the impact as information disclosure about a customer of a store the staff account can no longer access.

Root cause

The researcher's explanation is that deactivation leaves the account record in place, so the notification setting attached to it survives. Deactivating a staff account revokes the ability to log in, but the notification subscription is stored against the account and is evaluated independently when an order is created. Nothing in the order notification path checks whether the recipient account is still active, so the mail goes out to an address that should no longer be receiving store data. The program addressed the issue by adding logic to automatically disable notifications when an account is deactivated.

A useful comparison: think of a building where your key card is cancelled when you leave, but the mailing list for the office still has your home address on it. You cannot get in the door, yet the post keeps coming.

In general, how this kind of bug works

Account state and side-channel delivery are usually modelled separately. Authentication checks whether an account may act; notification, webhook and subscription systems ask a different question, namely which addresses or endpoints should receive an event. When an account is disabled, the first check is updated and the second is forgotten. The result is a residual channel: the user cannot log in, but data still flows out to them.

The same pattern appears wherever a user can register a destination for events: email notification lists, webhook endpoints, API keys, personal access tokens, forwarding rules, alerting integrations and export schedules. Deactivation, suspension, role removal and offboarding are the transitions that should sever these channels, and they are exactly the transitions that are easy to implement incompletely. The bug class is an authorization failure in the broad sense: a user who should no longer be authorised to receive data continues to receive it.

How to test for it

  1. Identify every place a user can attach a destination to their account: notification preferences, webhook URLs, API tokens, email forwarding, integrations and scheduled reports.
  2. Register a destination you control, for example a mailbox or an endpoint that logs requests.
  3. Trigger the event that the destination subscribes to, and confirm delivery while the account is active. This is your baseline.
  4. Have an administrator deactivate, suspend or remove the role from the account, using the product's own administrative function.
  5. Trigger the same event again and watch the destination. A positive result is a delivery that still arrives after deactivation, with content that reflects the new event rather than a queued or retried older one.
  6. Repeat for the other transitions: role downgrade, removal from an organisation, password reset, and deletion where the product distinguishes deletion from deactivation.

A positive result looks like a fresh notification, webhook call or report arriving at your controlled destination after the account's access has been withdrawn. Common false positives are in-flight messages queued before deactivation, retries of an earlier delivery, and caches. To rule these out, use a distinct event after deactivation, such as a new order with a recognisable marker, and check timestamps and content. Also confirm that the administrative action actually took effect, for example by verifying that login now fails, so you are not reporting a deactivation that never happened.

How it is fixed

The standard fix is to make deactivation a single operation that also disables or removes every outbound channel tied to the account: notification subscriptions, webhook endpoints, tokens and integrations. Delivery code should additionally check the recipient's current state at send time rather than trusting a stored subscription, so that any channel missed by the deactivation path is still suppressed. Products that distinguish deactivation from deletion should apply the same cleanup to both, and reactivation should require the user to re-register destinations deliberately rather than restoring them silently.

Hunting notes

This bug class hides in features that were built after the account lifecycle was designed: notification preferences, alerting, webhooks and reporting are often added later and wired to the account record without hooks into the deactivation flow. Recon signals include admin panels with a staff or team section, per-user notification settings, and any product where an account can be disabled rather than deleted. Multi-tenant SaaS and e-commerce platforms are fertile ground because staff turnover is a normal workflow and the product must handle it.

To make the report land, show the full lifecycle in order: delivery while active, the administrative action, then delivery of a clearly new event afterwards, with the content of the message as evidence. State who could still read the mailbox or endpoint and what data the message carries. Programs accept these reports when the disclosure is concrete and the fix is obvious; vague claims that a notification might arrive are usually closed as informational.

Glossary

  • Staff account: a separate login inside a shop admin, created by the owner, with its own set of permissions.
  • Permission: a rule saying what an account is allowed to see or change.
  • Notification: an automatic message, here an email, sent when something happens in the product.
  • Deactivation: switching an account off so it can no longer log in, while the account record remains.
  • Deletion: removing the account record entirely, so nothing attached to it remains.
  • Information disclosure: a bug where data reaches someone who should not have it.
  • Improper authorization: a bug class where a check on who may do or receive something is missing or wrong.
  • CVSS: a standard scoring system for the severity of a security issue; higher means more serious.
  • Bounty: a payment a company makes to a researcher who reports a valid security issue.
  • Disclosure: the point at which a report is made public.
  • Authentication: the process of proving who you are, usually by logging in.
  • Webhook: an automatic request a product sends to a URL you supply when an event happens.
  • API key / personal access token: a secret string that lets a program act on your behalf, similar to a password.
  • Endpoint: a URL that accepts requests and does something with them.
  • False positive: a result that looks like a bug but is not, for example an old queued message arriving late.
  • Root cause: the underlying reason a bug exists, as opposed to its visible symptom.
  • Multi-tenant SaaS: software where many separate organisations share one platform, each with its own users and data.

More from Shopify

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.