Exposed trip_no in WebSocket Responses Leading to Excessive information Disclosure
The WebSocket responses exposed the trip_no identifier to drivers before a bid was accepted, allowing them to access customer tracking URLs and view excessive customer information. The issue was fixed by masking sensitive identifiers and hashing tracking URLs.
- Disclosed after 20 months
Summary by the program
@mrrhacker discovered a vulnerability in Bykea’s WebSocket implementation where trip_no was exposed to drivers before a bid was accepted. This identifier could be used to access customer tracking URLs, revealing excessive information of the customers to unauthorised drivers. The issue was resolved by masking sensitive identifiers in WebSocket responses and introducing hashing in tracking URLs to prevent unauthorised access.
What the report shows
The target is Bykea's WebSocket implementation, on the *.bykea.net asset. The feature in question is the bidding flow between customers and drivers: drivers receive trip information over a WebSocket connection while a bid is still pending.
The researcher, mrrhacker, found that the trip_no identifier was sent to drivers in WebSocket responses before a bid had been accepted. That identifier is not just an internal reference. According to the report, it could be used to reach customer tracking URLs, and those URLs exposed more information about the customer than a driver who has not won the trip should see. In other words, a driver who was merely bidding, and who might never be awarded the trip, could obtain the tracking link for a customer's trip and read the details behind it.
The report is a short one and does not include the WebSocket handshake, the message payloads, the tracking URL format or the server responses. What it does state is the sequence: the identifier leaks in the WebSocket response during bidding, the identifier maps to a tracking URL, and the tracking URL discloses excessive customer information to a driver who is not authorised for that trip.
The issue was rated medium severity with a CVSS score of 6.5, under the weakness category Improper Access Control - Generic. No bounty amount is given. The program resolved it by masking sensitive identifiers in WebSocket responses and by introducing hashing in the tracking URLs so that the identifiers can no longer be used to reach them directly.
Root cause
The report does not state a root cause. The identifier was sent to drivers in WebSocket responses before a bid was accepted, and it could be used to reach customer tracking URLs. The WebSocket response for a pending bid included the real trip_no, an identifier that is also the key to a separate, less protected resource: the customer tracking URL. Because the identifier could be used to access the tracking URL, a driver who had only placed a bid could reach the tracking page.
Two design decisions combine here. First, the WebSocket message carries more than the bidding driver needs, exposing an internal identifier that has meaning elsewhere. Second, the tracking URL could be reached using the identifier, so knowing the identifier was enough to reach it.
Impact
A driver who is bidding on trips, but has not been awarded them, could obtain the trip_no for those trips and use it to open the corresponding customer tracking URLs. That gives the driver access to customer information beyond what the bidding flow is meant to reveal. The report describes this as excessive information disclosure to unauthorised drivers. It does not enumerate which fields the tracking page exposed, so the precise sensitivity of the leaked data is not stated. The confidentiality impact is the core of the finding; there is no indication in the report of data modification or of access beyond the tracking pages.
How this kind of bug works
This is an access control problem that shows up as information disclosure. Applications frequently use opaque-looking identifiers as if they were secrets: a trip number, an order reference, a booking code. The identifier is then embedded in a URL that a user is expected to open, and the server returns the associated record to anyone who presents it. That works as long as the identifier stays with the party that is entitled to it.
The bug appears when the same identifier is shared more widely than the resource it unlocks. Real-time channels are a common place for this, because they push structured messages to many clients at once, often with a broader field set than any single recipient needs. A bidding or dispatch system is a textbook case: many drivers see a trip summary, but only one should see the customer's tracking view. If the summary contains the tracking key, the authorisation boundary between "candidate" and "assigned" collapses.
The general lesson is that identifiers which function as access tokens must be treated as credentials: scoped to the recipient, unguessable, and never included in messages sent to parties who are not yet authorised. Where an identifier must be shared, it should be a per-recipient or per-session value, or the resource behind it should check the caller's authorisation rather than trusting possession of the identifier.
How to test for it
- Map the real-time surface. Identify WebSocket endpoints and the messages exchanged during flows where multiple parties see the same object, such as bidding, dispatch, auctions, ride requests, deliveries or support chat.
- Capture the messages as a low-privilege participant. Use a proxy or the browser's network tools to record the frames sent to a user who is only a candidate, not the assigned party.
- Inventory the identifiers in those frames. Look for numeric or short alphanumeric fields that also appear in URLs, API paths, query strings or share links elsewhere in the application.
- Trace each identifier to its other uses. Search the front-end code and your own browsing history for the value, and try it in the URL patterns the application uses for tracking, sharing or status pages.
- Compare what you can see against what the authorised party sees. A positive result is a response that returns the record, or fields from it, to a participant who has not been granted the object. Confirm the response is genuinely tied to the target record and not a generic page.
- Check the reverse direction too: whether a participant can subscribe to messages for objects they are not entitled to, and whether identifiers from one flow unlock records in another.
Common false positives: the tracking page may be intentionally public, in which case the disclosure is by design and not a finding; the identifier may be a display reference that maps to nothing sensitive on the server; the page may return a generic shell with no data until an authenticated call succeeds; or the value may be scoped to your own session and useless to another account. Verify with a second, unrelated account before reporting.
How it is fixed
The report describes the fix applied here: masking sensitive identifiers in WebSocket responses and hashing the identifiers used in tracking URLs. In general terms, the standard remedies are:
- Remove identifiers from messages sent to parties who are not yet authorised for the object, or replace them with a masked or per-recipient value.
- Stop treating possession of an identifier as authorisation. The tracking endpoint should check that the caller is entitled to the trip, not merely that they know its number.
- Where links must be shareable, use unguessable, per-link tokens with an expiry, and avoid sequential or predictable identifiers in URLs.
- Apply the same field-level review to every real-time message type, since the same over-sharing often repeats across channels.
Hunting notes
This class of bug hides wherever one object is visible to several parties at different trust levels: marketplaces, delivery and ride platforms, auction and bidding systems, multi-tenant dashboards, and support tooling. Real-time channels are the richest source because message schemas are rarely reviewed as carefully as REST responses, and clients often receive full records where a summary would do.
Recon signals worth following: WebSocket endpoints in JavaScript bundles, message type enums, and field names such as trip, order, booking, job or ticket numbers. If a numeric identifier appears in a push message and also in a share or tracking URL pattern, that pairing is worth testing.
To get a report accepted, show the boundary clearly: two accounts, one authorised and one not, the exact message received by the unauthorised party, and the response that should not have been reachable. State what data was exposed and why the recipient was not entitled to it. Avoid claiming impact you did not observe; if the tracking page only shows a status, say so, and let the authorisation gap carry the report.
What happened, in plain words
Bykea is a ride and delivery platform. Customers request a trip, and drivers can bid on it, a bit like an auction: several drivers offer to take the job, and one of them is eventually chosen. Until a driver is chosen, they are only a candidate, not the person doing the trip.
The app keeps drivers informed in real time using a WebSocket. A WebSocket is a connection between your browser or app and a server that stays open, so the server can push new information to you the moment it happens, instead of you having to keep asking. Think of it as a phone call that stays connected, rather than sending a letter and waiting for a reply.
The researcher, mrrhacker, found that while a bid was still pending, the server sent drivers a piece of data called trip_no. This is a trip number, an identifier for the trip. The problem is that this number was not only used inside the app. According to the report, it could also be used to build the customer's tracking URL, the web address where a customer follows the progress of their trip.
So a driver who had merely placed a bid, and who might never be given the trip, could take the trip_no they received and reach the tracking page for that customer's trip. That page showed more about the customer than a bidding driver should see. The report calls this excessive information disclosure to unauthorised drivers.
The report is short and does not include the WebSocket handshake, the exact messages exchanged, the format of the tracking URL or the server's responses. What it does describe is the chain: the identifier leaks in a WebSocket message during bidding, the identifier maps to a tracking URL, and that URL reveals customer information to a driver who is not entitled to it.
The issue was rated medium severity with a CVSS score of 6.5, under the weakness category Improper Access Control - Generic. No bounty amount is given. The program fixed it by masking sensitive identifiers in WebSocket responses and by introducing hashing in the tracking URLs, so the numbers can no longer be used to reach those pages directly.
Why it happened
The report does not state a cause. The WebSocket message for a pending bid included the real trip_no, and that same number could be used to reach the customer tracking URL. The WebSocket message for a pending bid included the real trip_no, and that same number could be used to reach a separate page, the customer tracking URL.
Two design choices combine here. First, the WebSocket message carries more than a bidding driver needs, including an internal identifier that has meaning elsewhere. Second, the tracking URL relies on knowing the identifier as its only protection, so the number works like a password.
What it meant in practice
A driver bidding on trips, but not awarded them, could obtain the trip_no for those trips and open the matching customer tracking pages. That gave them customer information beyond what the bidding flow is meant to reveal. The report does not list which fields the tracking page showed, so the exact sensitivity of the leaked data is not stated. The harm is to confidentiality, meaning information being seen by the wrong people; the report gives no indication of data being changed or of access beyond the tracking pages.
In general, how this kind of bug works
This is an access control problem that shows up as information disclosure. Many applications use identifiers that look random or private as if they were secrets: a trip number, an order reference, a booking code. The identifier is then placed in a URL that a user is expected to open, and the server returns the associated record to anyone who presents it. That works as long as the identifier only reaches the party entitled to it.
The bug appears when the same identifier is shared more widely than the thing it unlocks. Real-time channels are a common place for this, because they push structured messages to many clients at once, often with more fields than any single recipient needs. A bidding or dispatch system is a classic case: many drivers see a trip summary, but only one should see the customer's tracking view. If the summary contains the tracking key, the line between candidate and assigned driver disappears.
The general lesson is that identifiers which work like access tokens must be treated as credentials: limited to the right recipient, hard to guess, and never included in messages sent to parties who are not yet authorised. Where an identifier must be shared, it should be a per-recipient or per-session value, or the page behind it should check the caller's authorisation rather than trusting that they know the number.
How to test for it
- Map the real-time surface. Find the WebSocket endpoints and the messages exchanged in flows where several parties see the same object, such as bidding, dispatch, auctions, ride requests, deliveries or support chat.
- Capture the messages as a low-privilege participant. Use a proxy or the browser's network tools to record what is sent to a user who is only a candidate, not the assigned party.
- List the identifiers in those messages. Look for numeric or short alphanumeric fields that also appear in URLs, API paths, query strings or share links elsewhere in the application.
- Trace each identifier to its other uses. Search the front-end code and your own browsing history for the value, and try it in the URL patterns the application uses for tracking, sharing or status pages.
- Compare what you can see against what the authorised party sees. A positive result is a response that returns the record, or fields from it, to a participant who has not been granted the object. Confirm the response is genuinely tied to the target record and not a generic page.
- Check the reverse direction too: whether a participant can subscribe to messages for objects they are not entitled to, and whether identifiers from one flow unlock records in another.
Common false positives: the tracking page may be intentionally public, in which case the disclosure is by design and not a finding; the identifier may be a display reference that maps to nothing sensitive on the server; the page may return a generic shell with no data until an authenticated call succeeds; or the value may be tied to your own session and useless to another account. Verify with a second, unrelated account before reporting.
How it is fixed
The report describes the fix applied here: masking sensitive identifiers in WebSocket responses and hashing the identifiers used in tracking URLs. In general terms, the standard remedies are:
- Remove identifiers from messages sent to parties who are not yet authorised for the object, or replace them with a masked or per-recipient value.
- Stop treating knowledge of an identifier as authorisation. The tracking endpoint should check that the caller is entitled to the trip, not merely that they know its number.
- Where links must be shareable, use unguessable, per-link tokens with an expiry, and avoid sequential or predictable identifiers in URLs.
- Apply the same field-level review to every real-time message type, since the same over-sharing often repeats across channels.
Where to look for it
This class of bug hides wherever one object is visible to several parties at different trust levels: marketplaces, delivery and ride platforms, auction and bidding systems, multi-tenant dashboards, and support tooling. Real-time channels are the richest source because message schemas are rarely reviewed as carefully as ordinary API responses, and clients often receive full records where a summary would do.
Signals worth following: WebSocket endpoints in JavaScript bundles, message type lists, and field names such as trip, order, booking, job or ticket numbers. If a numeric identifier appears in a push message and also in a share or tracking URL pattern, that pairing is worth testing.
To get a report accepted, show the boundary clearly: two accounts, one authorised and one not, the exact message received by the unauthorised party, and the response that should not have been reachable. State what data was exposed and why the recipient was not entitled to it. Avoid claiming impact you did not observe; if the tracking page only shows a status, say so, and let the authorisation gap carry the report.
Glossary
- WebSocket: a connection between a client and a server that stays open, letting the server push updates in real time.
- Identifier: a value such as a number or code that names a specific record, here a trip.
trip_no: the trip number used by Bykea to identify a trip.- Tracking URL: a web address where a customer follows the progress of their trip.
- Bid: an offer from a driver to take a trip, before the platform assigns it.
- Access control: the rules deciding who is allowed to see or do what.
- Improper Access Control: a weakness where those rules are missing or too loose.
- Information disclosure: a bug where data is shown to someone who should not see it.
- Confidentiality: keeping information visible only to the people entitled to it.
- Bearer capability: a value that grants access simply by being known, like a ticket.
- Token: a value used to prove access rights, often in place of a password.
- Hashing: turning a value into a fixed-length code that cannot easily be reversed, so the original number is not exposed.
- Masking: hiding or replacing part of a value so the real one is not revealed.
- CVSS: a standard scoring system for the severity of a security issue.
- Severity: how serious an issue is judged to be, here medium.
- False positive: a suspected bug that turns out not to be a real problem.
- Proxy: a tool that sits between your browser and the server so you can record and inspect traffic.