Skip to content

Commit

Permalink
Merge pull request #99 from jenkinsci-cert/SECURITY-389
Browse files Browse the repository at this point in the history
[SECURITY-389] Check ADMINISTER on /fingerprintCleanup and /workspaceCleanup
  • Loading branch information
jglick authored Jan 9, 2017
2 parents 13905d8 + 9ce5405 commit 97a61a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/jenkins/model/Jenkins.java
Original file line number Diff line number Diff line change
Expand Up @@ -3620,6 +3620,7 @@ public void doIconSize( StaplerRequest req, StaplerResponse rsp ) throws IOExcep

@RequirePOST
public void doFingerprintCleanup(StaplerResponse rsp) throws IOException {
checkPermission(ADMINISTER);
FingerprintCleanupThread.invoke();
rsp.setStatus(HttpServletResponse.SC_OK);
rsp.setContentType("text/plain");
Expand All @@ -3628,6 +3629,7 @@ public void doFingerprintCleanup(StaplerResponse rsp) throws IOException {

@RequirePOST
public void doWorkspaceCleanup(StaplerResponse rsp) throws IOException {
checkPermission(ADMINISTER);
WorkspaceCleanupThread.invoke();
rsp.setStatus(HttpServletResponse.SC_OK);
rsp.setContentType("text/plain");
Expand Down

0 comments on commit 97a61a9

Please sign in to comment.