ms5 debug page exposing internal info (internal IPs, headers)
A publicly reachable debug page on a Twitter subdomain disclosed internal IP addresses and header names. An attacker could repeatedly request the page to collect many internal addresses, which could help target systems if they already had network access.
Originally disclosed on HackerOne
- Triaged in 37 hours
- Fixed in 15 days
- Paid in 3 months
- Disclosed after 3 months
Summary by the program
Information Exposure Through Debug Information
The report
Summary: Information exposure through /debug in ms5.twitter.com
Description: Debug page from ms5.twitter.com exposes internal info, such as internal IPs and headers.
Steps To Reproduce:
- Visit ms5.twitter.com/debug
- See internal IP and header-names used
- To gather more internal IPs, just refresh (or script curl requests) and you'll get a new internal IP every time.
Impact:
If an attacker gains access to your network, knowledge of internal IPs could help them know where to target.
Supporting Material/References:
I made a script to make requests to see if internal IPs changed and every time I got a new one. Here is the 20 IPs I found using this technique:
10.49.205.118 10.45.237.113 10.81.156.108 10.58.127.114 10.58.103.105 10.58.217.103 10.42.70.113 10.45.222.103 10.58.101.114 10.45.221.103 10.45.109.100 10.42.70.119 10.43.71.127 10.48.219.111 10.44.90.100 10.46.246.111 10.43.73.138 10.46.6.102 10.45.65.104 10.45.64.108
Impact
Debug pages should not be public. Giving away internal IPs means that an attacker could use this info for their advantage and know which IPs to target.
Context
ms5.twitter.com is a host under the *.twitter.com asset scope of the X / xAI program on HackerOne. The report concerns a debug page served at /debug on that host. A debug page of this kind is normally an operational aid: it renders diagnostic information about the request and the server handling it, and is not intended for public consumption.
Setup
No accounts, roles, special tools or versions are described. The only precondition is network access to the host: the page was publicly reachable, which is the whole point of the finding.
Finding it
The researcher found that the debug page at ms5.twitter.com exposes internal information, specifically internal IP addresses and header names. Nothing in the report describes how the page was first discovered; the finding is presented as a direct observation of the page's contents.
Exploitation
Step 1: Visit the debug page
The request targets the /debug path on the host. The report gives the URL in prose form rather than as a raw request, so the block above is only the equivalent request line and host header; the report itself states the step as visiting ms5.twitter.com/debug.
Step 2: Read the exposed values
The page displays an internal IP address and the header names used by the infrastructure. These are values that belong to the internal network and are not needed by an ordinary visitor.
Step 3: Refresh to collect more internal IPs
Refreshing the page, or scripting repeated requests with curl, returns a different internal IP each time. The researcher wrote a script to make requests and check whether the internal IP changed, and found that every request produced a new one. The report does not include the script itself.
Using this technique the researcher collected 20 internal IP addresses:
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
All of these fall in the private [redacted]/8 range. The report does not explain why the address changes between requests.
Root cause
The debug endpoint is publicly reachable and renders internal diagnostic data, including the serving host's internal IP and the header names in use. The report does not describe the implementation, so the precise mistake in code is not stated; The report does not describe the implementation, so the precise mistake in code is not stated.
Impact
The researcher's stated impact is conditional: if an attacker gains access to the network, knowledge of internal IPs could help them know where to target. The page also reveals header names used internally. On its own the exposure does not grant access to anything; it is reconnaissance material that becomes useful once an attacker is already inside the network. The program classified it as Information Exposure Through Debug Information at medium severity, with a bounty of 280.00 USD, and the report was disclosed on 2018-05-11.
Fix
The measure it argues for is that debug pages should not be public: the /debug path on ms5.twitter.com should either be removed from production or restricted so that only authorised internal clients can reach it.
Variants to test
- Other debug-style paths on sibling hosts in the same scope, such as
/debug,/status,/server-statusand framework-specific diagnostic routes. A positive result is a page that renders internal addresses, header names, environment values or build details without authentication. - Repeated requests to any such page to see whether the output varies per backend. A positive result is a different internal address on each refresh, which shows the page is reporting the serving host rather than a static value.
- Error and exception pages that echo request headers or upstream addresses. A positive result is a stack trace or diagnostic block containing internal hostnames or private-range addresses.
Hunting notes
This class of bug hides on hosts that are not the main product surface: internal-sounding subdomains, staging and service hosts, and any host whose name suggests a specific backend role. During recon, the signal is a path that returns structured diagnostic output rather than an application page, especially when the output changes between requests. The researcher demonstrated impact by scripting repeated requests and showing that the disclosed address rotated, producing a list of 20 distinct internal IPs; that evidence shows the page is genuinely reporting live internal infrastructure rather than a fixed placeholder, which is what makes the exposure credible to a triager.
What happened, in plain words
A website can have pages that are meant only for the people who run it, not for visitors. One of those pages was left open on a Twitter-related server called ms5.twitter.com. When anyone opened the address ms5.twitter.com/debug, the server showed them information that was supposed to stay inside the company's own network: the internal addresses of its machines and the names of the technical labels (headers) its systems use when they talk to each other.
This kind of mistake is called Information Exposure Through Debug Information. "Debug" means finding and fixing problems in software; a debug page is a helper page that shows technical details so engineers can see what is going on. "Information exposure" means that such details leak to people who should not see them. The page did not let anyone log in or change anything. It simply told visitors things about the inside of the network, and that is enough to be a security problem.
The researcher who found it showed that every time the page was reloaded, it revealed a different internal address. They collected 20 of them. The program that runs the bug bounty (a scheme where companies pay people for reporting security problems) rated it medium severity and paid a bounty of 280.00 USD. The report was made public on 2018-05-11.
Context
ms5.twitter.com is one specific server name (a host) that belongs to the X / xAI bug bounty program on HackerOne, a platform where security reports are submitted and handled. The program's rules cover a set of addresses written as *.twitter.com, where the * stands for "any name in front of twitter.com". So ms5.twitter.com is one of the servers the program allows researchers to test.
The report is about a page served at the path /debug on that host. A path is the part of a web address after the server name: in ms5.twitter.com/debug, the path is /debug. A debug page like this is normally a tool for the operators of a service. It prints out technical details about the request that just arrived and about the machine that handled it. It is not meant for the general public.
Setup
There was nothing to set up. The report describes no accounts, no special permissions, no tools and no software versions. The only thing needed was a way to reach the host over the internet. The page could be opened by anyone who could reach the host, and that openness is exactly the problem: a page that shows internal details should not be public.
Finding it
The researcher found that the debug page at ms5.twitter.com exposed internal information: specifically internal IP addresses and header names. An IP address is the number that identifies a machine on a network, a bit like a postal address for computers. A header is a small labelled piece of information that travels with every web request and response, such as which browser is asking or which server answered; the "header name" is the label part, for example the name of a custom header a company uses between its own systems.
The report does not say how the page was first discovered. It presents the finding as a direct observation of what the page showed.
Exploitation
Step 1: Visit the debug page
This block is written in the format of an HTTP request, the message a browser sends to a server when it wants a page. Line by line:
GET /debug HTTP/1.1is the request line.GETis the method, meaning "give me this page"./debugis the path being asked for.HTTP/1.1is the version of the language the request is written in.Host: ms5.twitter.comis the header that tells the server which website name the visitor typed. One physical server can answer for many names, so this line says which one is wanted.
The report itself describes this step in ordinary words rather than as a raw request: visit ms5.twitter.com/debug. The block above is only the equivalent request line and host header. The reason for this step is simple: the researcher wanted to see what the page returns to an ordinary visitor with no login.
Step 2: Read the exposed values
The page displayed an internal IP address and the header names used by the infrastructure. Infrastructure here means the collection of servers, load balancers and other machines that together run the service. These values belong to the internal network and an ordinary visitor has no reason to see them. The reason for this step was to confirm what exactly leaked, because the seriousness of the finding depends on what the page shows.
Step 3: Refresh to collect more internal IPs
Reloading the page, or writing a script that sends repeated requests with curl, returned a different internal IP each time. curl is a command-line program that fetches a web address and prints the response, useful for repeating the same request many times. The researcher wrote a script to send requests and check whether the internal IP changed, and found that every request produced a new one. The report does not include the script itself.
The report does not explain why the address changes between requests; it only records that each request returned a new one.
Using this technique the researcher collected 20 internal IP addresses:
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
Each line is one address the page showed on one request. All of them start with 10., which places them in a special range reserved for private networks. Private IP addresses are numbers that only make sense inside an organisation's own network; they are not reachable from the public internet. Seeing them on a public page is a sign that the page is describing the company's internal machines.
Root cause
The debug endpoint is reachable by anyone on the internet and prints internal diagnostic data, including the internal IP of the machine that served the request and the header names in use. An endpoint is simply a specific address on a server that does something when you request it.
Impact
The researcher's stated impact is conditional: if an attacker gains access to the network, knowledge of internal IPs could help them know where to target. In other words, the leak does not by itself let anyone in. It is reconnaissance material, information gathered before an attack, which becomes useful once an attacker is already inside or when combined with another weakness. The page also reveals header names used internally.
The program classified the issue as Information Exposure Through Debug Information at medium severity, with a bounty of 280.00 USD, and the report was disclosed on 2018-05-11.
Fix
The measure it argues for is that debug pages should not be public: the /debug path on ms5.twitter.com should either be removed from production or restricted so that only authorised internal clients can reach it.
Variants to test
- Other debug-style paths on sibling hosts in the same scope, such as
/debug,/status,/server-statusand framework-specific diagnostic routes. A positive result is a page that renders internal addresses, header names, environment values or build details without authentication. - Repeated requests to any such page to see whether the output varies per backend. A positive result is a different internal address on each refresh, which shows the page is reporting the serving host rather than a static value.
- Error and exception pages that echo request headers or upstream addresses. A positive result is a stack trace or diagnostic block containing internal hostnames or private-range addresses.
Hunting notes
This class of bug hides on hosts that are not the main product surface: internal-sounding subdomains, staging and service hosts, and any host whose name suggests a specific backend role. Recon (reconnaissance) is the early phase of looking around a target to map what exists. During recon, the signal is a path that returns structured diagnostic output rather than an application page, especially when the output changes between requests. The researcher demonstrated impact by scripting repeated requests and showing that the disclosed address rotated, producing a list of 20 distinct internal IPs. That evidence shows the page is genuinely reporting live internal infrastructure rather than a fixed placeholder, which is what makes the exposure credible to a triager, the person who reviews and rates the report.
Glossary
- Host: one named server on the internet, such as
ms5.twitter.com. - Path: the part of a web address after the server name, such as
/debug. - Debug page: a helper page that shows technical details about a request and the server handling it, normally for engineers.
- Information Exposure Through Debug Information: a weakness where a debug page reveals internal details to people who should not see them.
- IP address: the number identifying a machine on a network.
- Private IP address: an address in a range reserved for use inside an organisation's own network, not reachable from the public internet.
- Header: a small labelled piece of information sent with a web request or response.
- HTTP request: the message a browser or tool sends to a server to ask for a page.
- GET: the HTTP method meaning "give me this page".
- curl: a command-line program that fetches a web address and prints the response.
- Load balancer: a machine that spreads incoming traffic across a pool of servers behind it.
- Infrastructure: the collection of servers and other machines that run a service.
- Endpoint: a specific address on a server that does something when requested.
- Production: the live, public version of a service.
- Access control: rules that decide who is allowed to reach something.
- Authentication: proving who you are, usually by logging in.
- Reconnaissance (recon): the early phase of gathering information about a target before an attack.
- Bug bounty program: a scheme where companies pay people for reporting security problems.
- Bounty: the money paid for a valid report.
- Severity: a rating of how serious a security issue is.
- Triager: the person who reviews and rates a submitted report.
- Stack trace: a technical error listing showing the steps a program took before failing.
- Subdomain: a name in front of a main domain, such as
ms5inms5.twitter.com.