Skip to content
Info disclosure Write-up Beginner

I Was Just Checking an API Endpoint… Then I Found Its Internal Metrics 👀 Telekom Hall Of Fame

Two operational endpoints on a Telekom IoT API, a Prometheus metrics endpoint and a debug variables endpoint, were reachable without authentication. An attacker could read internal monitoring and diagnostic information that was meant for internal use only.

Gokuleswaran B Follow

Published on osintteam.blog

Bugbounty Writeup

Gokuleswaran B, on osintteam.blog

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

This is a short account of a reconnaissance-led finding against a Telekom IoT API. The researcher, Gokuleswaran B, describes the target as a Telekom IoT API and says the work was done on a host he refers to as https://sample.com/ and, for the metrics endpoint, https://sample.telekom.com/metrics. The write-up gives the host as https://sample.com/ and the metrics URL as https://sample.telekom.com/metrics.

The feature involved is not a business function at all: it is the operational surface of the application. A Prometheus metrics endpoint (/metrics) normally serves monitoring data to an internal scraper, and a Go-style diagnostic endpoint (/debug/vars) normally serves runtime and application variables to developers and operators. Both are meant for internal monitoring, troubleshooting or development and operations use, not for unrestricted public access.

The researcher's framing is that the interesting question is not what an exploit chain can do, but what the application reveals before authentication. There was no brute force, no payload and no complicated exploit chain in the finding itself.

Setup

The write-up does not describe any account, role or credential. The whole point is that no authentication was needed: the endpoints were reachable by an unauthenticated internet user.

The tooling is the standard recon stack, and the researcher names it explicitly:

  • amass for passive subdomain enumeration.
  • httpx for probing which subdomains are live.
  • nuclei, which the researcher calls his "Best Friend [Blossom Tool]", for scanning the live hosts.

No versions are given for any of the tools, and no target-specific configuration is described beyond the commands below.

Finding it

The researcher says he was doing routine reconnaissance on a Telekom IoT API, with the mindset:

"What does this application reveal before I even authenticate?"

Sitting with Tired and Sleepy From the original on osintteam.blog

The image is captioned "Sitting with Tired and Sleepy" and sits at the start of the narrative, before any technical work.

How Metrics Helps to Gain Access More…. From the original on osintteam.blog

This image, captioned "How Metrics Helps to Gain Access More….", appears next to the statement that there was no brute force, no payloads and no complicated exploit chain, only a look at what the application was exposing.

Exploitation

Step 1: enumerate domains and subdomains

Bash
amass enum -passive -d target.com -o subdomains.txt

This runs passive enumeration against target.com and writes the discovered names to subdomains.txt. Passive mode gathers names from public third-party sources rather than actively probing the target.

Step 2: resolve live subdomains

Bash
cat subdomains.txt | httpx -silent -mc 200,403,401 -o live_subdomains.txt

httpx probes each name and keeps only those that answer with status 200, 403 or 401. Including 403 and 401 matters here: an endpoint that returns 401 is still an endpoint, and a 403 tells you something exists but is forbidden. The live hosts go to live_subdomains.txt.

Step 3: scan the live hosts

Bash
nuclei -l live_subdomains.txt

nuclei runs its templates against the list of live hosts. The researcher does not say which templates matched or which template surfaced the endpoints; he only says that this is where he found something interesting.

Waiting for the Results From the original on osintteam.blog

The image is captioned "Waiting for the Results" and sits directly after the three commands.

Step 4: check the API host and try the metrics path

He then accessed the publicly available API host:

Text
https://sample.com/

The application was reachable. He started checking commonly exposed operational endpoints, and the first thing that came to mind was Prometheus. He requested:

Text
/metrics

and the endpoint was accessible without authentication. The full URL he gives for this finding is:

Text
https://sample.telekom.com/metrics

It returned Prometheus-formatted monitoring information. The researcher notes that, depending on the application's instrumentation, exposed metrics can provide information about:

  • Application behaviour
  • Internal service names
  • Request statistics
  • Error rates
  • Runtime information
  • Process statistics
  • Memory and resource usage
  • Technology and framework information
  • Internal operational details
