Skip to content
Info disclosure Write-up Beginner

How a Port scan got me Nokia Hall of Fame

An exposed Prometheus instance was reachable on a non-standard port on a Nokia subdomain, and its graph page was publicly accessible. The author reported it as a sensitive endpoint exposure, though the text does not detail what data or actions were exposed.

Mani Sashank Follow

Published on medium.com

Hi everyone. This is Mani Sashank, a security analyst who does bug bounty in his free time. ๐Ÿ˜„

Mullangisashank, on medium.com

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. 5 min read.

Context

Nokia runs a vulnerability disclosure programme (VDP) that accepts reports by email at [redacted] and lists valid findings on a Hall of Fame page. The target here is not a single application but the company's public web estate: many sub-domains, some of which expose services on non-standard ports. The feature that mattered was an instance of Prometheus, the open-source monitoring and time-series database, reachable on port 9090 of one of those sub-domains. Prometheus normally serves a web UI with a /graph page for querying metrics, and its HTTP API exposes the collected metrics and the server's own configuration and status.

The finding was recorded as missing authentication combined with information disclosure: the Prometheus instance was reachable on port 9090 and exposed sensitive endpoints.

Setup

The researcher, Mani Sashank, describes a deliberately simple three-step methodology:

  1. Enumerate the sub-domains.
  2. Check for sub-domains with functionalities.
  3. Start assessing those websites manually, with content discovery and port scanning running in the background.

The tools used were:

Purpose Tools
Sub-domain enumeration Subfinder, assetfinder
Liveness check httpx
Port scanning Rustscan

No accounts, credentials or special roles were needed. The only precondition was that the target's sub-domains resolve and that the scanning host can reach the ports in question. The author notes that Rustscan takes considerably longer than masscan or similar tools, but he considers it more reliable.

Finding it

While hunting manually on some Nokia websites, the researcher also ran a port scan and content discovery against every live host obtained in step 1. The scan returned port 9090 open on one of the websites. Visiting that host on that port:

HTTP
https://valid-domain.nokia.com:9090

redirected to:

HTTP
https://valid-domain.nokia.com:9090/graph

which rendered a page of colourful graphs.

From the original on medium.com

The screenshot shows the colourful graphs the researcher saw after the redirect. At first the researcher did not recognise what the graphs belonged to. He read up on what Prometheus is, then read public HackerOne reports on related findings, which pointed him at sensitive endpoints exposed by the same service. The graphs were only the entry point; the value was in the sensitive endpoints the public reports described.

Exploitation

Step 1: Enumerate sub-domains

Subfinder and assetfinder were used to collect sub-domains of the Nokia estate. The report does not list the exact commands or the resulting host list.

Step 2: Filter for live hosts

httpx was used to check which of the enumerated domains were alive, so that later work focused only on responding hosts.

Step 3: Port scan the live hosts

Rustscan was run against the live websites in the background while manual testing continued. This is what surfaced port 9090 on one host.

Step 4: Visit the open port

Browsing to the host on port 9090 redirected to /graph, the Prometheus expression browser. The page displayed the colourful graphs shown above, confirming that a Prometheus server was exposed.

Step 5: Identify the service and its endpoints

After some searching the researcher learned what Prometheus is, then read public reports on similar findings to learn which endpoints of the service are sensitive. The report does not reproduce the individual API requests or the responses he received; it only states that sensitive endpoints were found and that a proof of concept was included in the email report.

Step 6: Report

A written report with the proof of concept was emailed to [redacted]. Nokia validated it from their side and confirmed it as a valid finding, then added the researcher to the Hall of Fame page.

March 2022 From the original on medium.com

The screenshot shows the Nokia Hall of Fame entry, dated March 2022.

Root cause

A Prometheus server was reachable on port 9090 of a public-facing host. Prometheus has no built-in user authentication or authorisation; access control is expected to come from the surrounding network or a reverse proxy. The report does not describe what access control, if any, surrounded the instance. The exposure was only discoverable because the port was open to the internet and the service answered on it; the redirect from the bare host and port to /graph made the service obvious once the port was known.

Impact

