Skip to content
Leaked secrets Write-up Beginner

Leaked API Key to Full Calendar Control

A hardcoded API key found in a public GitHub repository granted full Modifier permissions on the organisation's official calendar. An attacker could create, modify, or delete events, potentially causing data loss or enabling phishing through malicious links.

medium.com

Published on medium.com

Hi, I’m Yehia Ahmed, a bug bounty hunter interested in learning things in cybersecurity.

Yehia Ahmed, 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 a hardcoded API key with write permissions was committed to a public GitHub repository, and the calendar service accepted it without additional authorisation checks.

Impact

An attacker could create, modify, or delete calendar events, potentially causing data loss or enabling phishing through malicious links in event descriptions.

What the attacker needed

Access to public GitHub repositories; knowledge of the calendar API documentation

The fix

The API key should be revoked and removed from the public repository, and such keys should be stored securely with minimal permissions.

How it was found

  1. Search the company's public GitHub repositories for hardcoded secrets.
  2. Find a hardcoded calendar API key in the code.
  3. Read the API documentation to learn how to use the key.
  4. Construct a URL by appending the key to the base URL and load it.
  5. Observe that the dashboard shows the role as Modifier.
  6. Create a harmless test event to confirm write access.

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 software talk to a service. Here, the key was accidentally left in public code on GitHub, and it had enough power to let anyone change the organisation's calendar. That means a stranger could add fake events or delete real ones.

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.