Metrics From the original on osintteam.blog

The image is captioned "Metrics".

Step 5: check the debug endpoint

A second endpoint caught his attention:

Text
/debug/vars

This one exposed application debugging information as well. The write-up does not reproduce the response body, so the specific variables returned are not shown here.

/debug/vars From the original on osintteam.blog

The image is captioned "/debug/vars".

The finding, stated plainly

The Telekom IoT API exposed two operational endpoints without authentication:

  1. /metrics, a publicly accessible Prometheus metrics endpoint.
  2. /debug/vars, a publicly accessible debugging and diagnostic endpoint.

These endpoints are generally intended for internal monitoring, troubleshooting or development and operations purposes, not unrestricted public access.

Finally From the original on osintteam.blog

The image is captioned "Finally" and appears after the researcher's summary of what the finding was not. It was simply the question of what happens when you request an endpoint that developers normally use internally.

Root cause

The researcher's own conclusion is that this was not two unrelated bugs but one configuration problem: operational and debugging interfaces were exposed to the public internet without appropriate access controls. The application was effectively serving information intended for internal monitoring and troubleshooting to anyone who asked.

He is careful to separate the existence of the data from the exposure. Developers need debugging information; the problem is where it is exposed and who can access it. A production application should not unnecessarily expose internal diagnostic information to unauthenticated internet users.

What can be said from the report is that no authentication or network restriction stood between the public internet and both paths.

Impact

The impact described is information disclosure. The metrics endpoint returned Prometheus-formatted monitoring data, which the researcher says can reveal application behaviour, internal service names, request statistics, error rates, runtime information, process statistics, memory and resource usage, technology and framework information, and internal operational details. The debug endpoint exposed application diagnostic information.

The write-up does not quantify the exposure: it gives no counts, no sample values and no evidence that the disclosed data was used to reach anything further. The researcher's claim is limited to access to "Metrics and Other Data", and he explicitly says the finding was not SQL injection, RCE, authentication bypass or IDOR. Any escalation beyond information disclosure is not demonstrated in the report.

Fix

The write-up says the researcher worked with the team to validate the impact, "ensuring the issue was patched and proper access controls were enforced". The general principle the report states is that production should not expose internal diagnostic information to unauthenticated internet users, and that access controls should be enforced on these interfaces.

Disclosure

The researcher lists what he did instead of abusing the access or ignoring the issue:

  • Responsible disclosure of the vulnerability to the application's security team.
  • A clear demonstration of how this allowed access to metrics and other data.
  • Working with the team to validate the impact, ensuring the issue was patched and proper access controls were enforced.
Actual Report From the original on osintteam.blog

The image is captioned "Actual Report" and sits under the heading "Reporting to Telekom".

Hall of Fame From the original on osintteam.blog

The image is captioned "Hall of Fame" and sits under the heading "Reply From Telekom".

Hall Of Fame From the original on osintteam.blog

The image is captioned "Hall Of Fame" and closes the post, under the heading "Finally at Hall Of Fame".

Variants to test