The researcher found sensitive endpoints on the service, but the report does not say what they returned. The report does not enumerate which specific data was exposed or which endpoints returned what, so the precise sensitivity of the disclosed information is not stated. Nokia validated the report and confirmed it as a valid finding.

Fix

Variants to test

  1. Other default monitoring ports on live hosts. Scan the full port range of every live sub-domain, not just 80 and 443. A positive result is a service banner or UI on a port that should not be public, such as 9090 for Prometheus, 3000 for Grafana or 9093 for Alertmanager.
  2. Prometheus API endpoints behind the UI. Once /graph loads, request the API paths that public reports describe. A positive result is a JSON response containing metric names, labels or target information without any authentication challenge.
  3. Redirect behaviour on the bare port. Request the host and port without a path and observe where it sends you. A redirect to a known product UI is a quick confirmation that the service is the one you suspect.
  4. Same methodology on other programmes. Run sub-domain enumeration, liveness filtering and port scanning against any target with a broad estate. A positive result is any live host exposing an administrative or monitoring interface that answers without credentials.

The author adds a note on persistence: there were many duplicates before his first valid submission to the Nokia VDP, and he later earned a second Hall of Fame on Nokia using the same methodology.

April 2022 From the original on medium.com

The second Hall of Fame entry is dated April 2022.

Timeline as given in the report:

Date Event
2 March 2022 Issue reported to [redacted]
14 March 2022 Requested an update
21 March 2022 Notified that it was a valid finding
From the original on medium.com

These screenshots accompany the author's point that the result was not luck.

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. 11 min read.

What happened, in plain words

A security researcher named Mani Sashank spent his free time looking for security problems in companies' websites, a hobby and sometimes a paid activity called bug bounty. One of the companies he looked at was Nokia. Nokia runs a vulnerability disclosure programme, which is a formal way for outside people to tell a company about a security problem. You do not need an invitation: you send an email to a published address, and the company's security team reads it. In this case the address was [redacted]. When Nokia agrees that a report describes a real problem, it puts the reporter's name on a public Hall of Fame page, a list of people who have helped them.

What Mani found was not a flaw in a login form or a shopping basket. It was a piece of software called Prometheus sitting on the public internet, on a port that anyone could reach. Prometheus is a monitoring tool: companies use it to collect numbers about their systems over time, such as how busy a server is or how many requests a website received, and to draw those numbers as graphs. Because the port was open, a stranger could look at those graphs, and public reports pointed to sensitive endpoints on the same service. That kind of accidental exposure is called information disclosure: information that should have stayed inside the company leaks out to whoever asks.

The whole discovery came out of a simple routine. Mani listed as many of Nokia's sub-domains as he could find, checked which ones actually responded, and then, while he was poking at the websites by hand, let a tool quietly try every network port on each live host in the background. One of those hosts answered on port 9090, and port 9090 is the default door for Prometheus. He opened it in his browser, saw graphs, worked out what the software was, and wrote a report with a proof of concept, meaning evidence that the problem is real and reproducible. Nokia confirmed it, and he ended up on the Hall of Fame twice, once in March 2022 and once in April 2022.

The three-step method

Before any of that, the author describes the routine he follows on every target. It is deliberately short:

  1. Enumerate the sub-domains.
  2. Check for sub-domains with functionalities.
  3. Start assessing those websites manually along with some content discovery and port scanning in the background.
From the original on medium.com

The image sits at the start of the article, before the method is spelled out, and introduces the topic.

A few of those words need unpacking if you have never done this.

A domain is the name you type into a browser, like nokia.com. A sub-domain is a name built in front of it, like shop.nokia.com or careers.nokia.com. Big companies own hundreds or thousands of them, one for each service, region or team, and each one is a separate website that can be configured differently. That is why step 1 exists: you cannot test what you cannot find, and the interesting mistakes are usually on the forgotten sub-domain, not the main homepage.

Enumerating means listing them systematically rather than guessing. There are public records and tools that help, and the author names his below.

Step 2, checking for sub-domains with functionalities, means filtering out the names that do not actually serve anything. Many sub-domains are dead, parked, or simply do not answer. You want the ones that respond and do something, because a page that does nothing cannot have a bug in it.

