Description
Peppermint through 0.5.5 contains a missing authorization vulnerability that allows any authenticated user to create time entries and attachments as other users by supplying a user id in the request body. Attackers can send POST requests to /api/v1/time/new or /api/v1/storage/ticket/:id/upload/single to attach files and time records to any ticket under another user's identity.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Peppermint-Lab | peppermint | ≤ 0.5.5 | — |
References
- https://hackmd.io/@hieuPenguinnn/peppermint-data-logs-missing-authorization third-party-advisory
- https://github.com/Peppermint-Lab/peppermint/blob/0.5.5/apps/api/src/controllers/time.ts#L6-L27 technical-description
- https://github.com/Peppermint-Lab/peppermint/blob/0.5.5/apps/api/src/controllers/storage.ts#L9-L35 technical-description
- https://github.com/Peppermint-Lab/peppermint/blob/0.5.5/apps/api/src/main.ts#L57-L70 technical-description
- VulnCheck Advisory: Peppermint through 0.5.5 Missing Authorization via Time-Tracking and Attachment Upload Endpoints third-party-advisory