# Unauthenticated account rebind and registration endpoints

Account-mutation routes keyed on a caller-supplied id with no session or owner secret

_Area: Web authentication and account takeover. Seen in 3 disclosed reports; latest 2025-10-12. Updated 2026-11-14._

## How it works

An account-mutation route acts on an identifier the caller supplies — a `uid`, an `app_id`, a Customer ID — and performs the mutation (overwrite a 2FA secret, create a verified account, register an agent) without checking a session, a per-tenant secret, or the tenant's privacy/SSO policy. The broken assumption is "only the owner reaches this endpoint." Whoever can supply the identifier can act as the owner [E1](https://bugbountylibrary.com/r/blog%3Asamcurry-net-hacking-clubwpt-gold.md)[E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-critical-vulnerability-base44.md)[E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-validating-the-solarwinds-n-central-dumpster-diver-vulnerability-5e3a045982e5.md).

## Where it shows up

- 2FA/OTP bind or rebind routes that take a user id as a parameter and write the secret [E1](https://bugbountylibrary.com/r/blog%3Asamcurry-net-hacking-clubwpt-gold.md)
- `register` / `verify-otp` endpoints under a tenant path (`/apps/{app_id}/auth/...`) that never consult the app's SSO/privacy setting [E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-critical-vulnerability-base44.md)
- Agent auto-import or device-registration endpoints keyed only by a tenant/Customer ID, with no per-tenant secret [E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-validating-the-solarwinds-n-central-dumpster-diver-vulnerability-5e3a045982e5.md)
- Publicly exposed Swagger-UI or API docs listing auth endpoints [E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-critical-vulnerability-base44.md)

## How to review

For every route that mutates an account (password, 2FA secret, registration, verification), ask: what proves the caller owns this account? The invariant: the mutation must require either an authenticated session bound to that account, or a secret only the owner holds. A caller-supplied id is not proof. Check that registration/OTP handlers read the tenant's privacy and SSO config before allowing self-registration [E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-critical-vulnerability-base44.md), and that agent registration requires a per-tenant secret, not just a guessable Customer ID [E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-validating-the-solarwinds-n-central-dumpster-diver-vulnerability-5e3a045982e5.md). Confirm the route is not reachable pre-auth at all.

## How finders spotted it

- Noticed an orphaned Chinese-domain env var in frontend JS, hypothesized outsourced dev infra, enumerated its subdomains, dir-fuzzed the admin host, and pivoted from leaked .env/.git to source review; the source review then showed `/admin/otp/bind` took a uid and wrote the 2FA secret with no session check [E1](https://bugbountylibrary.com/r/blog%3Asamcurry-net-hacking-clubwpt-gold.md)
- Mapped the attack surface via subdomain recon, got an alert on two public Swagger-UI instances, browsed the auth API section, noticed `register`/`verify-otp` lacked auth, then tested against an SSO-only app to confirm the policy was never consulted [E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-critical-vulnerability-base44.md)
- Notified of a third-party zero-day post after a 90-day disclosure lapse; reviewed the PoC source to understand the trigger, then validated by surgically targeting a single Customer ID instead of brute-forcing — validation, not the finder's own discovery [E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-validating-the-solarwinds-n-central-dumpster-diver-vulnerability-5e3a045982e5.md)

## Variants seen

- Unauthenticated 2FA secret overwrite by uid on an admin panel [E1](https://bugbountylibrary.com/r/blog%3Asamcurry-net-hacking-clubwpt-gold.md)
- Unauthenticated self-registration + OTP verify bypassing SSO-only policy, keyed on non-secret app_id [E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-critical-vulnerability-base44.md)
- Unauthenticated agent registration keyed on guessable Customer ID, dumping stored cleartext AD credentials [E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-validating-the-solarwinds-n-central-dumpster-diver-vulnerability-5e3a045982e5.md)

## Impact and severity

Full account takeover and back-office access: E1 reached production player KYC/PII by combining the rebind with a weak hardcoded admin password; E2 gave unauthorized access to private enterprise apps across multiple tenants because app_ids are non-secret; E3 exposed stored domain-admin credentials, escalating to full Active Directory compromise across the MSP's customers [E1](https://bugbountylibrary.com/r/blog%3Asamcurry-net-hacking-clubwpt-gold.md)[E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-critical-vulnerability-base44.md)[E3](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-validating-the-solarwinds-n-central-dumpster-diver-vulnerability-5e3a045982e5.md). Impact rises with identifier guessability and stored secrets behind the endpoint.

## Evidence
- E1: https://bugbountylibrary.com/r/blog%3Asamcurry-net-hacking-clubwpt-gold.md
- E2: https://bugbountylibrary.com/r/blog%3Awiz-io-blog-critical-vulnerability-base44.md
- E3: https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-validating-the-solarwinds-n-central-dumpster-diver-vulnerability-5e3a045982e5.md