Step 3 is the actual testing. Manual assessment means opening the site in a browser and clicking around like a curious user, looking at what each page does. Content discovery means using a tool to guess file and folder names that are not linked anywhere, to find pages the site owner did not intend you to stumble on. Port scanning is explained in detail further down, because it is the step that produced this finding.

The author notes that each of these steps has sub-steps, which he says he will cover in later articles.

The tools

Purpose Tools
Sub-domain enumeration Subfinder, assetfinder
Liveness check httpx
Port scanning Rustscan

Subfinder and assetfinder are programs that gather sub-domain names from public sources: certificate records, search engines, and other places where a company's names leak out. You run them against a domain and get a list of names back.

httpx is a small command-line tool that takes a list of hostnames and tries to connect to each one, telling you which are alive and what they answer with. It is the filter for step 2.

Rustscan is a port scanner. A port is a numbered channel on a single machine. One computer can run many services at once, and each service listens on its own number, so the address plus the port tells you which service you are talking to. Web pages normally live on port 443 (secure) or 80 (plain). A port scanner tries a long list of numbers quickly and reports which ones answer. If a service is listening on a port, that port is described as open.

The author adds a practical note: Rustscan takes a lot of time compared with masscan or other tools, but he personally finds it more reliable. He asks readers to suggest faster and equally reliable alternatives, on the grounds that nobody knows everything.

No account, password or special permission was needed for any of this. The only requirement was that the sub-domains exist and that the scanning machine can reach the ports.

Finding the open port

While Mani was testing some Nokia websites by hand, he also had a port scan and content discovery running against every live host from step 1. The scan came back with port 9090 open on one of the websites. He then visited that host on that port:

HTTP
https://valid-domain.nokia.com:9090

Line by line: https:// means a normal encrypted web connection. valid-domain.nokia.com is the hostname of the site, written here with the real name replaced by a placeholder. The colon and 9090 at the end tell the browser to connect to port 9090 instead of the usual 443. There is no path after the port, so the browser is asking for the front door of whatever service lives there.

That request did not show a page. It redirected him to:

HTTP
https://valid-domain.nokia.com:9090/graph

A redirect is the server's way of saying "not here, go there instead". The browser follows it automatically, so the address bar changes and the new page loads. The only difference is the /graph at the end, which is a path: the name of a specific page on that service. The page that loaded was full of colourful graphs.

From the original on medium.com

The screenshot shows the colourful graphs that loaded after the redirect.

At this point Mani did not know what he was looking at. He searched the web to learn what Prometheus is, then read public bug bounty reports about similar findings, which pointed him at sensitive endpoints on the same service. An endpoint is a specific address on a service that answers a particular kind of request, the way a counter in a shop serves one purpose and the next counter serves another. Some endpoints on a monitoring server hand back raw data rather than a picture of it, and those are the ones that matter.

This is the moment the finding turns from curiosity into something worth reporting. The graphs are only the visible surface; the value is in the sensitive endpoints behind them.

Reporting it

Mani wrote a report and a proof of concept and emailed both to [redacted]. A proof of concept is a minimal, concrete demonstration that the problem exists: the steps taken and the evidence returned, so the company can reproduce it themselves rather than take your word for it. Nokia checked it on their side, confirmed it was a valid finding, and added him to their Hall of Fame page.

March 2022 From the original on medium.com

The screenshot shows the Hall of Fame entry, dated March 2022.

Why it was possible

Prometheus was installed on a machine that faces the internet and was left listening on port 9090. Prometheus has no built-in login or permission system of its own. The usual arrangement is that the network around it, or a proxy server sitting in front of it, does the gatekeeping. The report does not describe what access control, if any, surrounded the instance.

That interface is an API, short for application programming interface. A useful comparison: a website's pages are the shop counter designed for people, with signs and pictures, while an API is the loading bay at the back designed for other programs, which exchange raw data instead of pretty pages. Both belong to the same building, and if the loading bay door is unlocked, it does not matter how tidy the shop counter is.

