Leaks on Repeat: How a CI/CD Webhook Gave Me Root Logs, Tokens &
A CI/CD webhook accepted unauthenticated requests to trigger production deployments and returned public job logs containing secrets. An attacker could trigger deployments and read logs to obtain AWS keys, database credentials, and Slack tokens.
Free Link🎈
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 webhook lacked authentication and the CI system exposed job logs publicly without access control.
What the attacker needed
Public CI/CD webhook URL; no authentication required
The fix
The webhook should require authentication and logs should not be publicly accessible or contain secrets.
How it was found
- Find a public CI/CD webhook URL in a repository's workflow file.
- Send a POST request to the webhook without an Authorization header.
- Receive a response with a job ID and log URL.
- Fetch the log URL to read secrets.
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 webhook is a URL that triggers an automated action when called. Here, anyone could call it without logging in, and the resulting logs were public, exposing passwords and keys.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.