Skip to content
Info disclosure Disclosed report Beginner

Google Maps API key leaked during device pairing

A Google Maps API key was exposed in a GET request made during device pairing, and the reporter confirmed the key was valid. An attacker could use the leaked key for their own purposes.

bug_digger21 Follow

Originally disclosed on HackerOne

Bounty$150 Medium 4.9 View original
  • Triaged in 23 hours
  • Fixed in 6 months
  • Paid in 8 days
  • Disclosed after 6 months

Summary by the program

Summary: just on intercepting and going through the request i made from ort-admin.pingone.com . i found that the google map api key was leaking through get request . i was able to validate that the leaked key was a valid one

Steps To Reproduce: 1.login to account

goto setup tab > ping iD > device pairing goto add an ip and enter an ip click save and intercept the request have a look to the GET request and see the google map api key was leaked through request leaked key is █████

███

i was able to validate thatt this key was a valid one by using an endpoint that validate the key

https://maps.googleapis.com/maps/api/staticmap?center=40.714728,-73.998672&zoom=12&size=2500x2000&maptype=roadmap&key=XXXXX

this shows that this is a valid key

Impact any persons can use this api key for their own use

The original report as published on HackerOne, by bug_digger21. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The target is the Ping Identity administrative console at https://ort-admin.pingone.com/*. The researcher was working in the device pairing feature and noticed that a Google Maps API key was being sent to the browser inside a GET request.

The reproduction steps are short:

  1. Log in to the account.
  2. Go to the setup tab, then Ping ID, then device pairing.
  3. Add an IP address and enter an IP.
  4. Click save and intercept the request.
  5. Inspect the GET request: the Google Maps API key is present in it.

The key itself is redacted in the published report, so it is not reproduced here. The researcher then confirmed the key was live by calling a Google endpoint that validates it:

HTTP
https://maps.googleapis.com/maps/api/staticmap?center=40.714728,-73.998672&zoom=12&size=2500x2000&maptype=roadmap&key=XXXXX

The researcher stated that this endpoint shows the key is valid. The report's impact statement is correspondingly modest: any person can use the API key for their own purposes.

The platform recorded the issue as medium severity with a CVSS score of 4.9, classified as information exposure through sent data, and paid a bounty of 150.00 USD. It was disclosed on 2020-04-28. The report does not describe a fix.

Root cause

The report does not explain why the key was present in the request. A key that is only ever meant to render a map for authenticated administrators still ends up in the client, where anyone who can reach the page, or anyone who captures the traffic, can read it. The validation request showed the key worked when called directly.

Impact

The report limits itself to saying that any person can use the leaked key for their own use. In practice that means any person can use the leaked key for their own purposes. The report does not claim access to other Ping Identity data, account takeover, or any further escalation, and none should be inferred from it.

How this kind of bug works

Many web features need a third-party API key in the browser: maps, geocoding, analytics, captchas, payment widgets. The key has to reach the client for the feature to work, so it is not a secret in the cryptographic sense. The problem starts when the key is treated as if it were secret: it is issued without restrictions, it is granted broad API scope, or it is placed in a request where it is not needed at all, such as a save action that carries the key.

Once such a key is in a response, anyone who can view that response, through a proxy, browser developer tools, or a shared screenshot, holds it. If the key has no application restriction (HTTP referrer, IP address, Android or iOS bundle) and no API restriction (only the specific APIs the feature needs), it can be replayed from anywhere. The result is quota theft and unexpected billing, and sometimes access to data the key's project can read.

The defences are key restrictions on the provider side and data minimisation on the application side: only send the key where the feature needs it, scope it to the narrowest set of APIs, and bind it to the origins that legitimately use it.

How to test for it