The exposure was only discoverable because the port was open to the internet and the service answered on it. The redirect from the bare host and port to /graph made the service obvious once the port was known: you did not have to guess a path, the server told you where to go.

What an attacker could have seen

The researcher found sensitive endpoints on the service, but the report does not say what they returned. The report does not list which specific data was exposed or which endpoints returned what, so the exact sensitivity of the leaked information is not stated. The finding was recorded as missing authentication and information disclosure, and Nokia confirmed it as valid.

The fix

In general, an exposed Prometheus instance is dealt with by no longer publishing port 9090 to the internet and by putting authentication and network restrictions in front of it, but which of those was applied here is not said.

Other things worth trying

  1. Other default monitoring ports on live hosts. Scan the full port range of every live sub-domain, not just 80 and 443. A positive result is a service banner or interface on a port that should not be public, such as 9090 for Prometheus, 3000 for Grafana or 9093 for Alertmanager.
  2. Prometheus API endpoints behind the interface. Once /graph loads, request the API paths that public reports describe. A positive result is a JSON response containing metric names, labels or target information without any authentication challenge. JSON is a plain text format for structured data, the kind of thing programs exchange with each other.
  3. Redirect behaviour on the bare port. Request the host and port without a path and observe where it sends you. A redirect to a known product interface is a quick confirmation that the service is the one you suspect.
  4. Same methodology on other programmes. Run sub-domain enumeration, liveness filtering and port scanning against any target with a broad estate. A positive result is any live host exposing an administrative or monitoring interface that answers without credentials.

Not luck

The author makes a point of saying the result was not a fluke. There were a lot of duplicates before his first valid submission to the Nokia programme, meaning other people had reported the same thing first, and he later earned a second Hall of Fame on Nokia using the same method. His advice is not to give up: consistency is what matters in the end.

From the original on medium.com

These screenshots accompany that point.

Timeline

Date Event
2 March 2022 Issue reported to [redacted]
14 March 2022 Requested an update
21 March 2022 Notified that it was a valid finding

The second Hall of Fame entry came later, in April 2022.

April 2022 From the original on medium.com

The screenshot shows that second entry, dated April 2022.

Glossary

  • API: the part of a service built for other programs to talk to, exchanging raw data rather than web pages.
  • assetfinder: a command-line tool that collects sub-domain names from public sources.
  • bug bounty: a scheme where companies reward outside researchers for reporting security problems, sometimes with money, sometimes with public recognition.
  • content discovery: using a tool to guess file and folder names that are not linked anywhere on a site, to find pages the owner did not intend to expose.
  • domain: the name you type into a browser, such as nokia.com.
  • endpoint: a specific address on a service that answers a particular kind of request.
  • enumerate: to list systematically rather than guess.
  • Hall of Fame: a public page where a company lists people who have reported valid security findings.
  • host: a single machine on a network, identified by a name or an address.
  • httpx: a command-line tool that checks which hostnames are alive and what they answer with.
  • information disclosure: a weakness where information that should stay private is handed to someone who should not have it.
  • JSON: a plain text format for structured data, used by programs to exchange information.
  • liveness check: testing whether a host actually responds, so that later work focuses only on live ones.
  • masscan: a port scanner known for speed, mentioned by the author as a comparison to Rustscan.
  • missing authentication: a weakness where a service can be used without proving who you are, because no login is required at all.
  • port: a numbered channel on a machine; each service listens on its own number, so the address plus the port identifies the service.
  • port scan: trying many port numbers on a host to see which ones answer.
  • proof of concept: a minimal, concrete demonstration that a problem exists, so the company can reproduce it.
  • Prometheus: an open-source monitoring tool that collects measurements over time, draws them as graphs, and serves them through an API.
  • redirect: a server's instruction to the browser to load a different address instead.
  • Rustscan: a port scanner, used here because the author finds it reliable, though slower than some alternatives.
  • sub-domain: a name built in front of a domain, such as shop.nokia.com, usually a separate website.
  • Subfinder: a command-line tool that gathers sub-domain names from public sources.
  • vulnerability disclosure programme (VDP): a formal channel, often an email address, for outside people to report security problems to a company.

More from Nokia

View all

The newest disclosed reports for this program.

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.