These follow from the same idea, requesting what developers use internally, and each is cheap to try during recon on an in-scope host.

  1. Prometheus metrics on other paths. Try /metrics on every live host, including API hosts and admin-looking subdomains. A positive result is a 200 with Prometheus text exposition format (# HELP and # TYPE lines, metric names with labels).
  2. Go diagnostic endpoints. Try /debug/vars and /debug/pprof/. A positive result on /debug/vars is a JSON object of runtime and application variables; on /debug/pprof/ it is the pprof index page listing profiles such as heap, goroutine and profile.
  3. Health and readiness endpoints. Try /health, /healthz, /ready, /livez. A positive result is a 200 with build, version or dependency status that should not be public.
  4. Spring Boot Actuator. Try /actuator, /actuator/env, /actuator/health, /actuator/mappings. A positive result is a JSON listing of actuator links, environment properties or request mappings.
  5. Framework debug pages. Try paths that trigger verbose error output, for example a malformed parameter on an API route. A positive result is a stack trace, framework version or file path in the response.
  6. Metrics scrapers left open. Look for /prometheus, /grafana or similar monitoring front ends on the same subdomain range. A positive result is a login page or, worse, an unauthenticated dashboard.

For each, the test is the same as in this report: request the path without credentials and check whether the response is operational data that belongs to the internal team.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

A security researcher spent an evening looking at a Telekom IoT API, which is a set of web addresses that programs use to talk to each other. He did not break anything, guess passwords or send clever attack code. He simply asked a few web addresses that developers normally use for their own internal housekeeping, and the server answered him without asking who he was. Two of those addresses handed back monitoring data and debugging information that were meant for the company's own staff. He reported it, worked with the team to get it patched, and was added to their hall of fame.

The whole story is a good first lesson in security because it shows that a finding does not have to be dramatic. Sometimes the problem is simply that something private was left where anyone on the internet could reach it.

Sitting with Tired and Sleepy From the original on osintteam.blog

The image is captioned "Sitting with Tired and Sleepy" and sits at the very start of the story, before any technical work begins. It sets the mood: this was a late-night session of routine checking, not a dramatic attack.

The idea behind the whole thing

The researcher's guiding question was:

"What does this application reveal before I even authenticate?"

To understand that question you need two words. Authentication is how a website checks that you are who you say you are, usually with a username and password, or with a cookie or token, which is a small piece of data your browser stores after you log in and sends back with every request so the site remembers you. Reveal here means: what does the server send back to a stranger who has not logged in at all?

Think of a hotel. The lobby is open to anyone. The staff room is not. If the door to the staff room is unlocked and has no sign, a curious guest can walk in and read the cleaning schedule and the staff phone list. Nothing was hacked; a door was simply left open. That is the shape of this finding.

How Metrics Helps to Gain Access More…. From the original on osintteam.blog

This image, captioned "How Metrics Helps to Gain Access More….", appears next to the statement that there was no brute force, no payloads and no complicated exploit chain, only a look at what the application was exposing. A payload is the malicious part of an attack, the specially crafted input meant to make a program misbehave. Brute force means trying huge numbers of guesses, for example many passwords, until one works. Exploit chain means several small weaknesses joined together, each one enabling the next, like a series of locked doors where each key is found behind the previous one. None of that happened here.

The tools, and why each one was used

Before the commands, a quick word on what these tools are, because the names look intimidating and are not.

  • amass is a program that finds subdomains. A domain is the main name of a site, like example.com. A subdomain is a name in front of it, like shop.example.com or api.example.com. Big companies have many of them, and each one is a separate door into their systems. Finding them is called reconnaissance, or recon: gathering information about a target before doing anything else.
  • httpx is a program that takes a list of names and checks which ones actually answer on the web. Many subdomains in a list are dead or unused; httpx filters those out.
  • nuclei is a scanner. It has a large library of ready-made checks, called templates, and runs them against a list of hosts to see if any known pattern shows up. The researcher calls it his "Best Friend [Blossom Tool]".

None of these tools attacks anything by itself. They are like walking around a building trying door handles to see which ones are doors at all.

Step 1: find all domains and subdomains

Bash
amass enum -passive -d target.com -o subdomains.txt

Line by line:

  • amass is the program being run.
  • enum is the subcommand that means "enumerate", that is, list out everything that can be found.
  • -passive tells amass to gather names only from public, third-party sources, such as certificate records and public databases, rather than asking the target's own servers directly. This is quieter and less intrusive.
  • -d target.com sets the domain to investigate. In the write-up this is a placeholder name, not the real target.
  • -o subdomains.txt writes the results into a file called subdomains.txt so the next step can use them.

Why this step: you cannot check doors you do not know exist. The first job is to build a list of every name that might belong to the company.

Step 2: keep only the subdomains that are actually alive

Bash
cat subdomains.txt | httpx -silent -mc 200,403,401 -o live_subdomains.txt

Line by line:

  • cat subdomains.txt prints the contents of the file from step 1.
  • The vertical bar | is a pipe. It takes the output of the command on the left and feeds it as input to the command on the right. Think of it as passing a bucket of names down a line.
  • httpx is the program that probes each name over the web.
  • -silent keeps the output tidy, showing only the results and not progress chatter.
  • -mc 200,403,401 means "match codes": keep only hosts that answer with HTTP status 200, 403 or 401. An HTTP status code is the three-digit number a web server sends back to say how the request went. 200 means "here is the page, all fine". 401 means "you are not logged in". 403 means "I understood your request, but you are not allowed".
  • -o live_subdomains.txt saves the surviving names to a new file.

Why include 401 and 403? Because a door that says "no entry" is still a door. A 401 tells you there is something behind it that wants a login, and a 403 tells you something exists but is forbidden. Both are worth knowing about. Only keeping 200s would hide half the interesting parts of a company's surface.

Step 3: scan the live hosts

Bash
nuclei -l live_subdomains.txt

Line by line:

  • nuclei is the scanner.
  • -l live_subdomains.txt means "list": run the checks against every host named in this file.

The researcher does not say which templates matched or which one surfaced the endpoints. He only says that this is where he found something interesting.

Waiting for the Results From the original on osintteam.blog

The image is captioned "Waiting for the Results" and sits directly after the three commands, at the moment the scans are running and the researcher is waiting to see what comes back.

Step 4: visit the API host and try the metrics path

He then opened the publicly available API host in the ordinary way:

Text
https://sample.com/

This is just a web address. https means the connection is encrypted, so nobody between you and the server can read it. The trailing slash is the front page of that host. The application answered, so it was reachable.

An API is a set of addresses a program uses to ask a service for data or to tell it to do something, as opposed to a website made for humans to click. A Telekom IoT API is an API belonging to Telekom for IoT, the "internet of things": connected devices such as sensors, meters and trackers that talk to a server over the network. Such an API receives data from devices and lets customers query it.

He then started checking operational endpoints. An endpoint is one specific address on a server that does one specific job, like /login or /orders. Operational means it is not part of the customer-facing product at all; it exists so the company can watch and maintain the system. The first one that came to mind was Prometheus.

Prometheus is a free monitoring system. Programs report numbers about themselves to it, such as how many requests they handled, how much memory they use, or how many errors occurred. Those numbers are called metrics. Prometheus regularly visits a special address on each program to collect them, and that address is conventionally /metrics. The format it returns is plain text, with lines beginning # HELP and # TYPE describing each metric, followed by the metric names and values.

He requested:

Text
/metrics

This is a path, the part of a web address after the host name. Put together with the host, the full address he gives for this finding is:

Text
https://sample.telekom.com/metrics

Again, the hostname is a placeholder in the write-up, so the real production address is not published. The endpoint answered without asking for any login. It returned Prometheus-formatted monitoring information.

Why this matters: metrics are written for machines and for the operations team, not for customers. Depending on how the application is instrumented, that is, depending on what the developers chose to measure, exposed metrics can reveal:

  • Application behaviour
  • Internal service names
  • Request statistics
  • Error rates
  • Runtime information
  • Process statistics
  • Memory and resource usage
  • Technology and framework information
  • Internal operational details

Each of those is a small clue. Internal service names tell an outsider how the system is built. Error rates and request statistics show when it is busy and when it is fragile. Technology and framework information tells an attacker which kinds of bugs are worth looking for. None of it is a password, but together it is a map of the inside of the building.

Metrics From the original on osintteam.blog

The image is captioned "Metrics".

Step 5: check the debug endpoint

A second endpoint caught his attention:

Text
/debug/vars

Debugging is the work of finding out why a program is misbehaving. To make that easier, many programs can be told to publish their internal state, their current variables and counters, at a special address. /debug/vars is a well-known path in programs written in the Go programming language: it returns a block of data in JSON, a text format that looks like a list of names and values, describing things like memory use, the number of running tasks and build details.

This endpoint exposed application debugging information as well. The write-up does not reproduce the response body, so the specific variables returned are not shown here.

/debug/vars From the original on osintteam.blog

The image is captioned "/debug/vars".

The finding, stated plainly

The Telekom IoT API exposed two operational endpoints without authentication:

  1. /metrics, a publicly accessible Prometheus metrics endpoint.
  2. /debug/vars, a publicly accessible debugging and diagnostic endpoint.

These endpoints are generally intended for internal monitoring, troubleshooting or development and operations purposes, not unrestricted public access. Troubleshooting means working out why something is broken. Development and operations, often shortened to DevOps, is the team that builds and runs the service.

Finally From the original on osintteam.blog

The image is captioned "Finally" and appears after the researcher's summary of what the finding was not. It was not SQL injection, where a crafted input sneaks database commands into a query. It was not RCE, short for remote code execution, where an attacker makes the server run their own program. It was not an authentication bypass, where someone gets in without valid credentials. It was not an IDOR, short for insecure direct object reference, where changing a number in a web address lets you see another user's data. There was no fancy payload. It was simply the question of what happens when you request an endpoint that developers normally use internally.

Why it happened

The researcher's own conclusion is that this was not two unrelated bugs but one configuration problem: operational and debugging interfaces were exposed to the public internet without appropriate access controls. Access controls are the rules that decide who may reach what, such as a login requirement or a restriction that only certain networks may connect.

He is careful to separate the existence of the data from the exposure. Developers need debugging information; the problem is where it is exposed and who can access it. A production application should not unnecessarily expose internal diagnostic information to unauthenticated internet users. Production means the live system that real customers use, as opposed to a test system.

The write-up does not describe the server configuration, reverse proxy rules or framework defaults that allowed the paths through, so the precise mechanism is not stated. What can be said from the report is that no authentication or network restriction stood between the public internet and both paths.

What the impact was

The impact described is information disclosure: private information being readable by people who should not see it. The metrics endpoint returned Prometheus-formatted monitoring data, which the researcher says can reveal application behaviour, internal service names, request statistics, error rates, runtime information, process statistics, memory and resource usage, technology and framework information, and internal operational details. The debug endpoint exposed application diagnostic information.

The write-up does not quantify the exposure: it gives no counts, no sample values and no evidence that the disclosed data was used to reach anything further. The researcher's claim is limited to access to "Metrics and Other Data", and he explicitly says the finding was not SQL injection, RCE, authentication bypass or IDOR. Any escalation beyond information disclosure is not demonstrated in the report.

How it was fixed

The write-up says the researcher worked with the team to validate the impact, "ensuring the issue was patched and proper access controls were enforced". The general principle the report states is that production should not expose internal diagnostic information to unauthenticated internet users, and that access controls should be enforced on these interfaces.

Reporting it the right way

Instead of abusing the access or ignoring the issue, the researcher lists what he did:

  • Responsible disclosure of the vulnerability to the application's security team. Responsible disclosure means telling the owner privately and giving them time to fix it, rather than publishing it or using it.
  • A clear demonstration of how this allowed access to metrics and other data.
  • Working with the team to validate the impact, ensuring the issue was patched and proper access controls were enforced.
Actual Report From the original on osintteam.blog

The image is captioned "Actual Report" and sits under the heading "Reporting to Telekom".

Hall of Fame From the original on osintteam.blog

The image is captioned "Hall of Fame" and sits under the heading "Reply From Telekom".

Hall Of Fame From the original on osintteam.blog

The image is captioned "Hall Of Fame" and closes the post, under the heading "Finally at Hall Of Fame".

Other things worth trying

These follow from the same idea, requesting what developers use internally, and each is cheap to try during recon on a host you are allowed to test. Always check the programme's rules first: a bug bounty programme is a company's public offer to pay or credit people who report security problems in their systems, and it lists which systems are in scope.

  1. Prometheus metrics on other paths. Try /metrics on every live host, including API hosts and admin-looking subdomains. A positive result is a 200 with Prometheus text exposition format (# HELP and # TYPE lines, metric names with labels).
  2. Go diagnostic endpoints. Try /debug/vars and /debug/pprof/. A positive result on /debug/vars is a JSON object of runtime and application variables; on /debug/pprof/ it is the pprof index page listing profiles such as heap, goroutine and profile. pprof is Go's built-in profiling tool, which records where a program spends its time and memory.
  3. Health and readiness endpoints. Try /health, /healthz, /ready, /livez. A positive result is a 200 with build, version or dependency status that should not be public. These paths exist so that load balancers can check whether a service is alive.
  4. Spring Boot Actuator. Try /actuator, /actuator/env, /actuator/health, /actuator/mappings. A positive result is a JSON listing of actuator links, environment properties or request mappings. Spring Boot is a popular framework for building Java web applications, and Actuator is its built-in set of operational endpoints.
  5. Framework debug pages. Try paths that trigger verbose error output, for example a malformed parameter on an API route. A positive result is a stack trace, framework version or file path in the response. A stack trace is the list of internal steps a program was taking when it failed, which is useful to developers and revealing to outsiders.
  6. Metrics scrapers left open. Look for /prometheus, /grafana or similar monitoring front ends on the same subdomain range. A positive result is a login page or, worse, an unauthenticated dashboard. Grafana is a tool for drawing charts from metrics data.

For each, the test is the same as in this report: request the path without credentials and check whether the response is operational data that belongs to the internal team.

Glossary

  • Access controls: rules that decide who is allowed to reach a system or a piece of data.
  • amass: a tool that discovers domains and subdomains from public sources.
  • API: a set of web addresses that programs use to exchange data with a service.
  • Authentication: the process of proving who you are, usually with a password, cookie or token.
  • Authentication bypass: getting into a system without valid credentials.
  • Brute force: trying very many guesses, such as passwords, until one succeeds.
  • Bug bounty programme: a company's public offer to reward people who report security problems in its systems.
  • Cookie: a small piece of data a site stores in your browser and receives back on each request, often used to remember that you are logged in.
  • Debugging: the work of finding out why a program is misbehaving.
  • Development and operations (DevOps): the team and practices that build and run a service.
  • Domain: the main name of a website, such as example.com.
  • Endpoint: one specific address on a server that performs one specific job.
  • Exploit chain: several weaknesses used together, each enabling the next.
  • Go: a programming language, often used for servers and network services.
  • Grafana: a tool for drawing charts from monitoring data.
  • HTTP status code: the three-digit number a web server returns to say how a request went, such as 200 for success or 401 for not logged in.
  • httpx: a tool that checks which hostnames are live on the web.
  • IDOR (insecure direct object reference): a flaw where changing an identifier in a request lets you see another user's data.
  • Information disclosure: private information being readable by people who should not see it.
  • IoT (internet of things): connected devices such as sensors and trackers that talk to a server over the network.
  • JSON: a text format for structured data, made of names and values.
  • Metrics: numbers a program reports about itself, such as request counts, errors and memory use.
  • nuclei: a scanner that runs a library of ready-made checks, called templates, against hosts.
  • Operational endpoint: an address that exists for monitoring and maintenance rather than for customers.
  • Payload: the crafted part of an attack, the input meant to make a program misbehave.
  • Pipe (|): a shell symbol that feeds the output of one command into another.
  • pprof: Go's built-in profiling tool, which records where a program spends time and memory.
  • Production: the live system that real customers use.
  • Prometheus: a free monitoring system that collects metrics from programs by visiting their /metrics address.
  • RCE (remote code execution): a flaw that lets an attacker make a server run their own program.
  • Reconnaissance (recon): gathering information about a target before acting on it.
  • Responsible disclosure: telling the owner of a system privately about a flaw and giving them time to fix it.
  • Spring Boot: a popular framework for building Java web applications; its Actuator adds operational endpoints.
  • SQL injection: a flaw where crafted input sneaks database commands into a query.
  • Stack trace: the list of internal steps a program was taking when it failed.
  • Subdomain: a name in front of a domain, such as api.example.com.
  • Template (nuclei): a ready-made check that nuclei runs against a host.
  • Token: a piece of data, similar to a cookie, that proves you are logged in or authorised.
  • Troubleshooting: working out why something is broken.
  • Vulnerability: a weakness in a system that could be used to cause harm or gain unauthorised access.

More by Gokuleswaran B

View all

10 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.