Skip to content
Misconfiguration Write-up Beginner

My Research on Misconfigured Jenkins Servers

Many Jenkins servers were exposed with no authentication, self-registration granting guest or admin rights, or SAML/OAuth misconfigured to allow any GitHub/Bitbucket account. Attackers could access sensitive credentials, tokens, and job logs.

Mikail Tunç Follow

Published on emtunc.org

Late last year I decided to see how many misconfigured CI/CD (continuous integration and deployment) installations I could find on the internet. I decided to focus my research on one of the most popular CI/CD applications – Jenkins.

Mikail Tunç (@emtunc), on emtunc.org

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 misconfiguration of authentication and authorisation settings, such as leaving Jenkins open without login, enabling self-registration with excessive permissions, or not restricting SSO to the organisation's user pool.

Impact

Attackers could access sensitive credentials, tokens, and job logs, potentially leading to compromise of source repositories and deployment environments.

What the attacker needed

Jenkins server exposed to internet; Misconfigured authentication or authorisation; No authentication required, or self-registration enabled…

The fix

Organisations should methodically crawl their infrastructure to ensure sensitive interfaces are not exposed, restrict authentication and authorisation properly, and provide a security contact page.

How it was found

  1. Used Shodan search queries to find Jenkins servers in regions and hosting providers of interest.
  2. Downloaded Shodan reports in CSV format and created a list of URLs to crawl.
  3. Filtered for instances with no authentication, self-registration enabled, or SSO/SAML integration.
  4. For self-registration instances, registered a test account and checked granted permissions.
  5. For SSO instances, attempted login with a test GitHub/Bitbucket account.
  6. If access was gained, checked the 'system' and 'credentials' pages to identify the owning organisation.

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.

Jenkins is a tool that automates building and deploying software. If it is not properly protected, anyone on the internet can open it and see passwords and keys stored inside. This report found many such servers and reported them to the owners.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by Mikail Tunç

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.