Broken Access Control on **healthwatch.trellix.com** Leading to Unauthorized Access and Sensitive Data Exposure
The application allowed registration with an external email address by modifying the request, and then a password reset could activate the pending account without admin approval. Once authenticated, an unprotected API endpoint let the attacker enumerate all customer business names and employee email addresses.
- Triaged in 8 days
- Fixed in 8 months
- Disclosed after 12 months
Summary
I discovered a critical broken access control vulnerability that allows an attacker to bypass account validation and gain unauthorized access to the application. Once authenticated, the attacker can enumerate all business customers and internal employee email addresses through an unprotected API endpoint, leading to significant information disclosure that could facilitate targeted phishing attacks.
Vulnerability Details
1. Account Registration Bypass
Endpoint: Account registration form
Issue: The application implements insufficient email domain validation during account creation.
Steps to Reproduce:
- Navigate to the registration page
- Fill in the registration form with an email address containing the company's domain suffix (e.g.,
[email protected]) - Intercept the registration request using Burp Suite
- Modify the email address in the request to use an arbitrary domain (e.g.,
[email protected]) - Forward the modified request
- Registration succeeds and the account is created pending admin approval
Impact: An attacker can register accounts with external email addresses, bypassing domain validation controls.
2. Account Validation Bypass
Endpoint: Password reset functionality
Issue: The password reset mechanism can be abused to activate accounts that are pending admin approval.
Steps to Reproduce:
- After creating the account as described above (without setting a password)
- Navigate to the "Forgot Password" page
- Submit a password reset request for the registered email address
- Receive the password reset email at the external email address
- Complete the password reset process
- Successfully authenticate to the application dashboard without admin approval
Impact: Attackers can bypass the intended admin approval workflow and gain immediate access to the application.
3. Improper Access Control - Customer Data Enumeration
Endpoint: /api/ApiV1/GetCustomerDetailByEmail
Issue: The API endpoint lacks proper authorization controls, allowing low-privileged users to enumerate all customer business names and associated employee email addresses.
Steps to Reproduce:
- Authenticate using the compromised account created in steps 1-2
- Send requests to
/api/ApiV1/GetCustomerDetailByEmail - Successfully retrieve a complete list of:
- All customer business names
- Internal employee email addresses of account creators
- Customer relationship metadata
Verification: I performed OSINT verification via LinkedIn and confirmed that the exposed email addresses belong to legitimate company employees.
Recommendations
Immediate Actions
- Disable the vulnerable API endpoint
/api/ApiV1/GetCustomerDetailByEmailuntil proper access controls are implemented - Audit all pending accounts and remove unauthorized registrations
- Implement server-side email domain validation that cannot be bypassed via request manipulation
Long-term Fixes
1. Strengthen Registration Controls
- Implement server-side domain validation with whitelist verification
- Add email verification before account activation
- Maintain admin approval requirement even after password reset
2. Fix Password Reset Flow
- Prevent password reset for accounts pending approval
- Add account status checks in authentication middleware
3. Implement Proper Access Controls
- Add role-based access control (RBAC) to all API endpoints
- Implement data filtering based on user permissions
- Restrict customer data access to authorized users only
- Add rate limiting to prevent bulk enumeration
References
- OWASP Top 10: A01:2021 - Broken Access Control
- CWE-284: Improper Access Control
- CWE-639: Authorization Bypass Through User-Controlled Key
Impact
Impact
This vulnerability chain has severe security implications:
1. Unauthorized Access
- Attackers can create accounts and access the application without legitimate credentials or authorization
- Complete bypass of the admin validation workflow
2. Sensitive Data Exposure
- Customer Information Disclosure: Complete enumeration of all business customers
- Employee Email Disclosure: Exposure of internal employee email addresses
- Organizational Intelligence: Mapping of employee-customer relationships
3. Phishing Attack Vector
The exposed internal email addresses create a high-risk attack vector:
- Targeted Spear Phishing: Attackers can craft highly convincing phishing emails using legitimate employee addresses and customer context
- Business Email Compromise (BEC): Knowledge of employee-customer relationships enables sophisticated BEC attacks
- Social Engineering: Detailed organizational information facilitates social engineering attacks against employees and customers
- Brand Impersonation: Attackers can impersonate legitimate employees in communications with customers
4. Reputational Risk
- Customer trust erosion if data exposure is discovered
- Potential regulatory compliance violations (GDPR, CCPA, etc.)
- Brand damage from phishing attacks leveraging exposed data
Attachments
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 server trusted client-side input for email domain validation and did not enforce account status checks during password reset or API authorization.
Impact
An attacker could bypass account approval, gain unauthorized access, and enumerate all customer business names and internal employee email addresses, which could facilitate targeted phishing and business email compromise.
What the attacker needed
Access to the registration page; ability to intercept and modify requests; an external email address
The fix
The report recommends disabling the vulnerable API endpoint, auditing pending accounts, implementing server-side email domain validation, preventing password reset for pending accounts, and adding role-based access control to API endpoints.
How it was found
- Go to the registration page and fill the form with an email using the company domain.
- Intercept the registration request and change the email to an external domain.
- Forward the request; the account is created pending admin approval.
- Use the 'Forgot Password' page to request a reset for that email.
- Complete the password reset using the email received at the external address.
- Log in to the dashboard without admin approval and call the customer detail API to list customers and employee emails.
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 sign up, the site is supposed to check that your email belongs to the company. The attacker changed the email in the request to a personal one, and the site still created the account. Then, by using the 'forgot password' feature, the account became active without waiting for an administrator to approve it. After logging in, the attacker could see a list of all customers and their employees' email addresses because the API did not check who was allowed to see that data.
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.