Submit #1083869: liketrek TREK 3.4.1 Incorrect Permission Assignmentinfo

Titleliketrek TREK 3.4.1 Incorrect Permission Assignment
DescriptionThe calendar feed token routes do not enforce the separate share_manage permission, which defaults to owner-only. The check in feeds.controller.ts:75-86 treats membership in trip_members as sufficient to manage the feed token, so any ordinary non-owner member can read, create, rotate, disable or delete the trip's public calendar feed bearer token. The token is stored in trips.feed_token and is the sole credential for the unauthenticated endpoint GET /api/feed/trip/:token.ics. A member can therefore mint a persistent anonymous feed URL that exposes itinerary, booking notes, addresses, confirmation numbers and flight/train details. Because the rotate and disable service methods do not receive the acting user's ID, there is no defense-in-depth check available inside the service layer. The member can also rotate or revoke the token, which breaks the owner's and other members' existing calendar subscriptions. Removing the member from the trip does not invalidate a feed URL that has already been copied.
Source⚠️ https://github.com/liketrek/TREK/security/advisories/GHSA-r7r4-gr5q-hv54
User
 scivous (UID 102872)
Submission11/10/2026 02:45 (24 days ago)
Moderation12/04/2026 09:26 (24 days later)
StatusAccepted
VulDB entry449623 [liketrek TREK up to 3.4.1 Public Calendar Feed feeds.controller.ts authorization]
Points20

Do you know our Splunk app?

Download it now for free!