Skip to content
Misconfiguration Write-up Beginner

How I got hall of fame in two fortune 500 companies an RCE story

Internet-exposed Jenkins instances were reachable without authentication, and some exposed the Manage Jenkins configuration area. On two hosts the author installed a plugin through that interface, which showed that remote code execution was possible.

Alfie Follow

Published on medium.com

After doing some recon from the target company’s IPs using shodan, I narrowed my attack vector to focus on exploiting some jenkins applications which did not seem to need credentials.Using the shodan dork below, I was able to get a list of unrestricted jenkins instances

Alfie, 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 an unauthenticated Jenkins instance exposed to the internet with the administrative configuration area left open to anyone.

Impact

An attacker could read source code and change configuration, and on the two hosts with the admin option they could run their own code on the server.

What the attacker needed

Jenkins reachable from the internet; No authentication required; Admin configuration option exposed

How it was found

  1. Search a public device database for Jenkins instances on the web interface port
  2. Filter the results down to instances that need no credentials
  3. Check which of those expose the Manage Jenkins configuration option
  4. Install a plugin through that option to demonstrate code execution

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 builds and ships software automatically. If anyone on the internet can open its admin settings, they can add a plugin, which is extra software that runs on the server, and that gives them control of the machine. Here the servers were found by searching a public database of internet-connected devices.

What is Misconfiguration?

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

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.