Skip to content
XSS Disclosed report Intermediate

Stored XSS in Value sorting metadata allows a Jira Viewer to execute JavaScript in an administrator's Dependency Map frame

A Jira Viewer could store an extra tooltip property in a map's Value sorting configuration, and the tooltip component rendered that value as raw HTML. When another user opened Value sorting and hovered the affected criterion, injected markup could run JavaScript in the Dependency Map frame with same-origin access.

jacob0224 Follow

Originally disclosed on Bugcrowd

Bounty$900 High View original
  • Accepted in 7 days
  • Fixed in 25 days
  • Disclosed after 34 days

Summary by FindOut InfoVis AB - Marketplace Bug Bounty Program

Dependency Map for Jira Cloud prior to 3.2.13 allowed a Jira Viewer to store an extra tooltip property in a map’s Value sorting configuration. When another user opened Value sorting and hovered that criterion, the value was rendered as HTML, which could execute JavaScript in the Dependency Map frame. 3.2.13 keeps only expected sort fields and builds tooltips from trusted descriptors. Retesting confirmed the payload no longer reaches the DOM or executes.

Summary by jacob0224

Dependency Map for Jira 3.2.11 allowed a Jira Viewer to store an attacker-controlled tooltip property inside a map’s fieldSortOrder configuration. When another user opened Value sorting and hovered over the affected criterion, the value was rendered as raw HTML by the tooltip component. An injected iframe srcdoc could load JavaScript from an attacker-controlled Atlassian Object Store URL permitted by the application’s CSP, resulting in stored XSS with same-origin access to the Dependency Map frame. Version 3.2.13 strips untrusted properties, permits only expected sorting fields such as id and asc, and generates tooltip content from trusted descriptors. Retesting confirmed that the payload no longer reaches the DOM or executes.

The original report as published on Bugcrowd, by FindOut InfoVis AB - Marketplace Bug Bounty Program. Images and videos are our own copies; raw HTML is shown as text. View it on Bugcrowd.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Dependency Map for Jira is a Jira Cloud app listed on the Atlassian Marketplace. The affected listing is the Link Viewer hosting variant, and the report concerns the Cloud build of the app. The feature at the centre of the finding is Value sorting: a per-map configuration that decides the order in which values are presented, stored in a map's fieldSortOrder configuration.

Each sorting criterion carries metadata that the UI uses to build a tooltip. When a user opens Value sorting and hovers a criterion, the tooltip component renders that metadata. The report shows that this rendering path treated part of the stored configuration as HTML rather than as text.

Setup

The report describes two roles:

  1. A Jira Viewer, the low-privileged account that configures the map's Value sorting.
  2. Another user who opens Value sorting and hovers the affected criterion, which is where the payload is rendered.

The vulnerable version named in the report is Dependency Map for Jira 3.2.11. The fixed version is 3.2.13. No other tooling, headers or request captures are included in the report.

Finding it

The researcher noticed that a Jira Viewer could store an extra, attacker-controlled tooltip property inside a map's fieldSortOrder configuration. The configuration is meant to hold sorting fields, but the application accepted additional properties alongside them and persisted them.

The second observation was on the rendering side: when another user opened Value sorting and hovered over the affected criterion, the tooltip component rendered the stored value as raw HTML. A stored string that is interpreted as markup, in a frame that other users load, is the shape of a stored cross-site scripting issue, so the researcher pursued it.

Exploitation

Step 1: store the extra tooltip property

As a Jira Viewer, the researcher added an attacker-controlled tooltip property to a map's fieldSortOrder configuration. The report does not include the request that performed this write, so the exact endpoint, method and body are not reproduced here. What matters is that the application accepted a property it did not expect and persisted it with the map.

Step 2: get the value rendered as HTML

When another user opened Value sorting and hovered the affected criterion, the tooltip component rendered the stored value as raw HTML instead of text. That is the point where the stored string becomes markup in the Dependency Map frame.

Step 3: load script through an iframe srcdoc

The payload used an injected iframe srcdoc to load JavaScript from an attacker-controlled Atlassian Object Store URL. The application's Content Security Policy permitted that origin, so the script loaded and ran. The report does not reproduce the payload string itself.

Because the script executes inside the Dependency Map frame, it runs with same-origin access to that frame. The result is stored XSS: the payload is saved once and fires for other users who trigger the tooltip.

Root cause

Two mistakes combine here.

  1. On the write path, the application did not restrict fieldSortOrder entries to the fields it expects. A Jira Viewer could add an arbitrary tooltip property, and it was stored.
  2. On the read path, the tooltip component rendered the stored value as raw HTML rather than as text, so the stored property became live markup.

