-
Bug
-
Resolution: Unresolved
-
Minor
-
Jenkins 2.440 and Jenkins LTS 2.426.1
When anonymous read access is allowed, the following URL is accessible:
"<JENKINS_URL>/_script" (please note the underscore!)
Fortunately, trying to execute a script with the "Run" button leads to a redirect to the login page.
In contrast, "<JENKINS_URL>/script" (without the underscore) is properly redirected to the login page by default.
This issue can be reproduced, by installing the latest weekly release or LTS release, enabling anonymous read access in the security settings and accessing the mentioned URLs.
1. Is there a legitimate reason to make the script console available under "<JENKINS_URL>/_script" (independent of the authentication issue)? Does something depend on that URL?
2. If both questions under 1. can be answered with "No", I'd recommend removing access to the URL completely. If the answers to 1. are "Yes", I'd recommend fixing the missing authentication (it should have the same behavior as "<JENKINS_URL>/script").
- links to
[JENKINS-72543] JENKINS_URL/_script only requires Overall/Read
Summary | Original: JENKINS_URL/_script does not require authentication | New: JENKINS_URL/_script only requires Overall/Read |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "PR#8858 (Web Link)" [ 29431 ] |
Assignee | New: Daniel Beck [ danielbeck ] |
_script is simply the view's Jelly file. Since there's no sensitive content, there's no real reason to protect it.
There's lots of these URLs in Jenkins, fixing one doesn't accomplish much.