Customer Data Exposure via Insecure Endpoint of coupon
An API endpoint related to coupons lacked authentication, allowing anyone to retrieve customer data such as company names, phone numbers, email addresses, tokens and coupon details. By changing a parameter, an attacker could enumerate all coupon records and access information belonging to other customers.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 2 months
- Disclosed after 7 months
Summary by the program
A security vulnerability is identified in the Royal Canin Greece website (██████). An insecure API endpoint is exposed that allows unauthorized access to customer information without requiring authentication. The endpoint in question is related to coupon functionality and reveals sensitive customer data including company names, phone numbers, email addresses, tokens, and coupon details. The vulnerability is classified as CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) with a medium severity rating (CVSS score 5.7). By simply modifying a parameter in the request, information belonging to different customers can be accessed, enabling potential enumeration of all coupon data through basic parameter manipulation. This security flaw presents a significant risk to user privacy and data security as it allows sensitive information to be accessed by unauthorized parties.
Context
The target is the Royal Canin Greece website, hosted on *.myroyalcanin.gr and run under the Mars bug bounty program on HackerOne. The affected feature is the coupon functionality. The program's summary describes an API endpoint behind that feature that returns customer information without requiring authentication, and that lets the caller change which customer's data comes back by modifying a parameter.
The data exposed, as listed in the summary, is company names, phone numbers, email addresses, tokens and coupon details. The weakness is classified as CWE-200, Exposure of Sensitive Information to an Unauthorized Actor, rated medium with a CVSS score of 5.7.
Setup
The report does not describe any accounts, roles, tools or versions used. The only precondition that follows from the summary is that the endpoint is reachable without authentication: no session or credential is needed to obtain a response.
Finding it
The researcher identified an API endpoint related to coupons that returned customer information to an unauthenticated caller. The response was selected by a parameter: changing that parameter returned information belonging to a different customer. That turns a single disclosure into an enumerable one, because the caller can walk the parameter space and collect records for many customers.
Exploitation
Step 1: Reach the coupon endpoint without authentication
The endpoint responds to an unauthenticated request and returns customer data. The summary does not reproduce the request line, headers or response body, so the exact URL and parameter names are not available here.
Step 2: Modify the parameter to select another customer
By modifying a parameter in the request, information belonging to different customers is returned. The summary does not state which parameter this is or what values it takes.
Step 3: Enumerate
Repeating step 2 with different parameter values allows enumeration of all coupon data through basic parameter manipulation. Each response carries company names, phone numbers, email addresses, tokens and coupon details for the record selected.
Root cause
The endpoint returns customer records without checking that the caller is authenticated, and it selects the record from a caller-supplied parameter rather than from the caller's own identity. In other words, authorisation is missing at the object level: the server trusts the parameter to decide whose data to return. The summary does not describe the server-side code, so the precise implementation mistake is not known; . Why existing defences did not stop it is not stated.
Impact
An unauthenticated attacker can read customer records: company names, phone numbers, email addresses, tokens and coupon details. Because the record is chosen by a parameter, the attacker can enumerate the full set of coupon data rather than only guessing single records. The summary frames this as a significant risk to user privacy and data security. The tokens exposed are described only as tokens; the summary does not say what they authorise, so any further access they enable is not established here.
Fix
The report does not describe a fix or a change made by the program. What the behaviour calls for is authentication on the endpoint and an authorisation check that ties the returned record to the authenticated caller, so that a parameter cannot select another customer's data.
Variants to test
- Coupon and voucher endpoints on other retail sites: request one without a session and see whether customer data comes back.
- Identifier parameters in any customer-facing API: change the value to a neighbouring one and check whether the response describes a different customer.
- Endpoints used by client-side JavaScript for coupon display: look for calls that carry a customer or coupon identifier and replay them without credentials.
- Bulk behaviour: if a single changed value returns another record, try a small sequence of values and see whether records are returned consistently, which is what turns disclosure into enumeration.
A positive result is a response containing another customer's company name, phone number, email address, token or coupon details, obtained without authentication.
Hunting notes
The impact case here rests on two properties together: no authentication, and a parameter that selects the record. Demonstrating both, and showing that changing the parameter returns a different customer's data, is what establishes enumeration rather than a one-off leak.
What happened, in plain words
A security researcher found a problem on the Royal Canin Greece website, which runs on *.myroyalcanin.gr and is part of the Mars bug bounty programme on HackerOne. A bug bounty programme is an arrangement where a company invites outside people to look for security problems and report them, sometimes for a reward.
The feature involved is coupons. A coupon is a code or offer that a customer can redeem, for example a discount on pet food. The server is the computer that holds the data and answers requests; the website in your browser is the client.
The problem is that the part of the server that answers coupon requests, called an API endpoint, gave out customer information to anyone who asked, without checking who was asking. An API (Application Programming Interface) is a way for one piece of software to talk to another. Think of it as a service counter: you pass a request through a small window and get an answer back. An endpoint is one specific counter for one specific job, here the coupon counter.
Worse, the answer was chosen by a value in the request. Change that value, and the server returned a different customer's data. That means someone could walk through many values and collect records for many customers, one after another. The data exposed, as the programme's summary lists it, is company names, phone numbers, email addresses, tokens and coupon details. A token is a short piece of text that usually acts like a temporary key, proving who you are or granting access to something.
The weakness is classified as CWE-200, Exposure of Sensitive Information to an Unauthorized Actor. In plain words: private information was handed to someone who should not have it. CWE is a public catalogue of weakness types, and CWE-200 is the entry for this kind of leak. The severity is medium, with a CVSS score of 5.7. CVSS is a standard scoring system for how serious a security flaw is; 5.7 sits in the middle of its range.
Context
The target is the Royal Canin Greece website on *.myroyalcanin.gr, run under the Mars bug bounty programme on HackerOne. The affected feature is coupons. The programme's summary describes an API endpoint behind that feature that returns customer information without requiring authentication, and that lets the caller change which customer's data comes back by modifying a parameter.
Authentication means proving who you are, usually by logging in. A parameter is a named value attached to a request, like a label on a form field: the name says what the value is for, and the value says which one. The data exposed, as listed in the summary, is company names, phone numbers, email addresses, tokens and coupon details. The weakness is CWE-200, rated medium with a CVSS score of 5.7.
Setup
The report does not describe any accounts, roles, tools or versions used. The only precondition that follows from the summary is that the endpoint is reachable without authentication: no session or credential is needed to obtain a response. A session is the state of being logged in, usually remembered by the browser through a cookie, which is a small piece of data a site stores in your browser and sends back with each request. Here, none of that was needed.
Finding it
The researcher identified an API endpoint related to coupons that returned customer information to an unauthenticated caller. The response was selected by a parameter: changing that parameter returned information belonging to a different customer. That turns a single disclosure into an enumerable one, because the caller can walk the parameter space and collect records for many customers. Enumeration means trying values one by one in a systematic way, like reading through numbered lockers instead of guessing a single combination.
Exploitation
Step 1: Reach the coupon endpoint without authentication
The endpoint responds to an unauthenticated request and returns customer data. The summary does not reproduce the request line, headers or response body, so the exact URL and parameter names are not available here. Headers are the extra lines of information a browser and server exchange alongside a request, such as what kind of answer is wanted.
Step 2: Modify the parameter to select another customer
By modifying a parameter in the request, information belonging to different customers is returned. The summary does not state which parameter this is or what values it takes. The idea is the same as changing a seat number on a booking form and finding that the confirmation shows someone else's name.
Step 3: Enumerate
Repeating step 2 with different parameter values allows enumeration of all coupon data through basic parameter manipulation. Each response carries company names, phone numbers, email addresses, tokens and coupon details for the record selected. Basic parameter manipulation means simply editing the value in the request, no special tooling required.
Root cause
The endpoint returns customer records without checking that the caller is authenticated, and it selects the record from a caller-supplied parameter rather than from the caller's own identity. In other words, authorisation is missing at the object level: the server trusts the parameter to decide whose data to return. Authorisation is the check of whether an identified person is allowed to do or see a particular thing; object-level authorisation means checking that this specific record belongs to this specific caller. The summary does not describe the server-side code, so the precise implementation mistake is not known; . Why existing defences did not stop it is not stated.
Impact
An unauthenticated attacker can read customer records: company names, phone numbers, email addresses, tokens and coupon details. Because the record is chosen by a parameter, the attacker can enumerate the full set of coupon data rather than only guessing single records. The summary frames this as a significant risk to user privacy and data security. The tokens exposed are described only as tokens; the summary does not say what they authorise, so any further access they enable is not established here.
Fix
The report does not describe a fix or a change made by the program. What the behaviour calls for is authentication on the endpoint and an authorisation check that ties the returned record to the authenticated caller, so that a parameter cannot select another customer's data.
Variants to test
- Coupon and voucher endpoints on other retail sites: request one without a session and see whether customer data comes back.
- Identifier parameters in any customer-facing API: change the value to a neighbouring one and check whether the response describes a different customer.
- Endpoints used by client-side JavaScript for coupon display: look for calls that carry a customer or coupon identifier and replay them without credentials. Client-side JavaScript is code that runs in your browser, and it often shows which API calls the site makes.
- Bulk behaviour: if a single changed value returns another record, try a small sequence of values and see whether records are returned consistently, which is what turns disclosure into enumeration.
A positive result is a response containing another customer's company name, phone number, email address, token or coupon details, obtained without authentication.
Hunting notes
Recon, short for reconnaissance, is the early stage of looking around a target to see what it is made of. The impact case here rests on two properties together: no authentication, and a parameter that selects the record. Demonstrating both, and showing that changing the parameter returns a different customer's data, is what establishes enumeration rather than a one-off leak.
Glossary
- API: a way for software to talk to other software, usually by sending a request and receiving a structured answer.
- Endpoint: one specific address in an API that performs one specific job, such as returning coupon details.
- Authentication: proving who you are, typically by logging in.
- Authorisation: the check of whether an identified person is allowed to see or do a particular thing.
- Object-level authorisation: checking that a specific record belongs to the specific caller asking for it.
- Parameter: a named value attached to a request that tells the server what you want, such as which record to return.
- Parameter manipulation: editing that value by hand to ask for something different.
- Session: the state of being logged in, usually remembered by the browser.
- Cookie: a small piece of data a site stores in your browser and sends back with each request.
- Token: a short piece of text that usually acts like a temporary key, proving identity or granting access.
- Header: an extra line of information exchanged alongside a request or response.
- Client and server: the client is the software in front of you, such as your browser; the server is the computer that holds data and answers requests.
- Client-side JavaScript: code that runs in your browser and often reveals which API calls a site makes.
- CWE: a public catalogue of weakness types; CWE-200 is Exposure of Sensitive Information to an Unauthorized Actor.
- CVSS: a standard scoring system for the severity of a security flaw; 5.7 is a medium score.
- Enumeration: trying values one by one in a systematic way to collect many records.
- Recon: the early stage of looking around a target to understand what it is made of.
- Bug bounty programme: an arrangement where a company invites outside people to find and report security problems.