How I was able to takeover account’s of an Earning App
The app's cashout redirect page accepted a user identifier and user key passed in the URL, with no session token required. By obtaining another user's identifier and key from a chat notification, the author could log into that user's account.
Published on medium.com
{{media:0}}
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
The target was a real-money earning app found on Google Play, picked by the researcher as the first result when searching for "Real Money Earning apps". The app pays users for activity and lets them withdraw the balance through a cashout button. Pressing that button does not perform the withdrawal inside the app: it redirects the user to an account page on the vendor's website, carrying the user's identity in the URL.
The report focuses on that redirect and on the chat notification feature, and on how the two together let one user open another user's account page.
Setup
- The researcher installed the app from Google Play, created an account and earned money in it, reaching 1.08 dollar over one week.
- Two accounts were used for testing: the researcher's own account, opened in Firefox configured to proxy traffic through Burp, and a second test account on a phone.
- The chat feature of the app was used to send a message from the test account to the main account, so that the notification generated for the main account could be intercepted.
The redirect URL carries version=39.0.2.
Finding it
After earning 1.08 dollar the researcher pressed the cashout button. The app redirected to the web account page with a URL of this shape:
https://www.app.com/redirect?client-id=56543-user-key=[redacted]=[redacted]&page=account%2Fcashout&lang=en&version=39.0.2
The important observation was that the redirect carried no session token. The redirect carried no session token; the URL included client-id and user-key values.

