Sensitive Info Leak in Curve App [Bug Bounty]
The waitlist tracking endpoint returned full user records, including name, email, phone number and address, for any email address supplied. An attacker could enumerate email addresses to harvest personal data of waitlisted users.
Published on praseudo.com
Hi, Am gonna share one of my recent findings in bug bounty (This issue was already fixed)
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
Curve runs a waitlist feature for its US and credit products. The public site is a static web app, and the waitlist functionality lives behind two endpoints that are not linked anywhere in the site's user interface: /credit?rc= and /usa?rc=. Each endpoint offers two functions, "Join Waitlist" and "Track Position". A user joins by submitting a name, email address, mobile number and ZIP code, and later tracks their place in the queue by entering their email address. The UI then shows only a position number, with no personal data displayed.
The researcher's target was the Curve bug bounty program, and the finding was reported and fixed before this write-up was published. The report was marked as Medium severity and rewarded $1500.
Setup
The work was done from the web side rather than against the mobile apps. Rather than concentrating on the .apk or .ipa of the Curve app, the researcher focused on the web applications, which form a completely static site.
Tools used:
- Burp Suite
- JS Link Finder (a Burp extension)
No accounts, special roles or other preconditions are described beyond access to the public site.
Finding it
The first step was crawling the whole website with the Burp JSLinkFinder extension enabled, collecting every path and link the tool extracted from JavaScript. The researcher then requested each of those links and paths one by one. Two stood out:
/credit?rc=/usa?rc=
Neither endpoint is reachable from the website's UI, which is what made them interesting.
Both endpoints expose the same two functions, "Join Waitlist" and "Track Position".
The join form accepts a name, email address, mobile number and ZIP code.
After submitting, a user can check their place in the queue through "Track Position" by entering their email address.
The response to that lookup is just an application position number. The UI deliberately shows no PII, only the position.
That gap between what the UI shows and what the backend must know is what prompted the researcher to test the tracking endpoint directly, on the guess that sensitive information might leak.
Exploitation
Step 1: reach the tracking form
Navigate to https://curve.com/usa and click "Track Position".
Step 2: submit an email address
Enter any email address and click "Submit", with Burp intercepting traffic so the request can be captured.
Step 3: capture the vulnerable request
The intercepted request looks like this:
POST /api/waitlist/us HTTP/1.1
Host: website-api.production.curve.app
Connection: close
Content-Length: 30
Accept: application/json, text/plain, */*
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36
Content-Type: application/json;charset=UTF-8
Origin: https://www.curve.com
Sec-Fetch-Site: cross-site
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://www.curve.com/credit?rc=
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
{"email":"[redacted]"}
The request goes to the API host website-api.production.curve.app, not to the static site, and carries the email address as the only body parameter. The Referer shows the request originated from the /credit?rc= page.
Step 4: brute force the email parameter
Send the captured request to Burp Intruder and brute force the email parameter. The researcher reports that this retrieves the mobile numbers, IDs, addresses and other sensitive information of all waitlisted users in the response.
Step 5: read the leaked record
A single response looks like this:
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 268
Connection: close
access-control-allow-origin: *
x-dns-prefetch-control: off
x-frame-options: SAMEORIGIN
strict-transport-security: max-age=15552000; includeSubDomains
x-download-options: noopen
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
etag: W/"10c-Qj52/PIteKYG+1CbKaOCNpKyiDo"
date: Fri, 19 Jun 2020 09:41:26 GMT
x-envoy-upstream-service-time: 3
x-envoy-peer-metadata: [REDACTED]
x-envoy-peer-metadata-id: sidecar~[redacted]~website-api-7d974f5475-dtng8.production~production.svc.[redacted]
server: envoy
X-Cache: Miss from cloudfront
Via: 1.1 [redacted].cloudfront.net (CloudFront)
X-Amz-Cf-Pop: MAA50-C2
X-Amz-Cf-Id: [redacted]==
{"_id":"5eec6b1a958666b5141063e3","name":"Cxvvc","email":"[redacted]","phoneNumber":"7XXXXXXXXX","zipcode":"10001","position":4379,"referralCode":"BCeE8mzI","createdAt":"2020-06-19T07:36:58.460Z","updatedAt":"2020-06-19T07:36:58.460Z","__v":0,"status":"EXIST"}
Instead of the position number the UI shows, the API returns the full waitlist record: the internal _id, the user's name, email, phone number, ZIP code, queue position, referral code and timestamps. The response also carries access-control-allow-origin: *.
Step 6: try the other endpoint
The same approach was tried against /credit?rc=, but with no luck: that endpoint returns only the position number and dates, with no PII.
A video proof of concept accompanies the report:
Root cause
The tracking endpoint looks up a waitlist entry by email address and returns the whole stored record rather than the single field the UI needs. The UI only renders position, so the extra fields are never shown to a legitimate user, but they are present in every response. Because the lookup is keyed on an email address supplied by the caller and there is no other check tying the request to the owner of that address, an attacker can enumerate addresses and harvest records. The report does not describe the server-side code, so the exact implementation is not stated.
Impact
An attacker who can guess or enumerate email addresses can retrieve the name, phone number, ZIP code, internal ID, referral code and queue position of waitlisted users, one record per request. The researcher frames this as a sensitive information leak affecting all waitlisted users. The practical reach depends on how many addresses the attacker can enumerate, which the report does not quantify.
Fix
The report states that the issue was already fixed at the time of publication but does not describe the change. A remedy consistent with the finding would be for the tracking endpoint to return only the position rather than the full record.
Variants to test
-
Crawl static sites with a JavaScript link finder and request every extracted path. A positive result is an endpoint that is not linked in the UI but responds with data, such as the
/credit?rc=and/usa?rc=paths here. -
Take any "lookup by email" or "track status" form, intercept the request and compare the response body with what the UI renders. A positive result is extra fields in the JSON that the page never displays.
-
Send the lookup request to Intruder with a list of candidate addresses. A positive result is a stream of distinct records rather than a single position value.
-
Repeat the lookup against sibling endpoints of the same product, as was done for
/credit?rc=. A negative result there (position and dates only) shows the flaw is per-endpoint, not systemic.
What happened, in plain words
Curve is a company that offers financial products. Before launching a product in a new market, it puts up a waiting list: people sign up with their details and are given a place in the queue. The researcher was taking part in Curve's bug bounty programme, which is a scheme where a company invites independent security researchers to look for flaws in its systems and pays them for reporting what they find. This particular finding was reported, fixed, and later written up. The report was marked as Medium severity and rewarded $1500.
The interesting part is what the waiting list page showed versus what the server behind it actually sent back. On screen, a person who checks their place in the queue sees only a number, for example "you are number 4379". But the server's reply, hidden behind the page, contained the whole stored record for that person: their name, phone number, ZIP code, an internal identifier, a referral code and timestamps. The page simply chose not to display those fields. Anyone who could look at the raw reply, and who could guess email addresses, could collect those records one by one.
This kind of flaw is called an information disclosure, or sensitive information leak: the system gives out more data than the person asking is entitled to see. A useful everyday comparison is a cloakroom. You hand in your ticket, the attendant checks it and tells you "your coat is number 42". That is all you need. A leak is when the attendant, instead of saying "number 42", reads out the coat owner's name, address and phone number to anyone who asks about any ticket.
Background ideas you will need
Before walking through the steps, here are the few concepts the rest of the article relies on.
- Static website: a site made of files that are sent to your browser exactly as they are stored. Nothing is calculated on the server when you visit a page; the page is the same for everyone. Curve's public site is described as completely static.
- API: short for Application Programming Interface. In web terms it is a separate address on a server that accepts a request and answers with data, usually in a machine-readable format such as JSON, rather than with a web page. Think of the website as the shop counter and the API as the stockroom behind it: the page you see asks the stockroom for the facts it needs.
- Endpoint: one specific address on an API that does one specific job.
/api/waitlist/usis an endpoint. The word is used loosely here for the web addresses/credit?rc=and/usa?rc=as well. - JSON: a text format for structured data, made of names and values in curly braces, like
{"name":"Cxvvc"}. It is how the API answers. - Request and response: your browser sends a request ("give me the record for this email") and the server sends back a response (the data, plus some headers).
- HTTP headers: extra lines of information attached to a request or response, separate from the body. They describe things like the format of the data, the date, or which page the request came from.
- PII: Personally Identifiable Information, meaning data that can identify a real person, such as a name, email address, phone number or home address.
- Reconnaissance (recon): the information-gathering phase of security testing. Before attacking anything, you map out what exists: which pages, which addresses, which files.
- Crawling: automatically visiting a site and following every link found, to discover all of its pages. A crawler is the program that does this.
- JavaScript: the programming language that runs inside web pages and makes them interactive. Modern sites ship JavaScript files that often contain the addresses the page will call later, which is why crawlers read them.
- Burp Suite: a widely used tool that sits between your browser and the internet and lets you look at, pause and modify every request and response. It is the standard workbench for this kind of testing.
- Burp extension: a plug-in that adds features to Burp Suite. JS Link Finder is one such extension: it reads JavaScript files and pulls out the links and paths found inside them.
- Intercept: a Burp feature that pauses a request on its way out so you can read it, change it, and then let it continue.
- Burp Intruder: another Burp feature that takes one request and repeats it many times, each time substituting a different value into a chosen position. It is used to try long lists of inputs automatically, which is what "brute forcing" means here.
- Brute force: trying many possibilities in sequence until one works. In this case, trying many email addresses against the same lookup.
- Enumeration: walking through a list of candidate values (here, email addresses) to discover which ones exist and to collect the data attached to each.
- CORS and
access-control-allow-origin: browsers have a rule that a page from one site may not read data from another site unless the other site explicitly allows it. The server signals that permission with theaccess-control-allow-originresponse header. A value of*means "any website at all may read this". - Severity and bounty: severity is the label for how serious a flaw is (here, Medium). The bounty is the money paid for the report (here, $1500).
The setup
The researcher chose to look at the web side of Curve rather than concentrating on the mobile apps. The Curve app exists as an Android package (.apk) and an iOS package (.ipa), but the focus was the web applications. The focus was the web applications, which form a completely static site. The reasoning is simple: a static site still has to talk to an API to do anything useful, and that conversation is where data can leak.
The tools used were:
- Burp Suite
- JS Link Finder (a Burp extension)
No accounts, special roles or other preconditions are described beyond access to the public site. Everything below was done as an ordinary visitor.
Finding the hidden pages
The first step was to crawl the whole website with the Burp JSLinkFinder extension switched on. As the crawler moved through the site, the extension read the JavaScript files and collected every path and link it could extract from them. The researcher then requested each of those links and paths one by one, by hand, to see what answered.
Two of them stood out:
/credit?rc=/usa?rc=
Neither of these is reachable from the website's user interface. In other words, no button, menu or link on the visible site leads to them; they exist, but nothing advertises them. That is exactly what made them interesting. The ?rc= part is a query string, the portion of a web address after the question mark that can carry extra values.
Both endpoints expose the same two functions, "Join Waitlist" and "Track Position".
The join form accepts a name, email address, mobile number and ZIP code. This is the data the company needs to contact people and to know where they are, so it is the data that will later be stored.
After submitting, a user can check their place in the queue through "Track Position" by entering their email address.
The response to that lookup is just an application position number. The UI deliberately shows no PII, only the position.
That gap between what the UI shows and what the backend must know is what prompted the researcher to test the tracking endpoint directly, on the guess that sensitive information might leak. The logic is worth spelling out, because it is the heart of the finding: to display "position 4379", the server had to find the right record in its database. A record that contains a position almost certainly contains the name, phone and address that were submitted with it. If the server sends the whole record and the page merely hides the extra fields, then the data is already in the browser and only the display is holding it back. Looking at the raw response, rather than the rendered page, would reveal it.
Exploitation, step by step
Step 1: reach the tracking form
Navigate to https://curve.com/usa and click "Track Position". This is the ordinary, intended way in. The point is to make the browser send the same request a normal user would send, so that it can be captured.
Step 2: submit an email address
Enter any email address and click "Submit", with Burp intercepting traffic so the request can be captured. Interception is switched on before submitting, so the request pauses inside Burp instead of going straight to the server. That pause is what allows the next step.
Step 3: capture the vulnerable request
The intercepted request looks like this:
POST /api/waitlist/us HTTP/1.1
Host: website-api.production.curve.app
Connection: close
Content-Length: 30
Accept: application/json, text/plain, */*
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36
Content-Type: application/json;charset=UTF-8
Origin: https://www.curve.com
Sec-Fetch-Site: cross-site
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://www.curve.com/credit?rc=
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
{"email":"[redacted]"}
Line by line, in plain words:
POST /api/waitlist/us HTTP/1.1: this is a POST request, meaning the browser is sending data rather than just asking for a page, to the path/api/waitlist/us.HTTP/1.1is the version of the web protocol being used.Host: website-api.production.curve.app: the address of the server being contacted. Notice it is notcurve.com; the page on the static site is calling a separate API server.productionmeans this is the live system, not a test one.Connection: close: the browser is telling the server it does not want to keep the connection open afterwards.Content-Length: 30: the size, in bytes, of the body that follows. It is how the server knows where the body ends.Accept: application/json, text/plain, */*: the formats the browser is willing to receive, in order of preference: JSON first, then plain text, then anything.User-Agent: ...: a description of the browser and operating system that sent the request. Here it identifies Chrome 83 on macOS.Content-Type: application/json;charset=UTF-8: the format of the body being sent, namely JSON encoded as UTF-8 text.Origin: https://www.curve.com: the site the request is coming from. Servers use this for cross-origin checks.Sec-Fetch-Site: cross-site: a hint added by the browser saying the request is going to a different site than the one the page belongs to. That is consistent with a page oncurve.comcalling an API oncurve.app.Sec-Fetch-Mode: cors: the browser is treating this as a cross-origin request, so the response will only be readable by the page if the server permits it.Sec-Fetch-Dest: empty: the response is not going to be displayed as a page, image or similar; it is data for the script.Referer: https://www.curve.com/credit?rc=: the page that triggered the request. Interestingly, it is the/credit?rc=page, even though the researcher navigated to/usa; the two pages share the same tracking machinery.Accept-Encoding: gzip, deflate: the compression formats the browser can handle for the response.Accept-Language: en-GB,en-US;q=0.9,en;q=0.8: the languages the user prefers, with relative weights.- The blank line separates headers from body.
{"email":"[redacted]"}: the body. It is a JSON object with a single field,email, whose value is the address that was typed into the form. This is the only thing the server is given to identify which record to look up.
The request goes to the API host website-api.production.curve.app, not to the static site, and carries the email address as the only body parameter. The Referer shows the request originated from the /credit?rc= page.
Step 4: brute force the email parameter
Send the captured request to Burp Intruder and brute force the email parameter. In practice this means marking the email value as the position to be varied, loading a list of candidate addresses, and letting Burp send the request once per address. The researcher reports that this retrieves the mobile numbers, IDs, addresses and other sensitive information of all waitlisted users in the response.
Why does this work? Because the server decides what to return purely on the basis of the email address in the body. It never asks the caller to prove that the address belongs to them. So every address in the list that exists in the waiting list produces a full record. The list does not have to be perfect; it only has to contain addresses that were used to sign up.
Step 5: read the leaked record
A single response looks like this:
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 268
Connection: close
access-control-allow-origin: *
x-dns-prefetch-control: off
x-frame-options: SAMEORIGIN
strict-transport-security: max-age=15552000; includeSubDomains
x-download-options: noopen
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
etag: W/"10c-Qj52/PIteKYG+1CbKaOCNpKyiDo"
date: Fri, 19 Jun 2020 09:41:26 GMT
x-envoy-upstream-service-time: 3
x-envoy-peer-metadata: [REDACTED]
x-envoy-peer-metadata-id: sidecar~[redacted]~website-api-7d974f5475-dtng8.production~production.svc.[redacted]
server: envoy
X-Cache: Miss from cloudfront
Via: 1.1 [redacted].cloudfront.net (CloudFront)
X-Amz-Cf-Pop: MAA50-C2
X-Amz-Cf-Id: [redacted]==
{"_id":"5eec6b1a958666b5141063e3","name":"Cxvvc","email":"[redacted]","phoneNumber":"7XXXXXXXXX","zipcode":"10001","position":4379,"referralCode":"BCeE8mzI","createdAt":"2020-06-19T07:36:58.460Z","updatedAt":"2020-06-19T07:36:58.460Z","__v":0,"status":"EXIST"}
Again, line by line:
HTTP/1.1 200 OK: the version of the protocol, then the status code.200means success, andOKis its human-readable label.Content-Type: application/json; charset=utf-8: the body is JSON text.Content-Length: 268: the body is 268 bytes long.Connection: close: the connection will be closed after this response.access-control-allow-origin: *: the server is telling the browser that any website whatsoever is allowed to read this response. This is the CORS permission mentioned earlier, and here it is wide open.x-dns-prefetch-control: off: a minor browser hint about pre-resolving domain names; it is switched off.x-frame-options: SAMEORIGIN: the page may only be framed by pages from the same origin. This is a clickjacking defence and is unrelated to the leak.strict-transport-security: max-age=15552000; includeSubDomains: tells the browser to use HTTPS for this site for the next 15552000 seconds (180 days) and to apply that to subdomains too.x-download-options: noopen: an old Internet Explorer instruction not to open downloads directly.x-content-type-options: nosniff: tells the browser not to guess the content type but to trust the declared one.x-xss-protection: 1; mode=block: an old browser filter against cross-site scripting, set to block rather than sanitise.etag: W/"...": an identifier for this particular version of the response, used for caching.date: Fri, 19 Jun 2020 09:41:26 GMT: when the server produced the response.x-envoy-upstream-service-time: 3: how long, in milliseconds, the internal service took to answer.envoyis a proxy that sits in front of services.x-envoy-peer-metadata: [REDACTED]andx-envoy-peer-metadata-id: sidecar~...: internal routing information added by that proxy. The first has been redacted here; the second reveals an internal service name and address, which is itself the kind of detail that should not be exposed.server: envoy: the software that answered.X-Cache: Miss from cloudfront: the request was not served from the content delivery network's cache; it went to the origin. CloudFront is Amazon's content delivery network.Via: 1.1 ...cloudfront.net (CloudFront): the chain of proxies the response passed through.X-Amz-Cf-Pop: MAA50-C2: which CloudFront location served it.X-Amz-Cf-Id: ...: an identifier CloudFront assigns to the request.- The blank line, then the body.
- The body is a single JSON object.
_idis the internal database identifier for the record.nameis the person's name.emailis the address that was looked up.phoneNumberis their mobile number.zipcodeis their ZIP code.positionis their place in the queue, the only field the page displays.referralCodeis a code tied to their sign-up.createdAtandupdatedAtare timestamps for when the record was created and last changed.__vis a version counter used by the database library.statusisEXIST, meaning the record was found.
Instead of the position number the UI shows, the API returns the full waitlist record: the internal _id, the user's name, email, phone number, ZIP code, queue position, referral code and timestamps. The response also carries access-control-allow-origin: *.
Step 6: try the other endpoint
The same approach was tried against /credit?rc=, but with no luck: that endpoint returns only the position number and dates, with no PII. That negative result is useful, because it shows the flaw is specific to one endpoint rather than a habit of the whole system.
A video proof of concept accompanies the report:
Why it happened
The tracking endpoint looks up a waitlist entry by email address and returns the whole stored record rather than the single field the UI needs. The UI only renders position, so the extra fields are never shown to a legitimate user, but they are present in every response. Because the lookup is keyed on an email address supplied by the caller and there is no other check tying the request to the owner of that address, an attacker can enumerate addresses and harvest records. The report does not describe the server-side code, so the exact implementation is not stated.
A comparison may help. Imagine a library where you ask for a book by title and the librarian, instead of saying "yes, we have it, shelf 12", hands you the borrower's membership card along with it. The librarian was only asked a yes-or-no question, but answered with everything on file. The fix is not to change the question; it is to change the answer.
What the impact was
An attacker who can guess or enumerate email addresses can retrieve the name, phone number, ZIP code, internal ID, referral code and queue position of waitlisted users, one record per request. The researcher frames this as a sensitive information leak affecting all waitlisted users. The practical reach depends on how many addresses the attacker can enumerate, which the report does not quantify.
How it was fixed
The report states that the issue was already fixed at the time of publication but does not describe the change. A remedy consistent with the finding would be for the tracking endpoint to return only the position rather than the full record.
Things worth trying yourself
These are the same ideas, phrased as things a beginner can attempt on a site they are authorised to test.
-
Crawl static sites with a JavaScript link finder and request every extracted path. A positive result is an endpoint that is not linked in the UI but responds with data, such as the
/credit?rc=and/usa?rc=paths here. -
Take any "lookup by email" or "track status" form, intercept the request and compare the response body with what the UI renders. A positive result is extra fields in the JSON that the page never displays.
-
Send the lookup request to Intruder with a list of candidate addresses. A positive result is a stream of distinct records rather than a single position value.
-
Repeat the lookup against sibling endpoints of the same product, as was done for
/credit?rc=. A negative result there (position and dates only) shows the flaw is per-endpoint, not systemic.
Glossary
- API: a server address that accepts requests and returns data, usually in JSON, rather than web pages.
- Access-control-allow-origin: an HTTP response header that tells the browser which other websites may read the response;
*means any website. - Brute force: trying many candidate values automatically until one succeeds.
- Bug bounty: a programme where a company pays independent researchers for reporting security flaws.
- Burp Intruder: the part of Burp Suite that repeats one request many times with different values in a chosen position.
- Burp Suite: a tool that sits between browser and internet to capture, inspect and modify requests and responses.
- CORS: the browser rule that stops one site reading another site's data unless the other site permits it.
- Crawling: automatically visiting a site and following its links to discover pages.
- Endpoint: one specific address on an API that performs one specific job.
- Enumeration: walking through a list of candidate values to find which exist and collect their data.
- HTTP headers: extra lines of metadata attached to a request or response, separate from the body.
- Information disclosure: a flaw where a system reveals data to someone not entitled to see it.
- Intercept: pausing a request in Burp so it can be read or changed before it continues.
- JavaScript: the language that runs inside web pages and makes them interactive; its files often contain API addresses.
- JS Link Finder: a Burp extension that extracts links and paths from JavaScript files.
- JSON: a text format for structured data made of names and values.
- PII: Personally Identifiable Information, data that can identify a real person.
- POST request: an HTTP request that sends data to the server, as opposed to simply asking for a page.
- Reconnaissance: the information-gathering phase of security testing.
- Request and response: what the browser sends and what the server sends back.
- Severity: a label for how serious a flaw is, such as Medium.
- Static website: a site made of fixed files sent to the browser as stored, with no server-side calculation per visit.
- Status code: the three-digit number at the start of a response, such as 200 for success.
- User-Agent: a header describing the browser and operating system that sent the request.