Skip to content
Leaked secrets Write-up Beginner

Findings In Swiggys Codebase Memory Leak And Google Maps Api Key Exposure

A Google Maps API key was exposed in a JavaScript file, and a separate JavaScript file contained debugging and monitoring information. An attacker could misuse the API key and potentially learn sensitive details from the exposed file.

Varshini Ramesh Follow

Published on infosecwriteups.com

Greetings, Infosec aficionados! Today, we’re diving into the Swiggy’s tech oopsies, featuring not one but two delightful vulnerabilities.

Varshini Ramesh, on infosecwriteups.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, sensitive credentials and debugging files were accidentally included in publicly accessible JavaScript assets.

Impact

The exposed API key could be misused, and the debugging file could leak sensitive information; the report does not show actual exploitation beyond key discovery.

What the attacker needed

None

How it was found

  1. Look through the source code and find a JavaScript file URL.
  2. Access the URL directly to reveal the API key.
  3. Use tools and Google-provided code to exploit the key.
  4. Check .js files and find one with debugging and monitoring information.

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.

An API key is like a password that lets an app use a service, such as Google Maps. If it is left in a public file, anyone can find it and use the service on the company's account. Separately, a file meant for debugging was publicly accessible, which could reveal internal information.

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.