Skip to content
Info disclosure Write-up Intermediate

Exposed Jenkins to RCE on 8 Adobe Experience Managers

A Jenkins instance had open signup, and build logs contained credentials for an Adobe Experience Manager (AEM) admin account. The attacker used those credentials to log into eight AEM servers and execute commands via a malicious script.

Corben Leo Follow

Published on corben.io

This is a short write-up of how I progressed from discovering a Jenkins instance to getting shells on 8 Adobe Experience Manager servers and gaining edit access to a company's main sites. Along with this blog-post, I'm releasing a tool called jenkinz.

Corben Leo, on corben.io

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 Jenkins instance allowed public self-registration and stored plaintext credentials in build logs, which were readable by any authenticated user.

Impact

The attacker gained admin access to eight AEM servers and could execute commands, potentially editing or deleting main sites.

What the attacker needed

Jenkins signup enabled; Access to build logs; Credentials in logs

How it was found

  1. Found a Jenkins subdomain via recon and visited it.
  2. Registered an account because signup was enabled.
  3. Ran a tool to download all build logs and environment variables.
  4. Searched the logs and found credentials for an AEM admin account.
  5. Used the credentials to log into eight AEM instances.
  6. Uploaded a script to execute the uname command on an AEM server.

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 software builds. Its build logs can accidentally contain passwords. Here, a password in a log gave admin access to eight content management servers, allowing the attacker to run commands on them.

What is Info disclosure?

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

More by Corben Leo

View all

9 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.