Trudesk through 1.2.11 Path Traversal and Authorization Bypass via Profile Image Upload
Impact
Trudesk through 1.2.11 contains a path traversal and authorization bypass vulnerability in accountsController.uploadImage that allows authenticated users to overwrite other users' avatars via form-supplied _id and username fields. Attackers can supply a username like /../../../x to bypass the incomplete CVE-2022-1752 sanitization and write png, jpg, jpeg, or gif files outside public/uploads/users.
Source excerpt · VulnCheckAffected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
polonel · trudesk
Other versions: unaffected
| Version / range | Source status |
|---|---|
| 0 through 1.2.11 (inclusive) | affected |
Original source description
Trudesk through 1.2.11 contains a path traversal and authorization bypass vulnerability in accountsController.uploadImage that allows authenticated users to overwrite other users' avatars via form-supplied _id and username fields. Attackers can supply a username like /../../../x to bypass the incomplete CVE-2022-1752 sanitization and write png, jpg, jpeg, or gif files outside public/uploads/users.
References
- Security advisory hackmd.io/@leediay/multiple-vuln-trudesk-1211
- Source reference github.com/polonel/trudesk/blob/v1.2.11/src/controllers/accounts.js
- Source reference github.com/polonel/trudesk
- Security advisory www.vulncheck.com/advisories/trudesk-through-1.2.11-path-traversal-and-authorization-bypass-via-profile-image-upload