Sitemap

[Hack] Bypass Jenkins authentication

1 min readApr 26, 2020

--

** This method need permission to ssh to server

I can’t access jenkins. (Forget password,…, etc.)
I can’t access Jenkins (forgot my password, …, etc.) 😥😥😥😥😥

Solution

    Get Authapon Kongkaew’s stories in your inbox

    Join Medium for free to get updates from this writer.

  1. Open terminal then ssh to jenkins server
  2. Find Jenkins Home Path (default path : /var/lib/jenkins)
  3. open file config.xml, then find <useSecurity> update flag from true to false
  4. Restart Jenkins by command “sudo service jenkins restart”

** Then you can have GOD permission on Jenkins 😁 😁

default config.xml (Jenkins)
After change useSecurity flag (config.xml)
Press enter or click to view image in full size
Done for bypass authentication :)

--

--