Submit #1083868: liketrek TREK 3.4.1 Authorization Bypassinfo

Titleliketrek TREK 3.4.1 Authorization Bypass
DescriptionTREK's public share-link endpoint GET /api/trips/:tripId/share-link only verifies that the caller is authenticated and allowed to read the trip. It does not enforce the share_manage permission that the corresponding create and delete operations enforce. The code base already provides requireManage()/canManage() for those paths, but the GET handler calls verifyTripAccess() instead and then returns the full share token via getShareLink(). As a result, any ordinary member of a trip (not only the owner or a member holding share_manage) can retrieve the owner's public share token. That token is a bearer credential for the unauthenticated endpoint GET /api/shared/:token, so the member can turn it into a transferable anonymous read channel and hand it to a third party outside the trip. Depending on the owner's flags, the token exposes reservations, accommodations, budget data, places, itinerary notes and collaboration messages. Tokens remain valid for up to the default 90 days, and removing the member from the trip does not revoke a token that has already been copied.
Source⚠️ https://github.com/liketrek/TREK/security/advisories/GHSA-cm52-wp2v-cjcq
User
 scivous (UID 102872)
Submission11/10/2026 02:43 (24 days ago)
Moderation12/04/2026 09:26 (24 days later)
StatusAccepted
VulDB entry449622 [liketrek TREK up to 3.4.1 Protected Public Share Token Hadler share.controller.ts get authorization]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!