Urgent.News

What's breaking now, across thousands of outlets.

Tech

Internet-Exposed Jenkins Controllers: Measuring a Persistent Attack Surface

Internet-Exposed Jenkins Controllers: Measuring a Persistent Attack Surface Jenkins is one of the most widely deployed automation servers in the world, and a meaningful share of those deployments are reachable from the public internet. That combination has produced a steady stream of serious vulnerabilities, including CVE-2024-23897, an arbitrary file read in the Jenkins CLI that could expose…

Jenkins, a widely used automation server, has numerous internet-reachable controller instances, creating a persistent attack surface. A ZoomEye scan found 1,537 matching instances, indicating a significant exposure problem. Jenkins controllers are often deployed by non-security teams, leading to lack of visibility in vulnerability scanning.

This makes it simple for external build agents or webhooks to access the controller, which is typically installed on a public-facing virtual machine. The plugin ecosystem further complicates matters, as each plugin has its own release cycle and advisories, making it challenging to keep the controller up-to-date.

Several recent Jenkins security advisories highlight vulnerabilities specific to internet-reachable controllers, such as arbitrary file read through the CLI, path traversal, and stored cross-site scripting in plugins. A notable example is CVE-2024-23897, which allows an unauthenticated attacker to read files from the controller, potentially exposing sensitive information like credentials and configuration.

This vulnerability gained attention due to the prevalence of internet-accessible controllers. To mitigate the risk, defenders should verify if Jenkins controllers are reachable from the internet and treat this as a finding regardless of authentication settings. Controllers should be moved behind a VPN or an identity-aware proxy, allowing only necessary endpoints for external agents.

Staying updated with Jenkins core and plugin advisories, rotating stored credentials, and minimizing the scope of secrets accessible through a single controller are crucial steps. Additionally, retaining and forwarding build logs to a system the controller cannot modify is recommended. Despite Jenkins exposure not being a new issue, the scale of internet-reachable instances remains a significant concern, as these controllers hold valuable credentials and produce trusted artifacts that can impact the entire build system.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Monday 21 September →