Skip to content
Info disclosure Write-up Intermediate

"CI Knew There Would Be Bugs Here" — Exploring Continuous Integration Services as a Bug Bounty Hunter

Build logs from public continuous-integration services such as Travis CI often contained secrets like GitHub access tokens and SSH private keys. Attackers could use these to push code to repositories or log into deployment servers.

[email protected] (EdOverflow) Follow

Published on edoverflow.com

When it comes to bug bounty hunting and finding exciting areas to explore, it is vital to familiarise yourself with the technologies that vendors and companies rely on. One particularly interesting environment that caught our eye was popular integrations used by various open-source projects, primarily as part of their…

EdOverflow, on edoverflow.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, developers included commands that printed sensitive environment variables or files (such as SSH keys) into build logs, and these logs were publicly accessible.

Impact

Attackers could obtain GitHub access tokens with read and write access to repositories, or SSH private keys that could allow login to deployment servers; some servers were non-production.

What the attacker needed

Target uses a public CI service; Build logs are publicly accessible; Secrets are printed in logs

The fix

CI platforms can filter secure variables and tokens from logs, and developers should avoid printing secrets.

How it was found

  1. Identify the target's GitHub organisation and check if it uses Travis CI.
  2. Use the Travis CI API to list repositories and builds for the organisation.
  3. Download the build logs for each job.
  4. Search the logs locally for patterns like 'export', 'token', 'key', 'password', or 'secret'.
  5. Review matches to find exposed secrets such as GitHub tokens or SSH keys.

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.

Continuous integration (CI) services automatically build and test code whenever developers make changes. These services keep logs of each build, and if developers accidentally print secrets like passwords or tokens in those logs, anyone can read them. The researchers searched many public logs and found such secrets, which could let them access private systems.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by [email protected] (EdOverflow)

View all

3 more disclosed reports, best first.

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.