Description
Trudesk through 1.2.11 contains a server-side JavaScript injection vulnerability that allows authenticated users to inject code into a MongoDB $where clause via the search parameter. Attackers can close the regular expression in GET /api/v1/tickets/search to loop mongod for denial of service or leak full ticket documents including internal notes.
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/ticket.js#L1184-L1215 technical-description
- https://github.com/polonel/trudesk product
- VulnCheck Advisory: Trudesk through 1.2.11 MongoDB $where Injection via tickets search API third-party-advisory