Description
Trudesk through 1.2.11 contains a regular expression injection vulnerability that allows unauthenticated attackers to enumerate usernames by submitting regex patterns to POST /api/v1/login. Attackers can send alternations or prefixes like (admin|root) or a.* and distinguish 'Invalid User' from 'Invalid Password' responses to discover valid accounts.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| polonel | trudesk | ≤ 1.2.11 | — |
References
- https://hackmd.io/@leediay/multiple-vuln-trudesk-1211 third-party-advisory
- https://github.com/polonel/trudesk/blob/v1.2.11/src/models/user.js#L310-L319 technical-description
- https://github.com/polonel/trudesk/blob/v1.2.11/src/controllers/api/v1/common.js#L45-L65 technical-description
- https://github.com/polonel/trudesk product
- VulnCheck Advisory: Trudesk through 1.2.11 Username Enumeration via Regex Injection in /api/v1/login third-party-advisory