jenkins_exploit
Detects Jenkins version and anonymous access, reads files via CVE-2024-23897, tests credentials, and executes Groovy RCE or reverse shell for authorized penetration testing.
Instructions
šÆ Jenkins attack workflow.
action options: "check" ā detect version + anonymous access "cve_read" ā CVE-2024-23897 file read (no auth needed, Jenkins < 2.442) "login" ā test credentials "rce" ā Groovy Script Console RCE (needs valid creds) "shell" ā full reverse shell via Groovy (needs lhost + lport)
CVE-2024-23897 works on Jenkins 2.303.1 without any credentials!
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>"
},
"name": "jenkins_exploit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | 8000 | |
| lhost | No | ||
| lport | No | 4444 | |
| action | No | check | |
| target | Yes | ||
| password | No | ||
| username | No | admin |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |