-
Notifications
You must be signed in to change notification settings - Fork 148
[SECURITY-2290] check permission as well #58
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
Conversation
Signed-off-by: Olivier Lamy <[email protected]>
40af73c to
c2e5ad9
Compare
...main/java/jenkins/plugins/publish_over_ssh/descriptor/BapSshHostConfigurationDescriptor.java
Outdated
Show resolved
Hide resolved
src/main/java/jenkins/plugins/publish_over_ssh/descriptor/BapSshPublisherPluginDescriptor.java
Outdated
Show resolved
Hide resolved
Kevin-CB
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this fix locally, the vulnerability is no longer present, however it is necessary to correct the 2 small copy paste typo.
|
oops my bad typo. good catch! |
…shPublisherPluginDescriptor.java Co-authored-by: Kevin Guerroudj <[email protected]>
…shHostConfigurationDescriptor.java Co-authored-by: Kevin Guerroudj <[email protected]>
| return FormValidation.validateNonNegativeInteger(value); | ||
| } | ||
|
|
||
| @RequirePOST |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No side effects, so not strictly necessary, but doesn't hurt either assuming the UI controls send POST.
Signed-off-by: Olivier Lamy [email protected]