Look for features that embed third-party keys: map widgets, address autocomplete, captcha, analytics, embedded dashboards. Then:

  1. Open the feature with an intercepting proxy and record every request the page makes, including XHR and fetch calls triggered by save or submit buttons.
  2. Search responses and request bodies for key-shaped strings: long alphanumeric values, parameters named key, api_key, apikey, token, or provider-specific hostnames.
  3. Note where the key appears. A key in a page that renders a map is expected; a key in a save request for an unrelated setting is a stronger finding.
  4. Validate the key from outside the application, using the provider's own documented endpoint, exactly as the researcher did with the static map call. A successful response is the positive result.
  5. Check whether the key is restricted: try it from a different origin or without the expected referrer. If it still works, the exposure is meaningful.

Common false positives: keys that are public by design and restricted to the calling origin, keys that are already revoked, and placeholder or demo keys. A key that only works from the application's own origin is much weaker as a finding, so test the restriction before reporting.

How it is fixed

On the provider side, apply application restrictions (HTTP referrer for web keys, package and signature for mobile) and API restrictions so the key can only call the APIs the feature needs. Rotate the exposed key and revoke the old one. On the application side, stop sending the key in requests that do not need it, for example by moving map configuration server-side or by loading the map only on the page that displays it. Monitor quota and billing for unexpected use.

Hunting notes

These leaks cluster around admin consoles and setup wizards, where map or geolocation features are bolted onto forms, and around single-page applications that fetch configuration from an API. Recon signals include third-party script tags for map providers, endpoints returning configuration objects, and any save or preview action that returns more than a status code. To make the report land, show the exact request, redact the key, and prove validity with the provider's own endpoint. That evidence, rather than the mere presence of a key, is what turns a leak into an accepted finding.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 7 min read.

What happened, in plain words

Ping Identity runs an administrative console at https://ort-admin.pingone.com/*. An administrative console is the private web interface where an organisation's staff manage settings for a product. One of those settings is device pairing, where an administrator can add an IP address.

While working in that feature, the researcher noticed that a Google Maps API key was being sent to the browser. An API key is a short string of characters that identifies who is calling a service, a bit like a membership card you show at a counter: the service looks at it and decides whether to serve you and whose bill to put it on. Here the service is Google Maps.

The problem is that the key was travelling to the browser inside a GET request. A request is the message your browser sends to a server to ask for something, and GET is the simplest kind: it asks the server to hand back a page or some data. Anything carried in a GET request is visible to whoever can watch that traffic, including the person using the browser. The key had ended up on the client side, where the user can read it.

The reproduction steps are short:

  1. Log in to the account.
  2. Go to the setup tab, then Ping ID, then device pairing.
  3. Add an IP address and enter an IP.
  4. Click save and intercept the request.
  5. Inspect the GET request: the Google Maps API key is present in it.

Step 4 is the one that needs explaining. To "intercept" a request means to catch it in transit before it reaches the server, usually with a tool called a proxy that sits between the browser and the internet. The proxy lets you pause the traffic and read it. Without a proxy you can still see the same thing in the browser's own developer tools, which record every request a page makes.

The key itself is redacted in the published report, so it is not reproduced here. The researcher then confirmed the key was live by calling a Google endpoint that validates it:

HTTP
https://maps.googleapis.com/maps/api/staticmap?center=40.714728,-73.998672&zoom=12&size=2500x2000&maptype=roadmap&key=XXXXX

Line by line: https://maps.googleapis.com/maps/api/staticmap is Google's endpoint for producing a still map image. center=40.714728,-73.998672 is the latitude and longitude the map is centred on. zoom=12 sets how close the view is. size=2500x2000 sets the image dimensions in pixels. maptype=roadmap asks for the ordinary street map style. key=XXXXX is where the leaked key goes; it is masked here. The researcher stated that this endpoint shows the key is valid.

The report's impact statement is correspondingly modest: any person can use the API key for their own purposes. The platform recorded the issue as medium severity with a CVSS score of 4.9, classified as information exposure through sent data, and paid a bounty of 150.00 USD. It was disclosed on 2020-04-28. The report does not describe a fix.

In general, how this kind of bug works

Many web features need a third-party API key in the browser: maps, address lookup, analytics, captchas, payment widgets. The key has to reach the client for the feature to work, so it is not a secret in the cryptographic sense, the way a password is. The trouble starts when the key is treated as if it were secret: it is issued without restrictions, it is allowed to call far more of the provider's services than the feature needs, or it is placed in a request where it is not needed at all, such as a save action that carries the key.

Once such a key is in a response, anyone who can view that response holds it: through a proxy, through browser developer tools, or even through a shared screenshot. If the key has no application restriction (a rule limiting it to certain web addresses, IP addresses, or mobile app identities) and no API restriction (a rule limiting it to specific Google services), it can be replayed from anywhere. The result is quota theft and unexpected billing, and sometimes access to data the key's project can read.

The defences sit on both sides. On the provider side, restrict the key. On the application side, send it only where the feature needs it, scope it to the narrowest set of services, and bind it to the origins that legitimately use it.

How to test for it

Look for features that embed third-party keys: map widgets, address autocomplete, captcha, analytics, embedded dashboards. Then:

  1. Open the feature with an intercepting proxy and record every request the page makes, including the background calls triggered by save or submit buttons.
  2. Search responses and request bodies for key-shaped strings: long alphanumeric values, parameters named key, api_key, apikey, token, or provider-specific hostnames.
  3. Note where the key appears. A key in a page that renders a map is expected; a key in a save request for an unrelated setting is a stronger finding.
  4. Validate the key from outside the application, using the provider's own documented endpoint, exactly as the researcher did with the static map call. A successful response is the positive result.
  5. Check whether the key is restricted: try it from a different origin or without the expected referrer. If it still works, the exposure is meaningful.

Common false positives: keys that are public by design and restricted to the calling origin, keys that are already revoked, and placeholder or demo keys. A key that only works from the application's own origin is much weaker as a finding, so test the restriction before reporting.

How it is fixed

On the provider side, apply application restrictions (web address rules for web keys, package and signature rules for mobile) and API restrictions so the key can only call the services the feature needs. Rotate the exposed key and revoke the old one. On the application side, stop sending the key in requests that do not need it, for example by moving map configuration to the server or by loading the map only on the page that displays it. Monitor quota and billing for unexpected use.

Hunting notes

These leaks cluster around admin consoles and setup wizards, where map or location features are bolted onto forms, and around single-page applications that fetch configuration from an API. Signals worth watching include third-party script tags for map providers, endpoints returning configuration objects, and any save or preview action that returns more than a status code. To make the report land, show the exact request, redact the key, and prove validity with the provider's own endpoint. That evidence, rather than the mere presence of a key, is what turns a leak into an accepted finding.

Glossary

  • API: a way for one piece of software to ask another for data or an action, like a service counter with a fixed menu of requests.
  • API key: a string that identifies the caller of an API and links the usage to an account for quota and billing.
  • Application restriction: a rule on a key that limits which websites, IP addresses or mobile apps may use it.
  • API restriction: a rule on a key that limits which of the provider's services it may call.
  • Client side: anything that happens in the user's browser, where the user can see it.
  • Server side: anything that happens on the provider's machines, out of the user's reach.
  • GET request: the basic kind of request a browser sends to fetch a page or data; its contents are visible to the user.
  • Request: the message a browser sends to a server asking for something.
  • Response: the message a server sends back.
  • Intercepting proxy: a tool that sits between browser and server, letting you pause and read traffic.
  • Browser developer tools: the built-in panel in a browser that lists the requests a page makes.
  • Endpoint: a specific address on a server that accepts a particular kind of request.
  • Parameter: a named value attached to a request, such as zoom=12.
  • Referrer: the address of the page from which a request was made; servers can use it to check where a request came from.
  • Origin: the combination of scheme, host and port that identifies where a page is served from.
  • Quota: the allowance of requests a provider gives an account, often tied to billing.
  • CVSS: a standard scoring system for rating the severity of a security issue.
  • Information exposure through sent data: the weakness class where sensitive data is sent somewhere it can be read by the wrong party.
  • Redacted: removed or masked so a secret is not published.
  • Rotate: replace a key with a new one and revoke the old one.
  • Revoke: disable a key so it no longer works.
  • False positive: a finding that looks like a problem but is not one in practice.

More from Ping Identity

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.