mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 22:12:25 +00:00
[FIXED SECURITY-73] Require RUN_SCRIPTS for /heapDump.
This commit is contained in:
1 parent
ac8e17b9ce
commit
0530a6645a
1 file changed
+1
-1
@@ -202,7 +202,7 @@ public final class RemotingDiagnostics {
|
||||
|
||||
@WebMethod(name="heapdump.hprof")
|
||||
public void doHeapDump(StaplerRequest req, StaplerResponse rsp) throws IOException, InterruptedException {
|
||||
owner.checkPermission(Jenkins.ADMINISTER);
|
||||
owner.checkPermission(Jenkins.RUN_SCRIPTS);
|
||||
rsp.setContentType("application/octet-stream");
|
||||
|
||||
FilePath dump = obtain();
|
||||
|
||||
Reference in new issue
Block a user