admin.shopify.com: Shopify Flow continues sending internal emails to a configured recipient after the staff author is removed
A staff user removed from a Shopify store kept receiving customer PII by email because a Shopify Flow workflow they had created continued to run. The researcher argues this gives a removed user persistent access to customer data.
- Disclosed after 3 months
Summary by the program
The researcher reported that Shopify Flow workflows continue sending customer PII to email addresses after the staff user who created them is removed from the store. This is intended behavior - Flow workflows are store-owned automations that execute with their own OAuth scopes, independent of the creating user's access.
The report
Summary:
A staff user removed from a Shopify store continues to receive customer Personally Identifiable Information (PII) via a previously created automation workflow. The workflow, configured using Shopify Flow, continues executing after the user's access has been revoked and sends sensitive customer information to the removed user's email address.
This results in persistent unauthorized access to customer data, even after administrative removal of the user from the store.
This behavior demonstrates a post-privilege-revocation control failure, where backend authorization does not re-evaluate recipients configured in automation workflows after user removal.
Shops Used to Test:
https://admin.shopify.com/store/abah52
Steps To Reproduce:
- Create User A with permission to create workflows.
- Create User B (standard staff or admin user).
- Log in as User A.
- Navigate to Shopify Flow and create a new workflow:
Trigger:
- Customer Created
Action:
- Send Internal Email
- Configure the email recipient as User A's email address.
- Configure the email body to include customer PII fields:
Example:
Customer Name: {{customer.firstName}} {{customer.lastName}} Email: {{customer.email}} Phone: {{customer.phone}} Address: {{customer.defaultAddress.address1}} City: {{customer.defaultAddress.city}} Country: {{customer.defaultAddress.country}}
- Save and enable the workflow.
- Log in as User B and create a new customer.
- Observe that User A receives email containing customer PII.
- As Admin, remove User A from the store.
- Wait for access revocation to fully propagate.
- Log in as User B again.
- Create another new customer.
Actual Result
Despite being removed from the store, User A still receives an email containing customer PII, including:
- Customer name
- Email address
- Phone number
- Physical address
Expected Result
Once a user is removed from a store:
- They should no longer receive customer data
- Automation workflows should re-evaluate recipients
- Removed users should not receive sensitive information
Impact
This issue allows a removed staff user to continue receiving sensitive customer information after access revocation. This creates a persistent data exposure risk and enables unauthorized access to customer PII.
Attack scenario:
An attacker joins a store as staff, creates a Shopify Flow automation that sends customer data to their email address, and is later removed from the store. Despite removal, the automation continues executing and sends new customer PII to the removed user.
This could allow:
- Former employees to continue receiving customer data
- Contractors removed from the store to retain access to sensitive information
- Malicious insiders to establish persistent data exfiltration mechanisms
The exposed data includes customer personally identifiable information (PII), such as:
- Customer names
- Email addresses
- Phone numbers
- Physical addresses
This results in unauthorized access to customer data and creates a privacy and security risk.
Evidence
A video proof of concept is attached demonstrating:
- Workflow creation
- Customer creation
- User removal
- Continued PII email delivery to removed user
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 automation is owned by the store and runs under its own permissions, so removing the creating user does not change the configured email recipient.
Impact
A removed staff member could keep receiving customer names, emails, phones and addresses, though the program states this is intended behaviour rather than a vulnerability.
What the attacker needed
A staff account able to create workflows; a second staff or admin account; workflow recipient set to the removed user
How it was found
- Create a staff user allowed to build workflows.
- Create a second staff or admin user.
- Log in as the first user and build a Flow workflow triggered by a new customer that sends an internal email.
- Set the recipient to the first user's address and include customer fields in the body, then enable it.
- Log in as the second user, add a customer, and confirm the email arrives.
- Remove the first user from the store, add another customer, and observe the email still arrives.
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.
Shopify Flow is a tool that runs automatic actions when something happens in a store, such as emailing someone when a new customer is added. The researcher set up such an automation to email a staff member, then removed that staff member, and found the emails kept arriving. The report treats this as a problem, but the program says these automations belong to the store, not to the person who made them.
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.