Jenkins
Open Script Consoles
You may find this open on many systems.

groovy reverse shell

Directory Brute Forcing: Nothing interesting found.
Authentication: * The instance was secured with a login portal.
Weak Credentials Found:
admin:admin.
Note: Always apply the KISS (Keep It Simple, Stupid) principle. Before looking for complex CVEs, test common/default credentials (e.g.,
admin:admin,jenkins:jenkins,root:root).

Jenkins Exploitation via Script Console
Jenkins features a "Script Console" (found under Manage Jenkins > Script Console) that allows users to execute arbitrary Groovy scripts on the server. This is a common vector for Remote Code Execution (RCE).

Reverse Shell (Groovy)
To gain a shell on the underlying Linux OS, a Groovy reverse shell script was executed.
Groovy Script Used:
Execution Steps:
Start Listener: On your attacker machine, start a Netcat listener.

Execute Script: Paste the Groovy script into the Jenkins Script Console and click Run.

Verify Access: Once the connection is received, verify the user context.

Last updated