Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-38866

Disallow HTML markup for select list custom field option values

      The option values for this custom field type are already html escaped in Jira Cloud due to security concerns. This issue is to track switching the default value for the "Enable HTML in custom field descriptions and list item values" setting to be "OFF" by default.

            [JRASERVER-38866] Disallow HTML markup for select list custom field option values

            I'm just glad that after upgrading I was able to find this and find that there is an option in general settings.

             

            In the meantime that was a lot of curse words because if you had a rogue Jira admin I am pretty sure they would not bother with some field configs or custom fields, as there are plenty other better ways to be a terrorist.

            Radek Dostál added a comment - I'm just glad that after upgrading I was able to find this and find that there is an option in general settings.   In the meantime that was a lot of curse words because if you had a rogue Jira admin I am pretty sure they would not bother with some field configs or custom fields, as there are plenty other better ways to be a terrorist.

            Good, it looks like sanity has prevailed, and instead of arbitrarily totally removing this functionality, you're merely disabling it by default while allowing the user to re-enable it.

            Are you going to restore HTML attributes to user picker lists, or is this just going to remain another inconsistency in Jira?

            Greg Hoggarth added a comment - Good, it looks like sanity has prevailed, and instead of arbitrarily totally removing this functionality, you're merely disabling it by default while allowing the user to re-enable it. Are you going to restore HTML attributes to user picker lists, or is this just going to remain another inconsistency in Jira?

            Starting from Jira 8.7.0, we will switch the default option of the aforementioned setting.
            We don't want to backport this to a bugfix release, as it would be easy to miss and could break some functionalities - to make it more clear to admins that this change is happening, we'll put it quite high in the release notes.

            Daniel Rauf added a comment - Starting from Jira 8.7.0, we will switch the default option of the aforementioned setting. We don't want to backport this to a bugfix release, as it would be easy to miss and could break some functionalities - to make it more clear to admins that this change is happening, we'll put it quite high in the release notes.

            Andreas added a comment -

            In this article (https://confluence.atlassian.com/adminjiraserver0713/configuring-a-custom-field-964983512.html) is described, that it is possible to use HTML values for custom field select lists. If I do so it renders in screens but if I add a "Pie Chart" gadget to the dashboard using that custom field the HTML code is showing instead of rendering it. 

             

            Should HTML code be used as value for custom field select lists or not?

            Andreas added a comment - In this article ( https://confluence.atlassian.com/adminjiraserver0713/configuring-a-custom-field-964983512.html ) is described, that it is possible to use HTML values for custom field select lists. If I do so it renders in screens but if I add a "Pie Chart" gadget to the dashboard using that custom field the HTML code is showing instead of rendering it.    Should HTML code be used as value for custom field select lists or not?

            Thanks.

            Greg Hoggarth added a comment - Thanks.

            uǝq (Inactive) added a comment - - edited

            gregory.hoggarth, my sincere apologies. I was performing a cleanup of some old internal tickets and inadvertently moved this one as well. That's what I get for trying to rush.

            Ironically one reason to track security issues separately is because of how easy it is to accidentally conflate public and private information - which is exactly what I just did. I've re-opened this ticket and it will remain public.

            Unfortunately I have no new status to share. 

            uǝq (Inactive) added a comment - - edited gregory.hoggarth , my sincere apologies. I was performing a cleanup of some old internal tickets and inadvertently moved this one as well. That's what I get for trying to rush. Ironically one reason to track security issues separately is because of how easy it is to accidentally conflate public and private information - which is exactly what I just did. I've re-opened this ticket and it will remain public. Unfortunately I have no new status to share. 

            Unfortunately this is now "Tracked Elsewhere" and the link provided to Ben is linking to a private internal tracker that I can't view.

            So I assume that when Jira is finally updated to remove this useful piece of functionality because you bizarrely consider font tags in HTML to be a security issue, it will be fully documented in the release notes for the affected version so that I will know ahead of time before I upgrade that you are going to break my customisations?

             

            Greg Hoggarth added a comment - Unfortunately this is now "Tracked Elsewhere" and the link provided to Ben is linking to a private internal tracker that I can't view. So I assume that when Jira is finally updated to remove this useful piece of functionality because you bizarrely consider font tags in HTML to be a security issue, it will be fully documented in the release notes for the affected version so that I will know ahead of time before I upgrade that you are going to break my customisations?  

            uǝq (Inactive) added a comment - https://hello.atlassian.net/browse/RM-11291

            How is it a security issue if a Jira administrator deliberately configures their system to use HTML on field descriptions?

            The only way I can see this being a security problem is if:
            1. You have a rogue Jira administrator
            2. Someone gains access through your network to become a Jira administrator

            Both 1 and 2 are far more serious problems than just HTML tags inside field descriptions.

            Or, in other words, I am making perfectly valid use of this myself, and it is in no way a security violation for my system. If you take this away in an upgrade, you will break my customisations.

            Meanwhile, there is a huge amount of other missing functionality that Atlassian has not bothered to implement in over 10 years. It boggles the mind that such a minor "security" issue as this which TAKES AWAY VALUE would get preference over far many other enhancements that would ADD VALUE to your product.

            Greg Hoggarth added a comment - How is it a security issue if a Jira administrator deliberately configures their system to use HTML on field descriptions? The only way I can see this being a security problem is if: 1. You have a rogue Jira administrator 2. Someone gains access through your network to become a Jira administrator Both 1 and 2 are far more serious problems than just HTML tags inside field descriptions. Or, in other words, I am making perfectly valid use of this myself, and it is in no way a security violation for my system. If you take this away in an upgrade, you will break my customisations. Meanwhile, there is a huge amount of other missing functionality that Atlassian has not bothered to implement in over 10 years. It boggles the mind that such a minor "security" issue as this which TAKES AWAY VALUE would get preference over far many other enhancements that would ADD VALUE to your product.

            gregory.hoggarth,

            It is a security issue and we want to protect your and other customers data.

            It has not been decided yet how we will fix the issue but we will surely try to apply the most painless solution available.

            Don't worry and stay tuned. We will provide more details here once decided.

            Best,
            Jacek Jaroczynski
            JIRA Bugmaster
            [Atlassian]

            Jacek Jaroczynski (Inactive) added a comment - gregory.hoggarth , It is a security issue and we want to protect your and other customers data. It has not been decided yet how we will fix the issue but we will surely try to apply the most painless solution available. Don't worry and stay tuned. We will provide more details here once decided. Best, Jacek Jaroczynski JIRA Bugmaster [Atlassian]

              drauf Daniel Rauf
              ohernandez@atlassian.com Oswaldo Hernandez (Inactive)
              Affected customers:
              17 This affects my team
              Watchers:
              28 Start watching this issue

                Created:
                Updated:
                Resolved: