Public Groovy Script Console
Last updated
Last updated
Groovy Script Console provides developers a way to run Groovy Script code right from their browser. However, in case permissions aren't configured properly, it could introduce another attack vector and often lead to remote code execution.
Navigate to the following app route and check if Groovy Script Console is publicly accessible:
You can also send a POST HTTP request to the /script
or /scriptText
app routes with your script contents in the script body parameter (make sure to change the positional variables with your own values):
or:
Make sure to enforce proper account access restrictions and prevent non-administrator or non-privileged accounts from accessing the script console.
To cross-check this, check the individual user and group permissions:
Additionally, learn more about the capabilities of the Script Console and how to set proper permissions based on each user or group role.
Jenkin's Groovy Script Console is capable of several high-level execution tasks and thereby can allow malicious users to directly access the Jenkins runtime and practically do anything.