Skip to content
Leaked secrets Write-up Beginner

How I Pwned Telemetry on Amsterdam.nl

An Azure Application Insights instrumentation key was exposed in client-side JavaScript on a subdomain of amsterdam.nl. An attacker could use the key to inject fake telemetry into the production service without authentication, potentially corrupting logs, metrics, and alerts.

medium.com

Published on medium.com

Yo whats up peeps, its MRKNIGHT-NIDU here! Today Im spilling the tea on how I nabbed this high sev find on a subdomain of amsterdam.nl, got into their Hall of Fame, and uh… still waiting on that swag.

MRKNIGHT-NIDU, 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.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the instrumentation key was embedded in client-side JavaScript without restricting its use to authorised sources.

Impact

An attacker could inject fake telemetry into production, potentially messing up logs and metrics, faking or hiding alerts, and cluttering dashboards.

What the attacker needed

Access to the public website; Ability to inspect JavaScript

The fix

The instrumentation key should be restricted to authorised sources or replaced with a server-side proxy so it is not exposed in client-side code.

How it was found

  1. Enumerate subdomains of amsterdam.nl and identify an interesting subdomain.
  2. Inspect the source code and JavaScript files in the browser console.
  3. Run a script in the console to search for hidden API keys.
  4. Find an exposed Azure Instrumentation Key in client-side JavaScript.
  5. Use the key to send a crafted POST request to the Azure telemetry endpoint.
  6. Observe that the fake telemetry is accepted by the production system.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A telemetry key is like a password that lets an application send monitoring data to a cloud service. If that key is visible in the website's code, anyone can use it to send fake data, which can confuse the people watching the system. The report shows that the key was found in JavaScript and then used to send a test message to the service.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.