Summary
LessPass self-hosted sync server endpoints for JWT authentication do not limit repeated login attempts. An unauthenticated remote attacker who can reach these endpoints may brute-force passwords or use credential stuffing to obtain a token for an account.
Affected context
The issue affects LessPass self-hosted sync server backends before commit 9469b0c. It occurs when the /tokens/auth/ and /auth/jwt/create/ JWT login endpoints are reachable without effective controls on repeated authentication attempts. Accounts may be at risk if an attacker can reach the endpoints and has or can guess valid account credentials.
Exploit preconditions
- Attack surface: Network-accessible JWT login endpoints
- Required access: No prior authentication is required
- Trigger point: Repeated login attempts against
/tokens/auth/or/auth/jwt/create/ - Why exploitation is possible: The endpoints lack rate limiting, allowing authentication attempts to continue without sufficient throttling
Why this happens
The backend permits repeated authentication attempts without applying effective rate limits. This maps to CWE-307: Improper Restriction of Excessive Authentication Attempts. Without controls that constrain attempt frequency, automated password guessing or credential stuffing can continue against the login endpoints.
Potential impact
- An attacker may obtain a valid authentication token
- Compromised accounts could allow unauthorized reading of stored profiles
- An attacker could modify or otherwise write to stored profiles
- Successful account compromise could expose or alter user data
General mitigation guidance
Common defensive patterns include:
- Applying rate limits and progressive delays to authentication attempts
- Using account- and source-aware throttling with safeguards against denial of service
- Adding risk-based challenges or temporary lockout policies where appropriate
- Monitoring and alerting on repeated failures and suspicious login patterns
- Requiring strong, unique credentials and minimizing the privileges granted to tokens
- Keeping authentication endpoints protected by secure defaults and limiting unnecessary network exposure
How teams detect issues like this
- Review authentication handlers and middleware for per-account and per-source attempt limits
- Use static analysis or code review checks to flag login routes without throttling controls
- Monitor authentication logs for high-volume failures, repeated attempts across accounts, and unusual token issuance
- Enforce policies that require rate limiting on all password-based authentication endpoints

