CVE-2024-7387
CRITICALOpenShift Builder - Command Injection via Path Traversal in BuildConfig Secret DestinationDir
Title source: llmExploitation Summary
EIP tracks 6 public exploits for CVE-2024-7387. PoCs published by pairofglasses, eggpratacurry, biggerbangg.
AI-analyzed exploit summary The repository contains a minimal Dockerfile and a README that redirects to an external site without providing any technical details or exploit code. This is indicative of a social engineering lure rather than a legitimate PoC.
Description
A flaw was found in openshift/builder. This vulnerability allows command injection via path traversal, where a malicious user can execute arbitrary commands on the OpenShift node running the builder container. When using the “Docker” strategy, executable files inside the privileged build container can be overridden using the `spec.source.secrets.secret.destinationDir` attribute of the `BuildConfig` definition. An attacker running code in a privileged container could escalate their permissions on the node running the container.
Exploits (6)
The repository contains a minimal Dockerfile and a README that redirects to an external site without providing any technical details or exploit code. This is indicative of a social engineering lure rather than a legitimate PoC.
The repository contains no actual exploit code, only a Dockerfile that performs trivial operations and a README redirecting to an external site. This is indicative of a social engineering lure rather than a legitimate PoC.
The repository contains no functional exploit code, only a Dockerfile that lists files and a README redirecting to an external site. This is characteristic of a social engineering lure.
The repository contains no actual exploit code, only a Dockerfile that performs trivial operations and a README redirecting to an external site. This is a classic social engineering lure.
This repository contains a functional exploit for CVE-2024-7387, leveraging OpenShift's secret mounting mechanism to overwrite the `/usr/bin/cp` binary with a malicious script. The exploit chains this with a BuildConfig to execute arbitrary commands, ultimately granting SSH access to the worker node.
This PoC exploits a vulnerability in OpenShift by overwriting the `/usr/bin/cp` binary via a malicious secret, leading to arbitrary command execution during build processes. The exploit establishes an SSH backdoor on the worker node by injecting an SSH key into the authorized_keys file.
References (10)
Scores
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H