Reports Modal in app.mopub.com Disclose by any user
Any logged-in user can access any report by changing the report ID in the URL, leading to disclosure of report information such as the owner's email. A former member who saved report IDs can continue to view updates to those reports.
- Triaged in 7 days
- Fixed in 4 months
- Paid in 16 days
- Disclosed after 5 months
Summary:
I sent this report and closed it "Informative" and asked me to send a new report if more information was available for exploitation #544278
Description:
Twitter allows "mopub" users to create reports, and each report gives a unique ID to reach it, The report information is displayed by sending a GET Request to the endpoint https://app.mopub.com/reports/custom/report_modal/█████/
After the test it was found that any user logged in to "mopub" can access any report only by changing the value of the ID, which leads to the disclosure of user information such as "Email owner report"
#Attack scenario
IF the account administrator added a user with "Member" in the account, and then removed "Member" later. If the Member saves these UUID, he can view the information at any time
##Steps To Reproduce:
- [create account and login https://app.mopub.com]
- [Go to the link https://app.mopub.com/reports/custom/]
- [Create "New Network Report"]
- [now your report get id such as ███████] 1.[just change report_modal ID https://app.mopub.com/reports/custom/report_modal/‘UUID/]
###this reason for the closure of the previous report
If an attacker ever had the "Member" role on an account they could copy the network report without >this attack. In addition, we do not believe it is realistic for an attacker to brute-force a meaningful >portion of this space. If you can demonstrate the ability to guess identifiers belonging to other accounts >in a more-or-less "real time" manner (e.g. within one day) then please let us know by opening a new >report, and we will be happy to consider it at that time.
New info
Yes, as I said, the member can copy the report, but after the re-test in depth, I found something that was not mentioned in the report., These reports are updated by current members or managers if a member before leaving the account collects the unique identifiers for these reports will be able to see the new information added to the reports
eg (Add more emails to report or change the information you are in)
Impact
disclosure of user information
Context
MoPub's web console at app.mopub.com includes custom reports, including a "New Network Report" type. Among its features are custom reports, including a "New Network Report" type. Each report is given a unique identifier, and the report information is displayed by sending a GET request to the modal endpoint.
The report describes an access control problem on that modal endpoint: the identifier in the URL is the only thing that ties a request to a report, and the server does not check that the requesting user is entitled to see that particular report. The result is an information disclosure: any logged-in MoPub user who has a report's identifier can view that report.
Setup
The only precondition is a valid MoPub account. The researcher created an account and logged in to https://app.mopub.com, then used the custom reports section to create a report. No special role, tooling or configuration is described beyond an ordinary logged-in session.
The report also refers to account roles: an account administrator can add a user with the "Member" role and later remove that member. That role model matters for the attack scenario and for the program's earlier response, both covered below.
Finding it
The researcher observed that every report has a unique ID and that the report content is served by a GET request to a fixed path with the ID appended:
After testing, the researcher found that any user logged in to MoPub can reach any report simply by changing the value of the ID in that path. The response discloses user information, specifically the email address of the report owner ("Email owner report").
This was not the first report on the subject. An earlier submission, referenced as #544278, was closed as "Informative". The program's reasoning, quoted in the report, was:
If an attacker ever had the "Member" role on an account they could copy the network report without >this attack. In addition, we do not believe it is realistic for an attacker to brute-force a meaningful >portion of this space. If you can demonstrate the ability to guess identifiers belonging to other accounts >in a more-or-less "real time" manner (e.g. within one day) then please let us know by opening a new >report, and we will be happy to consider it at that time.
So the program's two objections were that a member could copy the report anyway, and that the identifier space is too large to brute-force in a realistic timeframe. The new report does not dispute the second point; it argues that the first objection misses a case.
Exploitation
Step 1: create an account and log in
The researcher created an account and logged in at https://app.mopub.com.
Step 2: open the custom reports section
This is the custom reports section of the console, where the researcher created a report.
Step 3: create a "New Network Report"
Creating a report through the UI produces a report with its own identifier, described in the report as a UUID. The researcher notes that the new report receives an ID of the form shown (redacted in the write-up).
Step 4: change the ID in the modal request
The report is rendered by requesting the modal endpoint with the report's identifier. The researcher's instruction is to change the report_modal ID in the URL:
Changing the ID lets any logged-in user access any report, disclosing user information such as the report owner's email. The disclosed data includes the report owner's email address.
The scenario the researcher added
The new information in this report addresses the program's "a member could copy it anyway" argument. The researcher agrees that a member can copy a report, but points out a case the earlier report did not cover: reports are updated over time by current members or managers. If a member collects the unique identifiers of reports before leaving the account, that former member can later retrieve the reports and see the new information added after their departure, for example additional email addresses added to a report or changed report content.
In other words, the exposure is not limited to a snapshot taken while the attacker had legitimate access. The identifier acts as a durable key to a live object, and the object keeps changing after the key holder has lost their role.
Root cause
The observed behaviour is that any logged-in MoPub user can fetch any report by identifier. There is no check that the authenticated user belongs to the account that owns the report, so the identifier functions as a bearer capability rather than as a reference that is validated against the caller's entitlements. This is an access control gap on the report modal endpoint.
The program argued it is not realistic to brute-force a meaningful portion of the identifier space. That defence does not help when an attacker already holds a valid identifier, whether obtained while legitimately a member of the account or otherwise. The new report does not dispute the brute-force point; it adds the case of identifiers retained by a former member.
Impact
Any authenticated MoPub user who knows a report's identifier can read that report, including the report owner's email address and the report's contents. The most concrete scenario in the report is a former "Member" of an account who retained report identifiers: after removal from the account, they can continue to view those reports and any information added to them later, such as newly added email addresses or changed report details.
The report characterises the impact as disclosure of user information. It does not claim the ability to guess identifiers belonging to other accounts, and the program's stated position was that brute-forcing a meaningful portion of the identifier space is not realistic.
Fix
The report does not describe a fix or a confirmation that one was applied.
Variants to test
- A positive result is a response containing the other account's data.
- A positive result is a file or page containing another account's report.
- A positive result is a successful response after removal.
- A positive result is the new value appearing in the response.
- A positive result is cross-account data disclosure.
Hunting notes
On impact: the earlier report was closed as Informative because the program argued a member could copy the report anyway and the identifier space was too large to brute-force. The researcher did not try to overturn the brute-force point. Instead, the new report narrowed the claim to a case the program had not considered: identifiers retained by a former member continue to work, and the reports keep changing after that member leaves, so the disclosure includes information the attacker never had access to.
The report was rated medium severity with a CVSS score of 4.9 and a bounty of 280 USD, and was disclosed on 2 October 2019.
What happened, in plain words
MoPub's web console at app.mopub.com had a custom reports feature, including a type called "New Network Report". The website app.mopub.com was the control panel where those publishers managed their accounts. One of its features was custom reports, including a type called "New Network Report". Each report was given a unique identifier, which is used to reach it. When you opened a report in the console, your browser asked the server for it using a special address that ended with that identifier.
The problem described in this report is an access control flaw on that address. Access control means the rules that decide who is allowed to see or do what. Here, the only thing that tied a request to a report was the identifier in the URL. The server did not check whether the person making the request was actually allowed to see that particular report. As a result, any user logged in to MoPub could access any report by changing the ID in the request. The information exposed included the email address of the report's owner.
This is called an information disclosure: a bug where data that should be private becomes visible to someone who should not see it. The report describes it as an access control problem that discloses user information.
Background: what MoPub and its reports are
The console at app.mopub.com had a custom reports section, and the "New Network Report" was one type of report you could create.
Each report was stored on the server and given a unique identifier. Think of it like a numbered locker at a swimming pool: the number identifies the locker, and if the attendant only checks that you have a membership card but never checks that the locker number is yours, anyone with a card can open any locker. That is essentially the flaw here.
The console displayed an individual report by fetching it from a dedicated endpoint. An endpoint is a specific address on a server that does one job, like a counter in a shop. The endpoint in question was the report modal endpoint, which returned a report's information.
The setup
The only precondition described in the report is a valid MoPub account. The researcher created an account, logged in at https://app.mopub.com, and used the custom reports section to create a report. No special role, tool or configuration is mentioned beyond an ordinary logged-in session.
The report also mentions account roles. An account administrator could add a user with the "Member" role and later remove that member. That role model matters for the attack scenario and for the program's earlier response, both explained below.
Finding the problem
The researcher noticed that every report has a unique ID and that the report content is served by a GET request to a fixed path with the ID appended:
Let us break that down. GET is one of the basic methods of the web's HTTP protocol. When your browser asks for a page, it normally sends a GET request, meaning "please give me this thing". The rest is the address: the server app.mopub.com, then the path /reports/custom/report_modal/, then the identifier (shown as █████ because it was redacted in the report), then a trailing slash. The identifier is the only part that changes from one report to another.
After testing, the researcher found that any user logged in to MoPub could reach any report simply by changing the value of the ID in that path. The response disclosed user information, specifically the email address of the report owner ("Email owner report").
This was not the first report on the subject. An earlier submission, referenced as #544278, was closed as "Informative". In bug bounty programmes, "Informative" is a status meaning the report was read and considered but did not qualify for a reward, often because the programme did not see it as a security issue or as exploitable. The programme's reasoning, quoted in the report, was:
If an attacker ever had the "Member" role on an account they could copy the network report without >this attack. In addition, we do not believe it is realistic for an attacker to brute-force a meaningful >portion of this space. If you can demonstrate the ability to guess identifiers belonging to other accounts >in a more-or-less "real time" manner (e.g. within one day) then please let us know by opening a new >report, and we will be happy to consider it at that time.
So the programme made two objections. First, if an attacker had ever been a member of an account, they could copy the report anyway, so the bug added nothing. Second, the identifier space is too large to brute-force in a realistic timeframe. Brute-forcing means trying many possibilities until one works, like guessing a combination lock by trying every combination. If the identifier is long and random, there are so many possibilities that guessing is impractical. The new report does not dispute the second point; it argues that the first objection misses a case.
Exploitation, step by step
Step 1: create an account and log in
The researcher created an account and logged in at https://app.mopub.com. A session is the server's way of remembering that you are logged in as you move from page to page. It usually works with a cookie, a small piece of data your browser stores and sends back with each request. The report does not describe the cookie or any token, so we do not know the details of how the session was represented.
Step 2: open the custom reports section
This is the custom reports section of the console.
Step 3: create a "New Network Report"
Creating a report through the interface produces a report with its own identifier, described in the report as a UUID. A UUID (Universally Unique Identifier) is a long string of characters designed to be unique, so that two reports are very unlikely to get the same one. The researcher notes that the new report receives an ID of the form shown, redacted in the write-up.
Step 4: change the ID in the modal request
The report is displayed by requesting the modal endpoint with the report's identifier. The researcher's instruction is to change the report_modal ID in the URL:
Here ‘UUID stands for the identifier you want to try. The quote mark before UUID appears in the report as written. The point is that you replace the identifier of your own report with the identifier of a different report. Changing the ID lets any logged-in user access any report, disclosing user information such as the report owner's email. The disclosed data includes the report owner's email address.
The scenario the researcher added
The new information in this report addresses the programme's "a member could copy it anyway" argument. The researcher agrees that a member can copy a report, but points out a case the earlier report did not cover: reports are updated over time by current members or managers. If a member collects the unique identifiers of reports before leaving the account, that former member can later retrieve the reports and see the new information added after their departure, for example additional email addresses added to a report or changed report content.
In other words, the exposure is not limited to a snapshot taken while the attacker had legitimate access. The identifier acts as a durable key to a live object, and the object keeps changing after the key holder has lost their role. A comparison: if you copy the key to an office before you leave the company, the lock is not changed when you hand back your badge, so you can still enter later and read documents that were written after you left.
Why it works
The observed behaviour is that any logged-in MoPub user could fetch any report by identifier. Here, any logged-in MoPub user could fetch any report by identifier. There was no check that the logged-in user belonged to the account that owned the report. So the identifier functions as a bearer capability: whoever holds it can use it, like a paper ticket that gets you into a concert regardless of whose name is on it. It is not validated against the caller's entitlements.
This is an access control gap on the report modal endpoint. "Object-level" means the check is missing at the level of the individual item (the report), even if the user is properly logged in.
The programme argued it is not realistic to brute-force a meaningful portion of the identifier space. Enumeration means systematically trying many identifiers to find valid ones. That defence does not help when an attacker already holds a valid identifier, whether obtained while legitimately a member of the account or otherwise. The new report does not dispute the brute-force point; it adds the case of identifiers retained by a former member.
Impact
Any logged-in MoPub user who knows a report's identifier can read that report, including the report owner's email address and the report's contents. The most concrete scenario in the report is a former "Member" of an account who kept report identifiers: after removal from the account, they can continue to view those reports and any information added to them later, such as newly added email addresses or changed report details.
The report characterises the impact as disclosure of user information. It does not claim the ability to guess identifiers belonging to other accounts, and the programme's stated position was that brute-forcing a meaningful portion of the identifier space is not realistic.
Fix
The report does not describe a fix or a confirmation that one was applied.
Variants to test
- A positive result is a response containing the other account's data.
- A positive result is a file or page containing another account's report.
- A positive result is a successful response after removal.
- A positive result is the new value appearing in the response.
- A positive result is cross-account data disclosure.
Hunting notes
On impact: the earlier report was closed as Informative because the programme argued a member could copy the report anyway and the identifier space was too large to brute-force. The researcher did not try to overturn the brute-force point. Instead, the new report narrowed the claim to a case the programme had not considered: identifiers retained by a former member continue to work, and the reports keep changing after that member leaves, so the disclosure includes information the attacker never had access to.
The report was rated medium severity with a CVSS score of 4.9 and a bounty of 280 USD, and was disclosed on 2 October 2019. CVSS is a standard scoring system for the severity of security bugs; 4.9 falls in the medium range.
Glossary
- Access control: the rules that decide who is allowed to see or do what.
- Authentication: proving who you are, for example by logging in.
- Authorisation: deciding what a known user is allowed to do.
- Bearer capability: something that grants access simply by being held, like a ticket, without checking who holds it.
- Brute-force: trying many possibilities until one works.
- Bug bounty programme: a scheme where organisations reward people for reporting security problems.
- Cookie: a small piece of data a website stores in your browser and receives back with later requests, often used to keep you logged in.
- CVSS: a standard scoring system for the severity of security vulnerabilities.
- Endpoint: a specific address on a server that performs one job.
- Enumeration: systematically trying many identifiers or names to find valid ones.
- GET request: an HTTP request that asks a server to return something, such as a page or data.
- HTTP: the protocol browsers and servers use to exchange requests and responses on the web.
- IDOR (insecure direct object reference): a flaw where a server returns an object based on an identifier supplied by the user without checking that the user is allowed to access it.
- Information disclosure: a bug where data that should be private becomes visible to someone who should not see it.
- Informative: a bug bounty status meaning the report was considered but did not qualify, often because the programme did not see it as a security issue or as exploitable.
- Modal: a pop-up window that appears over the current page.
- Monetisation: making money from something, here by showing ads in mobile apps.
- Object-level authorisation: checking permission for each individual item (object), not just for the user in general.
- Recon: the phase of exploring a target to find interesting parts before testing.
- Session: the server's way of remembering that you are logged in across multiple requests.
- Severity: how serious a security bug is judged to be.
- UUID (Universally Unique Identifier): a long string of characters designed to be unique.
- Vulnerability: a weakness in software that can be used to cause harm or break rules.