The image shows the redirect URL as it appeared while the cashout redirect was being followed, with the user key and the email address in the query string.
To confirm that the two parameters are what select the account, the researcher changed the email portion to test@. The page answered with "Please correct your Client-id and user-key", The page answered with "Please correct your Client-id and user-key"..
Exploitation
Step 1: obtain a victim's id and key from a chat notification
The app has a chat feature. The researcher opened the main account in the Burp-proxied Firefox and the test account on the phone, then sent a message from the test account to the main account. The main account received a notification; clicking it displays the details of the message, and the researcher intercepted that notification traffic in Burp. The response in Burp Repeater contained the user id and user key:
{“account”:{“Key”:”[redacted].”account”:{“id”:”61247ec0-c3ec-11e8–81e3-e9265c5b6228"
The intercepted notification response contained a user id and user key.
Step 2: replay the pair in the redirect
With the id and key from the notification, the researcher built the redirect URL again, substituting the victim's values:
The page opened the victim's account. The researcher describes the result as being able to log in to the victim account successfully, and characterises the whole chain as simple.
Root cause
The web redirect authenticates a user by the client-id and user-key pair passed in the URL, and the app hands out that same pair inside chat notification data. There is no session token bound to the browser, so possession of the pair is sufficient to be treated as the account owner. The page rejected the altered email with "Please correct your Client-id and user-key". The key appeared in the intercepted notification response.
Impact
An attacker who can obtain another user's id and Key can open that user's account page through the redirect, which in this app is the page used for cashout. In the researcher's test this gave access to the victim account. The report does not describe what further actions were possible once the account page was open, nor how widely the notification data could be obtained beyond the researcher's own interception.
Fix
The vendor patched the issue one day after the report; the researcher says they added session tokens for a unique user per session. The report records that no bounty was paid.
Variants to test
- Look for mobile-to-web handoff URLs that carry identity in query parameters (
client-id,user-key,token, email) instead of a short-lived session. A positive result is a URL that opens an account page with no cookie or session established beforehand. - Intercept push notification and in-app message payloads and inspect them for identifiers or keys belonging to the recipient. A positive result is a payload containing a stable credential for the account rather than an opaque message id.
- Take a valid pair from your own account, alter one component and observe the error. A specific validation message such as "Please correct your Client-id and user-key" tells you the server parses the pair and is worth testing with a pair taken from a second account.
- Check whether the same pair works from a different browser, IP or device with no prior session. A positive result is the account page loading for a fresh client.
- Test whether the key rotates after logout, password change or a new login. A positive result for the attacker is a key that stays valid across those events.
What happened, in plain words
A researcher installed a real-money earning app from Google Play. The app pays you for activity and lets you withdraw what you have earned through a cashout button. When you press that button, the app does not do the withdrawal itself: it sends your browser to a page on the company's website, and it puts your identity into the web address (the URL) it sends you to.
The researcher noticed that this web address contained no session token. A session token is a short-lived secret that a website gives your browser after you log in, so that the site can recognise you on the next page you open. Think of it as the wristband you get at a festival: you show it at the gate and you are let in, and it is tied to you for that day. Without one, the site has to rely on whatever else the URL carries.
In this case the URL carried two values, client-id and user-key, and those two values were enough to make the website open an account. The researcher then found that the app's chat notification data also contained a user's id and key. Putting the two facts together, one user could open another user's account page. The vendor fixed it the day after the report by adding session tokens.
Background: the pieces involved
Before walking through the steps, here are the concepts that come up, explained from scratch.
- App and web page handoff. Many mobile apps do not do everything themselves. For some screens, such as payments or account settings, they open a page on the company's website inside the app or in a browser. To make that page show the right person's data, the app has to tell the website who is asking. That handoff is what this report is about.
- URL and query string. A URL is the address of a page, for example
https://www.app.com/redirect. Everything after a?is called the query string, and it is a list ofname=valuepairs joined by&. So?page=account&lang=enmeans "the parameterpagehas the valueaccount, and the parameterlanghas the valueen". Websites read these values to decide what to show. - API. An API is the way one piece of software asks another for data, without a human clicking anything. When the app shows you a chat message, it is not reading it from the screen: it asked the company's server for it through an API, and the server replied with data, usually in a format called JSON. JSON is just text that represents labelled values, like
{"name": "value"}. - Session token and cookie. After you log in, a website usually gives your browser a token, stored in a small file called a cookie. On every later request the browser sends that cookie back, and the server uses it to know who you are. The point of a token is that it is hard to guess, it expires, and it is tied to your browser session. If a URL carries your identity instead of a token, then anyone who sees or obtains that URL can act as you.
- Intercepting traffic. Tools such as Burp Suite sit between your browser or phone and the internet and let you read and modify the requests and responses. This is how a tester sees what an app actually sends, rather than what it displays. Firefox can be configured to send its traffic through such a tool.
- Information disclosure. This is the vulnerability class here. It means the system reveals data to someone who should not have it. In this case, the chat notification data revealed a user's id and key, which were the very values the web redirect used to identify an account.
Setting up the test
- The researcher searched Google Play for "Real Money Earning apps" and picked the first result. He created an account and started earning, reaching 1.08 dollar over one week.
- He then decided to cash out. Pressing the cashout button redirected him to an account page on the vendor's website.
- For testing he used two accounts: his own account, opened in Firefox configured to send traffic through Burp, and a second test account on his phone. Having two accounts lets you compare what one sees about the other.
- He used the app's chat feature to send a message from the test account to his main account, so that the notification generated for the main account could be intercepted.
The redirect URL carries version=39.0.2.
Finding the weakness
After earning 1.08 dollar, the researcher pressed the cashout button. The app redirected to the web account page with a URL of this shape:
https://www.app.com/redirect?client-id=56543-user-key=[redacted]=[redacted]&page=account%2Fcashout&lang=en&version=39.0.2
Line by line, in plain words:
https://www.app.com/redirectis the page on the company's website that receives the handoff from the app.client-id=56543is the first value in the query string.user-key=[redacted]=[redacted]is the second value, a key that is paired with the client id. The email address is part of this value in the URL as written.page=account%2Fcashoutsays which page to open.%2Fis how a slash/is written when it appears inside a URL value, so this meansaccount/cashout.lang=ensets the language, andversion=39.0.2records the app version.
The important observation was that the redirect carried no session token. The redirect carried no session token; the URL included client-id and user-key values.

The image shows the redirect URL as it appeared while the cashout redirect was being followed, with the user key and the email address in the query string.
To confirm that the two parameters are what select the account, the researcher changed the email portion to test@. The page answered with "Please correct your Client-id and user-key".
Getting another user's id and key
The app has a chat feature. The researcher opened the main account in the Burp-proxied Firefox and the test account on the phone, then sent a message from the test account to the main account. The main account received a notification. Clicking it displays the details of the message, and the researcher intercepted that notification traffic in Burp. The response in Burp Repeater contained the user id and user key:
{“account”:{“Key”:”[redacted].”account”:{“id”:”61247ec0-c3ec-11e8–81e3-e9265c5b6228"
In plain words: this is a JSON-shaped response. It has an account object, and inside it a Key value, which is the long string of letters and digits. It also has an id value, which is the long string with dashes. The response as written in the report is not perfectly formed JSON, but the two values are clear.
The intercepted notification response contained a user id and user key.
Using the pair in the redirect
With the id and key from the notification, the researcher built the redirect URL again, substituting the victim's values:
Line by line:
- The page is the same
redirectpage as before. client-id=61247is now the victim's client id, taken from the notification response.user-key=[redacted]is the victim's key, also taken from that response.- The rest of the URL,
page=account%2Fcashout,lang=enandversion=39.0.2, is unchanged.
The page opened the victim's account. The researcher describes the result as being able to log in to the victim account successfully, and characterises the whole chain as simple.
Why it worked
The web redirect authenticates a user by the client-id and user-key pair passed in the URL, and the app hands out that same pair inside chat notification data. There is no session token bound to the browser, so possession of the pair is sufficient to be treated as the account owner. The page rejected the altered email with "Please correct your Client-id and user-key".
What an attacker could do
An attacker who can obtain another user's id and Key can open that user's account page through the redirect, which in this app is the page used for cashout. In the researcher's test this gave access to the victim account. The report does not describe what further actions were possible once the account page was open, nor how widely the notification data could be obtained beyond the researcher's own interception.
The fix
The vendor patched the issue one day after the report; the researcher says they added session tokens for a unique user per session. The report records that no bounty was paid.
Things worth testing in a similar app
- Look for mobile-to-web handoff URLs that carry identity in query parameters (
client-id,user-key,token, email) instead of a short-lived session. A positive result is a URL that opens an account page with no cookie or session established beforehand. - Intercept push notification and in-app message payloads and inspect them for identifiers or keys belonging to the recipient. A positive result is a payload containing a stable credential for the account rather than an opaque message id.
- Take a valid pair from your own account, alter one component and observe the error. A specific validation message such as "Please correct your Client-id and user-key" tells you the server parses the pair and is worth testing with a pair taken from a second account.
- Check whether the same pair works from a different browser, IP or device with no prior session. A positive result is the account page loading for a fresh client.
- Test whether the key rotates after logout, password change or a new login. A positive result for the attacker is a key that stays valid across those events.
Glossary
- API: the way one piece of software asks another for data, without a human clicking anything.
- Burp Suite: a tool that sits between your browser or phone and the internet so you can read and modify requests and responses.
- Burp Repeater: a part of Burp Suite that lets you send the same request again, possibly modified, and read the response.
- Client: the software making a request, such as the app on a phone or a browser.
client-id: in this report, an identifier for the account or installation making the request to the web page.- Cookie: a small file a website stores in your browser, often holding a session token.
- Information disclosure: a vulnerability where the system reveals data to someone who should not have it.
- JSON: a text format for labelled values, used to send data between software.
- Query string: the part of a URL after the
?, made ofname=valuepairs joined by&. - Redirect: a response that sends your browser to a different URL.
- Session token: a short-lived secret given to your browser after login, used to recognise you on later requests.
- URL: the address of a page on the web.
user-key: in this report, the second value paired withclient-idthat the web page uses to identify the account.- Vulnerability class: a general category of weakness, such as information disclosure, used to group similar bugs.