IDOR in Stats API Endpoint Allows Viewing Equity or Net Profit of Any MT Account
The stats endpoints in the personal area accepted an account number supplied by the client and returned performance data for that account without checking ownership. An authenticated attacker could change the account number to read another MT trading account's equity, net profit, order counts and trading volume.
- Triaged in 3 hours
- Fixed in 43 days
- Paid in 13 days
- Disclosed after 5 months
Hi Team,
Today I logged into my Exness PA and noticed an updated performance page. I thought to give it a quick check and noticed that the API endpoints responsible for fetching the stats performance chart (*/stats/*) is vulnerable to IDOR via accounts= parameter. The issue allows fetching the stats of any MT account and discloses the account equity / net profit of the corresponding account.
#Vulnerable Endpoints
https://my.exness.com/v3/personal_area/stats/net_profit?time_range=365&accounts={accountNumber}
https://my.exness.com/v3/personal_area/stats/orders_number?time_range=365&accounts={accountNumber}
https://my.exness.com/v3/personal_area/stats/trading_volume?time_range=365&accounts={accountNumber}
https://my.exness.com/v3/personal_area/stats/equity?time_range=365&accounts={accountNumber}
#Steps to Reproduce
GET /v3/personal_area/stats/equity?time_range=365&accounts=xxx HTTP/2
Host: my.exness.com
Authorization: Bearer xyz
Content-Type: application/json
#Proof of Concept
███████
Impact
IDOR allows stats of any MT trading account. The stats includes account net profit, closed order counts, trading volumes and daily equity figures.
Context
Exness runs a Personal Area (PA) for web trading at my.exness.com. One of its features is a performance page at https://my.exness.com/pa/performance/summary, which renders charts describing how a trading account has performed over time. The charts are fed by a set of API endpoints under the */stats/* path, which take a time range and a list of accounts and return aggregated figures for those accounts.
The report concerns those stats endpoints and the accounts= parameter they accept. The researcher found that the parameter is not bound to the caller's own accounts, so the stats of any MT account can be retrieved by anyone who can reach the endpoint with a valid session.
Setup
The researcher was logged in to their Exness Personal Area. The reproduction request carries a valid Authorization: Bearer token for the PA. No special role, tooling or configuration is described beyond that.
Finding it
After logging in, the researcher noticed that the performance page had been updated and decided to look at it. Inspecting the requests the page makes, they found the API endpoints responsible for fetching the stats performance chart, all under */stats/*, and observed that these endpoints accept an accounts= parameter. The report states that the accounts= parameter is vulnerable to IDOR, allowing the stats of any MT account to be fetched. That is the IDOR.
Exploitation
Step 1: identify the stats endpoints
The report lists four endpoints that share the same shape, each taking a time_range and an accounts parameter:
https://my.exness.com/v3/personal_area/stats/net_profit?time_range=365&accounts={accountNumber}
https://my.exness.com/v3/personal_area/stats/orders_number?time_range=365&accounts={accountNumber}
https://my.exness.com/v3/personal_area/stats/trading_volume?time_range=365&accounts={accountNumber}
https://my.exness.com/v3/personal_area/stats/equity?time_range=365&accounts={accountNumber}
Each endpoint returns a different statistic for the account named in accounts: net profit, number of orders, trading volume and equity respectively. time_range=365 selects a one-year window.
Step 2: request another account's stats
The reproduction request is a plain GET against the equity endpoint, with the account number substituted into accounts and the caller's bearer token in the Authorization header:
GET /v3/personal_area/stats/equity?time_range=365&accounts=xxx HTTP/2
Host: my.exness.com
Authorization: Bearer xyz
Content-Type: application/json
Here xxx stands for the target MT account number and xyz for the session token. The important part is that nothing in the request ties accounts to the authenticated user: the token proves who is calling, but the account number is taken at face value. The report states that the request returns the stats of the account named in accounts.
Step 3: confirm the disclosure
The report includes a proof of concept, but the content is redacted in the disclosed text, so the exact response body is not shown here. What the researcher states is that the request returns the stats of the targeted MT account, and that the same behaviour applies to the other three endpoints listed above.
Root cause
The stats endpoints authorise the request (a bearer token is required) but do not perform an object-level check on the accounts parameter. The account number is an identifier supplied entirely by the client, and the server uses it directly to look up and return statistics without verifying that the account belongs to the authenticated user. This is the classic IDOR pattern: authentication is present, authorisation on the specific object is missing. The report does not describe the server-side code, so the exact location of the missing check is not stated; likely the handler resolves the account from the query string and queries the stats store without an ownership filter.
Impact
An authenticated user can retrieve the performance statistics of any MT trading account. The exposed data, as described in the report, comprises:
- account net profit
- closed order counts
- trading volumes
- daily equity figures
The report frames this as disclosure of the account equity and net profit of the corresponding account. It does not describe any write capability, any ability to place trades, or any other effect beyond reading these statistics. The severity assigned to the report is medium.
Fix
The change needed is to bind the accounts parameter to the authenticated user: before returning stats, the server should verify that every account number in the request belongs to the caller and reject or ignore any that do not. Relying on the bearer token alone is not sufficient, because the token identifies the user but says nothing about which account numbers that user may query.
Variants to test
- Other stats endpoints under the same prefix. The report lists four; any sibling path under
/v3/personal_area/stats/that acceptsaccounts=is worth trying with a foreign account number. A positive result is a response containing figures for an account you do not own. - Multiple accounts in one request. The parameter is named
accounts(plural), so try supplying more than one number, mixing your own with a foreign one. A positive result is foreign data appearing alongside your own in the same response. - Other parameters that name an object. Look for
account=,account_id=,login=,mt_account=and similar on the same host. A positive result is the same cross-account disclosure through a different name. - Different time ranges. The report uses
time_range=365; other values may hit different code paths. A positive result is foreign data returned for any range. - Other products on the same PA. The performance page is one feature; other pages that fetch per-account data may share the same pattern. A positive result is any endpoint returning another user's data when you change the identifier.
Hunting notes
This bug sits in the gap between authentication and object-level authorisation on a JSON API behind a single-page application. The signal during recon is a request from the browser that carries both a bearer token and an explicit account or object identifier in the query string or body. If the identifier is a simple number and the response contains per-object figures, it is worth swapping in a number you do not own and comparing the result with your own account's data.
The researcher demonstrated impact by identifying the vulnerable accounts= parameter, listing the affected endpoints and describing the data each one exposes. That combination, a working cross-account read plus a clear inventory of the disclosed fields, is what makes the report actionable for the program.
What happened, in plain words
Exness is a broker: people open trading accounts with it and trade on financial markets. Exness also runs a website called the Personal Area (PA) at my.exness.com, where a customer can log in and see their own accounts, their trades and their results. One page of that Personal Area is a performance page at https://my.exness.com/pa/performance/summary, which draws charts showing how a trading account has done over time: how much profit it made, how much it traded, how much money is in it.
Those charts are not drawn from data baked into the page. The page asks a server for the numbers, and the server answers with them. The piece of software that answers such requests is called an API: think of it as a waiter in a restaurant. The page (the customer) asks the waiter for a specific dish (the numbers), the waiter goes to the kitchen (the database) and brings back exactly that dish. The page never enters the kitchen itself; it only talks to the waiter.
A request to an API usually carries some information about what is being asked for. Here, the page tells the API which trading account the charts are about, using a value called an account number. The researcher found that the API simply believed whatever account number it was given. The API took the account number it was given and returned that account's numbers, without checking whether the account was yours. That is the whole bug.
This kind of mistake has a name: Insecure Direct Object Reference, or IDOR. "Object" here means a thing stored on the server, such as an account, an order or a document. "Reference" means the way you point at that thing, usually a number or an identifier. "Insecure" means the server lets you point at any object you like, instead of only the ones you are allowed to see. A simple everyday comparison: a hotel receptionist hands out room keys to anyone who says a room number, without checking that the person is actually staying in that room. The key system works, the receptionist is polite, but the check that matters is missing.
In this report the researcher was logged in to their own Exness Personal Area, looked at the requests the performance page was making, and found that the accounts= parameter was vulnerable to IDOR, allowing the stats of any MT account to be fetched. The data exposed was the account's equity (roughly, how much money the account is worth at a given moment), its net profit, how many orders it had closed, its trading volume and its daily equity figures.
Context
Exness runs the Personal Area for web trading at my.exness.com. One of its features is the performance page at https://my.exness.com/pa/performance/summary, which renders charts describing how a trading account has performed over time. The charts are fed by a set of API endpoints under the */stats/* path. An endpoint is one specific address on a server that does one specific job, like one counter in a large office: the "stats" counter deals with statistics. These endpoints take a time range and a list of accounts, and return aggregated figures for those accounts. "Aggregated" means the numbers have already been added up and summarised, for example a total profit over a year rather than every single trade.
The report concerns those stats endpoints and the accounts= parameter they accept. A parameter is a named value attached to the end of a web address, after a question mark, that tells the server what you want. In ?time_range=365&accounts=123, there are two parameters: time_range with the value 365, and accounts with the value 123. The & sign separates them.
The researcher found that the accounts parameter is not bound to the caller's own accounts. "Bound" means tied to, checked against. So the stats of any MT account can be retrieved by anyone who can reach the endpoint with a valid session. An MT account is a trading account on the MetaTrader platform, the software Exness customers use to trade. A session is the state of being logged in: the server remembers that this browser belongs to this user, usually by means of a token, which is a long string of characters the browser sends with every request to prove who it is. Think of a token as a wristband you get at the entrance of an event: you show it at every door and the staff let you through without asking for your ID again.
Setup
The researcher had an Exness Personal Area account and was logged in to it. The only precondition shown in the report is a valid Authorization: Bearer token for the Personal Area. The Authorization header is one of the lines of information sent with every web request; a header is simply a labelled piece of metadata, like the "From" and "To" lines on an envelope. Bearer is a keyword meaning "the person carrying this token is the one making the request". No special role, tooling or configuration is described beyond that.
Finding it
- The researcher logged in to their Exness Personal Area.
- They noticed that the performance page had been updated, and decided to look at it.
- They inspected the requests the page makes. Every modern browser has a developer tools panel, usually opened with F12, with a Network tab that lists every request the page sends and every response it receives. This is how you see the conversation between the page and the API.
- In that list they found the API endpoints responsible for fetching the stats performance chart, all under
*/stats/*. The asterisks are wildcards meaning "anything before and after", so the pattern covers every address that contains/stats/in the middle. - They observed that these endpoints accept an
accounts=parameter. - The report states that the
accounts=parameter is vulnerable to IDOR, so the server was trusting the client-supplied identifier rather than checking that the account belonged to the authenticated user. "Client-supplied" means the value came from the browser, which the user fully controls; anything the user controls must be checked on the server, because the user can change it at will.
That is the IDOR: the server had a valid way of knowing who was asking (the token), but no check on what they were asking for (the account number).
Exploitation
Step 1: identify the stats endpoints
The report lists four endpoints that share the same shape, each taking a time_range and an accounts parameter:
https://my.exness.com/v3/personal_area/stats/net_profit?time_range=365&accounts={accountNumber}
https://my.exness.com/v3/personal_area/stats/orders_number?time_range=365&accounts={accountNumber}
https://my.exness.com/v3/personal_area/stats/trading_volume?time_range=365&accounts={accountNumber}
https://my.exness.com/v3/personal_area/stats/equity?time_range=365&accounts={accountNumber}
Line by line:
https://is the protocol, the language browsers and servers use to talk to each other securely.my.exness.comis the server being asked./v3/personal_area/stats/is the path, the part of the address that says which counter in the office you are walking up to.v3is a version marker,personal_areasays this belongs to the logged-in customer area, andstatssays it is a statistics endpoint.net_profit,orders_number,trading_volumeandequityare the four different statistics on offer. Each endpoint returns a different statistic for the account named inaccounts: net profit (money made after costs), number of orders (how many trades were closed), trading volume (how much was traded in total) and equity (the current value of the account) respectively.?time_range=365&accounts={accountNumber}is the query string, the part after the question mark that carries the parameters.time_range=365selects a one-year window: 365 days of data.accounts={accountNumber}is where the account number goes; the curly braces are a placeholder meaning "put the number here".
All four endpoints have the same weakness, because they all read the account number from the same place and all fail to check who owns it.
Step 2: request another account's stats
The reproduction request is a plain GET against the equity endpoint, with the account number substituted into accounts and the caller's bearer token in the Authorization header:
GET /v3/personal_area/stats/equity?time_range=365&accounts=xxx HTTP/2
Host: my.exness.com
Authorization: Bearer xyz
Content-Type: application/json
Line by line:
GETis the method, the verb of the request. GET means "give me this thing"; it is what your browser uses every time you open a page. Other verbs exist, such as POST for sending data, but this one only reads./v3/personal_area/stats/equity?time_range=365&accounts=xxxis the path and query string.xxxstands for the target MT account number, the one the researcher does not own.time_range=365asks for a year of data.HTTP/2is the version of the protocol used for the request.Host: my.exness.comtells the server which website the request is for. One server can host many websites, so this line says which one.Authorization: Bearer xyzis the proof of identity.xyzstands for the session token, the wristband from earlier. This is the line that makes the request come from a logged-in user.Content-Type: application/jsonsays what format the body of the request is in. JSON is a common text format for structured data, made of names and values in curly braces. Here there is no body, so the line is mostly a formality, but it is part of the request as sent.
The important part is that nothing in the request ties accounts to the authenticated user. The token proves who is calling, but the account number is taken at face value. The server checks the wristband at the door, then hands over whatever room key is asked for. The report states that the request returns the stats of the account named in accounts.
Step 3: confirm the disclosure
The report includes a proof of concept, but the content is redacted in the disclosed text, so the exact response body is not shown here. What the researcher states is that the request returns the stats of the targeted MT account, and that the same behaviour applies to the other three endpoints listed above. In other words, the same trick works for net profit, order counts, trading volume and equity.
Root cause
The stats endpoints authorise the request, in the sense that a bearer token is required, but they do not perform an object-level check on the accounts parameter. Two words are worth separating here. Authentication is answering "who are you?", which the token does. Authorisation is answering "are you allowed to do this particular thing?", which the server here never asks. The account number is an identifier supplied entirely by the client, and the server uses it directly to look up and return statistics without verifying that the account belongs to the authenticated user.
This is the classic IDOR pattern: authentication is present, authorisation on the specific object is missing. The report does not describe the server-side code, so the exact location of the missing check is not stated. Most likely the handler resolves the account from the query string and queries the stats store without an ownership filter, meaning it looks up the numbers by account number alone and never asks "and does this account belong to the person asking?".
Impact
An authenticated user can retrieve the performance statistics of any MT trading account. The exposed data, as described in the report, comprises:
- account net profit
- closed order counts
- trading volumes
- daily equity figures
The report frames this as disclosure of the account equity and net profit of the corresponding account. It does not describe any write capability, any ability to place trades, or any other effect beyond reading these statistics. The severity assigned to the report is medium.
Fix
The change needed is to bind the accounts parameter to the authenticated user: before returning stats, the server should verify that every account number in the request belongs to the caller, and reject or ignore any that do not. Relying on the bearer token alone is not sufficient, because the token identifies the user but says nothing about which account numbers that user may query. Back to the hotel: the receptionist must check the guest list before handing over a key, not just check that the person has a wristband.
Variants to test
These are the neighbouring places where the same mistake might hide. Each one is a small variation on the confirmed request, and each has a clear sign of success.
- Other stats endpoints under the same prefix. The report lists four; any sibling path under
/v3/personal_area/stats/that acceptsaccounts=is worth trying with a foreign account number. A positive result is a response containing figures for an account you do not own. - Multiple accounts in one request. The parameter is named
accounts(plural), so try supplying more than one number, mixing your own with a foreign one. A positive result is foreign data appearing alongside your own in the same response. - Other parameters that name an object. Look for
account=,account_id=,login=,mt_account=and similar on the same host. A positive result is the same cross-account disclosure through a different name. - Different time ranges. The report uses
time_range=365; other values may hit different code paths. A positive result is foreign data returned for any range. - Other products on the same PA. The performance page is one feature; other pages that fetch per-account data may share the same pattern. A positive result is any endpoint returning another user's data when you change the identifier.
Hunting notes
This bug sits in the gap between authentication and object-level authorisation on a JSON API behind a single-page application. A single-page application is a website that loads once and then updates itself by talking to APIs in the background, rather than loading a fresh page for every click. That design means the browser is constantly sending requests full of identifiers, and each one is a place where an ownership check could be missing.
The signal during recon is a request from the browser that carries both a bearer token and an explicit account or object identifier in the query string or body. Recon here simply means looking around: opening the Network tab, clicking through the product, and reading what the page sends. If the identifier is a simple number and the response contains per-object figures, it is worth swapping in a number you do not own and comparing the result with your own account's data.
The researcher demonstrated impact by identifying the vulnerable accounts= parameter, listing the affected endpoints and describing the data each one exposes. That combination, a working cross-account read plus a clear inventory of the disclosed fields, is what makes the report actionable for the program: the people receiving it can see exactly what is broken and exactly what is at stake.
Glossary
- API: the part of a website's server that answers requests from the page with data, rather than with whole pages; the waiter between the page and the database.
- Account number: the identifier of a trading account, used by the API to know which account's data to return.
- Aggregated figures: numbers that have been added up and summarised over a period, such as a yearly total rather than every individual trade.
- Authentication: proving who you are, for example with a token.
- Authorisation: deciding whether an identified user is allowed to do a particular thing, for example read a particular account.
- Bearer token: a string of characters sent in the
Authorizationheader that proves the request comes from a logged-in user; whoever holds it is treated as that user. - Client: the browser, or more generally the software making the request; anything it sends can be changed by the user.
- Content-Type: a header saying what format the body of a request or response is in.
- Endpoint: one specific address on a server that performs one specific job.
- Equity: the current value of a trading account, roughly the money in it at a given moment.
- GET: the request method meaning "give me this thing"; used for reading.
- Header: a labelled piece of metadata sent with a request or response, like the lines on an envelope.
- Host: the header naming which website on the server the request is for.
- HTTP/2: a version of the protocol used between browsers and servers.
- IDOR (Insecure Direct Object Reference): a bug where the server lets a user point at any stored object by its identifier, without checking that the object belongs to them.
- JSON: a common text format for structured data, made of names and values.
- MT account: a trading account on the MetaTrader platform.
- Net profit: money made after costs, over the chosen period.
- Object-level check: a check that a specific stored thing (an account, an order, a document) belongs to the user asking for it.
- Parameter: a named value attached to a web address after a question mark, telling the server what you want.
- Path: the part of a web address that says which resource on the server is being requested.
- Personal Area (PA): the logged-in customer area of the Exness website.
- Protocol: the agreed language two computers use to talk, such as HTTPS.
- Query string: the part of a web address after the question mark, carrying the parameters.
- Recon: looking around a product to understand how it works and where it might be weak.
- Session: the state of being logged in, remembered by the server across requests.
- Single-page application: a website that loads once and then updates itself by calling APIs in the background.
- Time range: the period of data requested, here 365 days.
- Trading volume: the total amount traded over the chosen period.
- Wildcard: a symbol such as
*that stands for "anything", used in patterns to cover many addresses at once.