The CSP did not stop the attack because it allowed the Atlassian Object Store origin the attacker used, so a script hosted there was permitted to load. The report does not describe any other defence that was in place.

Impact

A Jira Viewer, a low-privileged role, could store a payload in a map's Value sorting configuration. When another user opened Value sorting and hovered the affected criterion, JavaScript executed in the Dependency Map frame with same-origin access to it. The trigger condition is the hover on the affected criterion by another user. and the trigger condition is the hover on the affected criterion. The report does not state which actions the script performed once running, nor which data it could reach beyond same-origin access to the frame.

Fix

Version 3.2.13 changed both sides of the problem:

  1. It strips untrusted properties from the sorting configuration and permits only expected sorting fields such as id and asc.
  2. It generates tooltip content from trusted descriptors instead of rendering the stored value as HTML.

Retesting confirmed that the payload no longer reaches the DOM and no longer executes.

Variants to test

  1. Other per-map or per-view configuration objects that accept free-form properties. A positive result is that an unexpected property survives a save and reload.
  2. Any tooltip, label or description rendered from stored configuration. A positive result is that a stored markup string appears as an element in the DOM rather than as text.
  3. CSP allowlists that include a user-writable or attacker-controllable origin, such as object storage. A positive result is that a script from that origin loads inside the application frame.
  4. iframe srcdoc sinks in components that build markup from configuration. A positive result is that the frame renders and its script runs under the application's policy.
  5. Low-privileged write paths into configuration that is later shown to higher-privileged users. A positive result is that a Viewer-level account can plant content that an administrator's session renders.

Hunting notes

This kind of bug tends to hide in configuration surfaces where the schema is loosely enforced on write and the display layer builds markup from stored values. Sorting metadata, tooltips, column labels and view settings are typical candidates, especially when a low-privileged role can edit them and a higher-privileged role views the result.

During recon, the signals worth following are: configuration objects that accept extra properties without complaint, tooltip components that render stored strings as HTML, and CSP policies that allow origins where an attacker can host content. The combination of a low-privilege write and a high-privilege render is what turns a stored string into a meaningful finding.

To show impact, the researcher demonstrated the full chain: a Viewer stored the property, another user's hover triggered rendering, and the script executed in the Dependency Map frame with same-origin access. The fix and the retest confirming that the payload no longer reaches the DOM or executes close the loop.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 16 min read.

What happened, in plain words

Dependency Map for Jira is a small add-on (an "app") that you install into Jira Cloud, the online version of Atlassian's Jira project-tracking tool. Jira itself is where teams keep their tickets, tasks and bugs. The app adds a visual map of how different items depend on each other. The version in this report is the one listed on the Atlassian Marketplace, Atlassian's app store, under the "Link Viewer" hosting variant, and the report is about the Cloud build.

Inside that app there is a feature called Value sorting. A map can be told in which order to show its values, and that setting is saved with the map in something called fieldSortOrder. Each sorting rule also carries a little bit of extra information that the app uses to build a tooltip, the small pop-up box you see when you rest your mouse pointer on something.

The problem was twofold. First, a user with the lowest level of access, a Jira Viewer, could sneak an extra property into that sorting configuration, and the app saved it without complaint. Second, when another user opened Value sorting and hovered over the affected rule, the app took that saved value and treated it as HTML, the language web pages are written in, instead of as plain text. Anything written in HTML can include instructions that make the browser run JavaScript, the programming language of web pages. So a saved string could turn into running code inside the Dependency Map frame, the rectangular area of the page where the app draws its map.

