Skip to content

JENKINS-43637 Secures groovy script execution #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 2, 2017
Merged

JENKINS-43637 Secures groovy script execution #15

merged 4 commits into from
Nov 2, 2017

Conversation

dheid
Copy link
Contributor

@dheid dheid commented Oct 27, 2017

Fixes the arbitrary code execution vulnerability by using SecureGroovyScript (https://issues.jenkins-ci.org/browse/JENKINS-43637)

@dheid
Copy link
Contributor Author

dheid commented Oct 27, 2017

Also I volunteer in maintaining this plugin, if you agree. You'll find the discussion in the developer mailing list here: https://groups.google.com/d/msg/jenkinsci-dev/WNNUJA1PYIg/8O8q29MEBQAJ

@dheid
Copy link
Contributor Author

dheid commented Oct 28, 2017

Since I removed the PostBuildScriptListener, this pull request also fixes JENKINS-31041

@dheid
Copy link
Contributor Author

dheid commented Oct 28, 2017

Also fixes JENKINS-19873

@patrickpierson
Copy link

I vote @dheid gets approved as maintainer. He seems to be the only one working on this.

@dheid
Copy link
Contributor Author

dheid commented Nov 2, 2017 via email

@kgreulich
Copy link

Would be great, if @dheid would be approved as maintainer. I use this plugin too.

@patrickpierson
Copy link

@dheid looks like the wait time is at least 2 weeks

We typically wait for about 2 weeks in normal work periods before proceeding, so please be patient. Hence, if you can prove the existing maintainer already agrees and you explicitly asked about taking over (e.g. in a PR discussion), the process can be fast-looped.

That being said it this should be an exception because the last commit was on Jan 6, 2015 and now this plugin is vulnerable.

@gboissinot mind just agreeing that @dheid can take over?

@daniel-beck
Copy link
Member

@gboissinot informed me a while back that all his plugins are to be considered abandoned, so that's not a blocker. We just suck at handling emails.

@dheid Please open a PR to https://github.com/jenkins-infra/repository-permissions-updater/ (the README explains what's needed) and mention that you need Git commit access as well (if applicable) and/or that you want to take over as maintainer (if applicable).

@dheid
Copy link
Contributor Author

dheid commented Nov 2, 2017

Thank you all! Here is the pull request:

jenkins-infra/repository-permissions-updater#492

@daniel-beck
Copy link
Member

This should declare a compatibility warning to make existing users (hopefully) read the changelog:
https://wiki.jenkins-ci.org/display/JENKINS/Marking+a+new+plugin+version+as+incompatible+with+older+versions

@dheid dheid merged commit 3d33744 into jenkinsci:master Nov 2, 2017
@dheid
Copy link
Contributor Author

dheid commented Nov 2, 2017

Thanks for the hint. I added the compatiblity warning: 871b35a

@scpeters
Copy link

scpeters commented Nov 4, 2017

Thanks for fixing this! I saw that you made a new release, but the plugin page says "Distribution of This Plugin Has Been Suspended". I'll try to be patient, but I don't know what the next steps are for allowing people to upgrade.

@scpeters
Copy link

scpeters commented Nov 4, 2017

Ah, I think this is it: jenkins-infra/update-center2#169

@dheid
Copy link
Contributor Author

dheid commented Nov 5, 2017

Correct. I'm trying to remove the plugin from the blacklist. The Groovy script security mechanism is now included.

@vijaytripathi
Copy link

@dheid is this plugin still blacklisted, can we start using this plugin soon. On Jenkins page I see
"Distribution of This Plugin Has Been Suspended"

@dheid
Copy link
Contributor Author

dheid commented Nov 11, 2017 via email

@vijaytripathi
Copy link

Thanks Daniel , waiting for this PR to be merged. @daniel-beck
jenkins-infra/update-center2#169

@scpeters
Copy link

Looks like jenkins-infra/update-center2#169 has been merged, but I still see Distribution of This Plugin Has Been Suspended. I'm not sure how frequently they update based on changes like this.

@dheid
Copy link
Contributor Author

dheid commented Nov 17, 2017

@scpeters It works for my Jenkins server now. Would you please retry it?

@dheid
Copy link
Contributor Author

dheid commented Nov 17, 2017

@scpeters Oh, you're talking about the Wiki page. Good question. I think I must do a little research on how to disable the warning on these autogenerated pages.

@dheid
Copy link
Contributor Author

dheid commented Nov 17, 2017

@daniel-beck
Copy link
Member

@scpeters @dheid The wiki is heavily cached. Add query parameters to bypass the cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants