• Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • sidebar-link-plugin
    • None
    • Jenkins 1.540
      Sidebar Link 1.6

      Tried to enter a URL like the following which resulted in an empty link (no href attr in the anchor tag)

      http://perforce.internal.com:5500/@md=d&cd=/&c=5FN@/?ac=107&mx=100&jsf=Job&jsf=Status&jsf=Codeline&jsf=Description&jsf=Owner&jsf=Modified&jsf=Defect_Ref&jsf=Job_control&jsf=WorkItem_Ref&jsf=Job_Ref&jsf=Originator&ft=%28Status=qaready%20|%20%28Status=open%20%26%20Job_control=requested%29%29%20%26%20codeline=main

          [JENKINS-23258] Sidebar URL should accept invalid URL

          D Soa added a comment -

          Looks like it is the '|' that it doesn't like. Changing it to %7C worked.

          D Soa added a comment - Looks like it is the '|' that it doesn't like. Changing it to %7C worked.

          '|' is not a valid character in URL. See RFC-1738.

          Kohsuke Kawaguchi added a comment - '|' is not a valid character in URL. See RFC-1738.

          ... although come to think of it, it's not clear why the plugin ends up silently dropping it. Reopening.

          Kohsuke Kawaguchi added a comment - ... although come to think of it, it's not clear why the plugin ends up silently dropping it. Reopening.

          Adjusting priority and summary to reflect the task at hand. Without knowing much about the plugin, there seems to be no reason why the plugin needs to enforce the URL syntax rule. It could just as well treat URLs as strings and let browsers do their things.

          Kohsuke Kawaguchi added a comment - Adjusting priority and summary to reflect the task at hand. Without knowing much about the plugin, there seems to be no reason why the plugin needs to enforce the URL syntax rule. It could just as well treat URLs as strings and let browsers do their things.

          Kalle Niemitalo added a comment - - edited

          Because of the previously fixed Persisted XSS Vulnerability in Sidebar Link Plugin (SECURITY-352 / CVE-2017-1000088), I don't think it would be safe to make the plugin let icon URLs pass through if it cannot understand what they mean.

          See https://github.com/jenkinsci/sidebar-link-plugin/commit/0db2a01d0ff250f9ba81929faca4bfce657d2b11.

          Kalle Niemitalo added a comment - - edited Because of the previously fixed Persisted XSS Vulnerability in Sidebar Link Plugin (SECURITY-352 / CVE-2017-1000088), I don't think it would be safe to make the plugin let icon URLs pass through if it cannot understand what they mean. See https://github.com/jenkinsci/sidebar-link-plugin/commit/0db2a01d0ff250f9ba81929faca4bfce657d2b11 .

            kon Kalle Niemitalo
            dsoa D Soa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: