~/talk

Hacking Jenkins

Talkat HITBSecConf 2019 Amsterdam · 2019-05-06..05-10· [security]
slides:none on file

Finds and chains together a dynamic URL-loading ACL bypass and Groovy meta-programming to achieve a full pre-auth RCE. Uses Stapler’s dynamic routing to traverse objects, abuses Java reflection and Groovy annotations (@ASTTest, @Grab), hosts a malicious JAR and triggers it via the pipeline runner service constructor to execute code (demo succeeds). Reports 7 CVEs, releases an exploit repo, and estimates about 45,000 Jenkins instances remain vulnerable before fixes in December/January.

AI-written summary · about

  1. 0:00Intro
  2. 0:47Orange Tsai
  3. 1:24Outline
  4. 3:30JVM ecosystem report 2018
  5. 3:45Jenkins for hackers
  6. 5:37Common attack vectors
  7. 6:34Past deserialization bugs on Jenkins
  8. 7:26Jenkins remoting 2.55
  9. 9:34Review Java web
  10. 10:03What did Stapler do?
  11. 11:29Routing rules
  12. 15:12URL whitelists by default
  13. 24:19compile-time Meta-Programming
  14. 27:31Root cause analysis
  15. 30:52Prepare the malicious JAR
  16. 31:30Attacking remote Jenkins!
  17. 33:53Survey on Shodan
  18. 34:50Evolution of the exploit
  19. 36:28More reliable exploit chain
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.