# connect.8x8.com/api/v1: JWT Algorithm Confusion Vulnerability

JWT verifier on connect.8x8.com v1 API lacked algorithm pinning, accepting HS256 tokens HMAC-signed with the RSA public key, enabling forged-token read access.

- Payout: $1,337
- Severity: high
- Program: 8x8
- Found by: kyotozzx
- Disclosed: 2026-07-22
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/3800870
- Library page: https://bugbountylibrary.com/r/h1%3A3800870
- Tags: area:web domain:api impact:data-leak kind:bounty platform:hackerone sev:high tech:jwt technique:source-review vuln:auth-bypass vuln:crypto

**Target:** connect.8x8.com v1 REST API JWT authentication
**Root cause:** The v1 JWT verifier did not pin the signing algorithm, so it accepted HS256 tokens whose HMAC secret was the service's RSA public key (classic algorithm confusion).
**Steps:**
1. Obtain the RSA public key used to verify RS256 tokens
2. Craft a JWT with `alg: HS256` and claims for a target user
3. HMAC-sign the token using the RSA public key bytes as the secret
4. Send the forged token to `v1` read endpoints (e.g. account info retrieval)
5. Observe acceptance; state-changing endpoints reject it
**How found:** Researcher analyzed the JWT verification logic and noticed algorithm was not pinned, then tested HS256 tokens signed with the RSA public key.
**Exploitation:** Attacker needed the target user's non-enumerable UUID and an active server-side session for that user; with those, a forged HS256 token signed with the RSA public key was accepted by v1 read endpoints, yielding read-only account information access. No privilege persistence or ATO.
**Insight:** When a JWT verifier accepts multiple algorithms, try HS256 signed with the exposed RSA public key; check whether read vs write endpoints share the same verifier, since impact may be gated by per-endpoint session checks.