The researcher used an iframe (an embedded mini web page inside a page) with a srcdoc attribute (which lets you put the mini page's content directly in the attribute) to load JavaScript from a file hosted on Atlassian Object Store, a storage service Atlassian provides. The app's Content Security Policy allowed that storage location, so the browser agreed to load and run the script. Because the script ran inside the Dependency Map frame, it had the same rights as that frame, which is what "same-origin access" means.

This class of bug is called stored cross-site scripting, usually shortened to stored XSS. "Stored" means the malicious content is saved on the server once and then shown to other people later. "Cross-site scripting" means an attacker gets their own code to run inside someone else's session on the site.

Version 3.2.13 fixed it: the app now throws away unexpected properties, keeps only the sorting fields it expects, such as id and asc, and builds tooltips from information it trusts. Retesting confirmed the payload no longer reaches the page and no longer runs.

Context

Dependency Map for Jira is a Jira Cloud app listed on the Atlassian Marketplace. The affected listing is the Link Viewer hosting variant, and the report concerns the Cloud build of the app. The feature at the centre of the finding is Value sorting: a per-map configuration that decides the order in which values are presented, stored in a map's fieldSortOrder configuration.

A few words first, because the rest of the article leans on them:

  • Jira Cloud: Atlassian's online service for tracking work items such as tickets and tasks. You use it in a browser; there is nothing to install on your own computer.
  • App / add-on: an extra piece of software that plugs into Jira and adds features. You install it from the Atlassian Marketplace, the app store for Atlassian products.
  • Configuration: settings that are saved and reused. Think of the preferences on your phone: you set them once and they apply every time you open the app.
  • fieldSortOrder: the name of the saved setting that holds the sorting rules for a map. The name is written in code style because it is a literal key, a label the software uses to find that setting.

Each sorting criterion carries metadata that the UI uses to build a tooltip. Metadata is simply data about data: here, extra details attached to a sorting rule, such as a description shown in the pop-up. The UI, the user interface, is the part of the app you see and click. When a user opens Value sorting and hovers a criterion, the tooltip component renders that metadata. "Renders" means the browser turns the stored data into what you see on screen. The report shows that this rendering path treated part of the stored configuration as HTML rather than as text.

Why does that distinction matter? If a value is treated as text, the browser shows the characters exactly as typed, the way a note in a text editor shows them. If the same value is treated as HTML, the browser reads it as instructions and builds page elements from it. A string that looks harmless as text can become an active element when read as HTML. That gap is where this bug lives.

Setup

The report describes two roles:

  1. A Jira Viewer, the low-privileged account that configures the map's Value sorting.
  2. Another user who opens Value sorting and hovers the affected criterion, which is where the payload is rendered.

A role is a bundle of permissions. Jira grants permissions such as viewing content or administering settings. A low-privileged account should not be able to affect what another user sees, and this report breaks that expectation.

The payload is the piece of content the attacker plants, the thing that is supposed to do something when it is later displayed. In this case it is a stored string that the app will read as HTML.

The vulnerable version named in the report is Dependency Map for Jira 3.2.11. The fixed version is 3.2.13. No other tooling, headers or request captures are included in the report.

Finding it

The researcher noticed that a Jira Viewer could store an extra, attacker-controlled tooltip property inside a map's fieldSortOrder configuration. The configuration is meant to hold sorting fields, but the application accepted additional properties alongside them and persisted them.

"Persisted" means saved on the server so it survives a page reload and is seen by other users. "Attacker-controlled" means the attacker decides the content. "Property" here means one named entry inside a larger saved object, like one line in a form: the form expects certain lines, but the software did not check for extra ones.

The second observation was on the rendering side: when another user opened Value sorting and hovered over the affected criterion, the tooltip component rendered the stored value as raw HTML. "Raw HTML" means the browser was handed the string as markup, not as text to display literally. A stored string that is interpreted as markup, in a frame that other users load, is the shape of a stored cross-site scripting issue, so the researcher pursued it.

Why is that shape suspicious? Two conditions line up. One person can write the content, and a different person's browser reads it back as instructions. When both are true, the writer can influence what runs in the reader's session. That is the definition of stored XSS, and it is worth following whenever you see it.

Exploitation

Step 1: store the extra tooltip property

As a Jira Viewer, the researcher added an attacker-controlled tooltip property to a map's fieldSortOrder configuration. The report does not include the request that performed this write, so the exact endpoint, method and body are not reproduced here. What matters is that the application accepted a property it did not expect and persisted it with the map.

An endpoint is the address on the server that a request is sent to, like a specific counter in a large office. The method is the type of request, for example "save this" versus "give me that". The body is the content of the request, the data being sent. None of these appear in the report for this step, so there is nothing to copy here.

The important lesson is the missing check. When software saves a settings object, it should compare what arrived against the list of fields it expects and drop anything else. Here it did not, so an unexpected property went in and stayed in. This is often called a loose schema: the software has a rough idea of the shape of the data but does not enforce it strictly.

Step 2: get the value rendered as HTML

When another user opened Value sorting and hovered the affected criterion, the tooltip component rendered the stored value as raw HTML instead of text. That is the point where the stored string becomes markup in the Dependency Map frame.

A frame is an area of a web page that holds its own document, like a picture frame on a wall holding a different picture. The Dependency Map draws itself in such a frame. When the tooltip was built, the app inserted the saved value into the page as markup. The browser, doing what it is told, read the value as instructions rather than as characters to display.

This is the second half of the bug. Even if the write side had been loose, nothing would have happened if the display side had shown the value as text. Both halves had to be wrong at the same time.

Step 3: load script through an iframe srcdoc

The payload used an injected iframe srcdoc to load JavaScript from an attacker-controlled Atlassian Object Store URL. The application's Content Security Policy permitted that origin, so the script loaded and ran. The report does not reproduce the payload string itself.

Let us unpack that sentence piece by piece, because it contains several ideas at once.

  • iframe: an HTML element that embeds another web page inside the current one. Websites use it for maps, videos and adverts.
  • srcdoc: an attribute of iframe that lets you supply the embedded page's content directly, as a string, instead of pointing at a separate address. It is like writing a note on the back of the picture instead of fetching a new picture from the storeroom.
  • JavaScript: the language browsers run to make pages interactive. If an attacker's JavaScript runs in your page, it can do many of the things the page itself can do.
  • URL: a web address, the thing you type in the address bar.
  • Atlassian Object Store: a storage service Atlassian provides for holding files. The attacker could put a file there and get a URL for it.
  • Origin: the combination of scheme, host and port that a browser uses to decide which pages belong together. Pages from the same origin can generally read each other's data; pages from different origins cannot. This is a core safety rule of the web, called the same-origin policy.
  • Content Security Policy (CSP): a set of rules a website sends to the browser saying which sources of script and other content are allowed. It is like a guest list at a door: if your name is on it, you get in. Here the guest list included the Object Store, so a script hosted there was let in.

So the chain was: the stored value became an iframe with srcdoc, the embedded content pulled JavaScript from a URL on the Object Store, and the CSP allowed that URL. The browser loaded the script and ran it.

Because the script executes inside the Dependency Map frame, it runs with same-origin access to that frame. The result is stored XSS: the payload is saved once and fires for other users who trigger the tooltip.

"Same-origin access" means the script is treated as part of the frame, not as an outsider. It can read and act on what the frame can read and act on. That is why the origin rule matters so much: the CSP let the script in, and once in, the script was not a stranger.

Root cause

Two mistakes combine here.

  1. On the write path, the application did not restrict fieldSortOrder entries to the fields it expects. A Jira Viewer could add an arbitrary tooltip property, and it was stored.
  2. On the read path, the tooltip component rendered the stored value as raw HTML rather than as text, so the stored property became live markup.

"Write path" means the route data takes when it is saved. "Read path" means the route it takes when it is displayed. A useful comparison is a shared notebook: if anyone can write extra pages into it (loose write path) and the reader treats every page as official instructions (unsafe read path), then one careless writer can direct everyone who reads the notebook. Fixing either side alone would have been enough to stop this attack, but the proper fix addresses both.

The CSP did not stop the attack because it allowed the Atlassian Object Store origin the attacker used, so a script hosted there was permitted to load. The report does not describe any other defence that was in place.

This is a common misunderstanding about CSP. It is not a magic shield; it is a list of allowed sources. If an attacker can host content on a source that is on the list, the policy offers no protection against that content. Object storage is a typical example, because many services let users upload files and get public URLs for them.

Impact

A Jira Viewer, a low-privileged role, could store a payload in a map's Value sorting configuration. When another user opened Value sorting and hovered the affected criterion, JavaScript executed in the Dependency Map frame with same-origin access to it. The trigger condition is the hover on the affected criterion by another user. and the trigger condition is the hover on the affected criterion. The report does not state which actions the script performed once running, nor which data it could reach beyond same-origin access to the frame.

Why does the low-privilege write matter? In a healthy system, a Viewer's actions should not be able to change what another user sees. Here they could. The trigger was modest, a mouse hover, which is something people do constantly without thinking. The report does not go further than that about what the script did, so we should not guess.

Fix

Version 3.2.13 changed both sides of the problem:

  1. It strips untrusted properties from the sorting configuration and permits only expected sorting fields such as id and asc.
  2. It generates tooltip content from trusted descriptors instead of rendering the stored value as HTML.

"Strips" means removes before saving. "Trusted descriptors" means the app builds the tooltip from its own known list of fields rather than from whatever text happened to be stored. In everyday terms, the notebook now refuses extra pages, and the reader only follows instructions printed by the office, not anything a visitor scribbled in the margin.

Retesting confirmed that the payload no longer reaches the DOM and no longer executes.

The DOM (Document Object Model) is the browser's live model of the page: every element you see, and some you do not, exists as an object in it. "No longer reaches the DOM" means the stored string never becomes an element on the page, so there is nothing for the browser to run.

Variants to test

If you want to look for similar bugs yourself, these are the directions the report suggests. Each one comes with what a positive result would look like, so you know when you have found something.

  1. Other per-map or per-view configuration objects that accept free-form properties. A positive result is that an unexpected property survives a save and reload.
  2. Any tooltip, label or description rendered from stored configuration. A positive result is that a stored markup string appears as an element in the DOM rather than as text.
  3. CSP allowlists that include a user-writable or attacker-controllable origin, such as object storage. A positive result is that a script from that origin loads inside the application frame.
  4. iframe srcdoc sinks in components that build markup from configuration. A positive result is that the frame renders and its script runs under the application's policy.
  5. Low-privileged write paths into configuration that is later shown to higher-privileged users. A positive result is that a Viewer-level account can plant content that an administrator's session renders.

A sink is the place in the code where data finally gets used in a way that matters, for example where a string is inserted into the page as HTML. The opposite idea is a source, where data enters the application. Finding a source that a low-privileged user controls and a sink that a high-privileged user reaches is the classic recipe for this kind of bug.

Hunting notes

This kind of bug tends to hide in configuration surfaces where the schema is loosely enforced on write and the display layer builds markup from stored values. Sorting metadata, tooltips, column labels and view settings are typical candidates, especially when a low-privileged role can edit them and a higher-privileged role views the result.

During recon, the signals worth following are: configuration objects that accept extra properties without complaint, tooltip components that render stored strings as HTML, and CSP policies that allow origins where an attacker can host content. The combination of a low-privilege write and a high-privilege render is what turns a stored string into a meaningful finding.

Recon, short for reconnaissance, means the exploratory phase where you learn how an application is built and where its weak points might be, before trying anything. The signals above are clues: an extra property that survives a save, a tooltip that shows your text as an element, a CSP that trusts a place where anyone can upload. Any one of them is worth a closer look; together they are a strong lead.

To show impact, the researcher demonstrated the full chain: a Viewer stored the property, another user's hover triggered rendering, and the script executed in the Dependency Map frame with same-origin access. The fix and the retest confirming that the payload no longer reaches the DOM or executes close the loop.

Glossary

  • App / add-on: extra software installed into a larger product to add features.
  • Atlassian Marketplace: Atlassian's app store, where add-ons for its products are listed.
  • Atlassian Object Store: Atlassian's storage service for holding files, reachable by URL.
  • Attacker-controlled: content whose value the attacker decides.
  • Body: the content of an HTTP request, the data being sent.
  • Configuration: saved settings that are reused.
  • Content Security Policy (CSP): rules a site sends to the browser listing which sources of script and other content are allowed.
  • Cross-site scripting (XSS): a bug where an attacker's code runs inside another user's session on a site.
  • DOM (Document Object Model): the browser's live model of the page's elements.
  • Endpoint: the server address a request is sent to.
  • fieldSortOrder: the saved setting holding a map's sorting rules.
  • Frame: an area of a page holding its own document, often an iframe.
  • HTML: the markup language web pages are written in.
  • iframe: an HTML element that embeds one web page inside another.
  • JavaScript: the programming language browsers run to make pages interactive.
  • Jira Cloud: Atlassian's online work-tracking service, used in a browser.
  • Jira Viewer: a low-privileged Jira account that can view content.
  • Metadata: data about data; here, extra details attached to a sorting rule.
  • Method: the type of an HTTP request, such as save or fetch.
  • Origin: scheme plus host plus port; the unit browsers use to decide which pages may read each other.
  • Payload: the content an attacker plants to achieve an effect when displayed.
  • Persisted: saved on the server so it survives reloads and is seen by others.
  • Property: one named entry inside a larger saved object.
  • Raw HTML: a string handed to the browser as markup rather than as text.
  • Recon: the exploratory phase of learning how an application is built.
  • Render: to turn stored data into what appears on screen.
  • Role: a bundle of permissions assigned to an account.
  • Same-origin access: the ability to read and act on a frame's content because the script is treated as part of that origin.
  • Same-origin policy: the browser rule that pages from different origins cannot generally read each other's data.
  • Schema: the expected shape and fields of a data object.
  • Sink: the place in code where data is finally used in a way that matters.
  • Source: the place where data enters an application.
  • srcdoc: an iframe attribute that supplies the embedded page's content directly as a string.
  • Stored XSS: XSS where the payload is saved on the server once and fires for other users later.
  • Strips: removes unwanted content before saving.
  • Tooltip: the small pop-up shown when the pointer rests on something.
  • Trusted descriptors: the app's own known field definitions, used to build content safely.
  • UI (user interface): the part of the software you see and interact with.
  • URL: a web address.
  • Value sorting: the feature that decides the order in which a map's values are shown.
  • Write path / read path: the route data takes when saved, and the route it takes when displayed.

More by jacob0224

View all

2 more disclosed reports, best first.

More from FindOut InfoVis AB - Marketplace Bug Bounty Program

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.