Reversing Bytecode into Bounties: Uncovering Vulnerabilities in Jira and Confluence Plugins
Giuliana De Bellis (Security Testing Team · Atlassian), Jamal Hopwood (Product Security Team · Atlassian)
BSides Canberra VIII (2025) · Day 3 · Off-Main Track
Overview
In their BSides Canberra talk, "Reversing Bytecode into Bounties," Giuliana De Bellis and Jamal Hopwood from Atlassian delve into the often-overlooked security landscape of third-party plugins for Atlassian's Data Center (DC) products, Jira and Confluence. The presentation outlines Atlassian's journey in proactively identifying vulnerabilities within these critical extensions, which, despite not being owned by Atlassian, pose significant risks to their enterprise customers. De Bellis and Hopwood share a detailed, step-by-step methodology for how security researchers and bug bounty hunters can leverage white-box hacking techniques—specifically bytecode decompilation and static analysis—to uncover high-impact vulnerabilities.

Key moments
- 2:19 Why Atlassian started pentesting third-party plugins
- 5:40 High success rate and bug bounty earnings potential
- 10:50 Decompiling JARs: script and choosing two tools
- 18:50 Tracing an XXE vulnerability through decompiled code
- 26:10 Setting up a local environment to test plugins
- 32:40 Atlassian's app security efforts and bounty programs
- 40:20 Candid assessment of marketplace plugin security posture
Reversing Bytecode into Bounties: Uncovering Vulnerabilities in Jira and Confluence Plugins
Speakers: Giuliana De Bellis (Security Testing Team, Atlassian), Jamal Hopwood (Product Security Team, Atlassian)
Conference: BSides Canberra
YouTube: https://www.youtube.com/watch?v=wgCv-ZtOYaA
Overview
In their BSides Canberra talk, "Reversing Bytecode into Bounties," Giuliana De Bellis and Jamal Hopwood from Atlassian delve into the often-overlooked security landscape of third-party plugins for Atlassian's Data Center (DC) products, Jira and Confluence. The presentation outlines Atlassian's journey in proactively identifying vulnerabilities within these critical extensions, which, despite not being owned by Atlassian, pose significant risks to their enterprise customers. De Bellis and Hopwood share a detailed, step-by-step methodology for how security researchers and bug bounty hunters can leverage white-box hacking techniques—specifically bytecode decompilation and static analysis—to uncover high-impact vulnerabilities.
The talk highlights a crucial security challenge faced by platform providers: how to ensure the security of an ecosystem built on third-party code. Atlassian's experience, driven by actual customer compromises, reveals a high prevalence of severe vulnerabilities in these plugins. By demystifying the process of reversing Java JAR files (Java Archives) into readable source code, the speakers empower the audience with practical skills to contribute to a safer software supply chain. Their insights are particularly valuable for those looking to engage in bug bounty programs, offering a lucrative pathway to discovering vulnerabilities that remain largely unaddressed.
The methodology presented is not just theoretical; it’s a proven framework that Atlassian's internal teams used to find 18 vulnerabilities, including 13 high and critical findings, across just 20 of the riskiest Data Center plugins. This talk serves as both a cautionary tale about the inherent risks of tightly integrated third-party extensions and an enablement guide for security professionals to proactively address these issues, turning technical analysis into tangible security improvements and financial rewards.
Background
▶ Watch: Why Atlassian started pentesting third-party plugins (2:19)
Atlassian, a major software company, provides widely used products like Confluence (an online collaboration tool) and Jira (a task and project tracking system). These products are offered in two primary deployment models: Cloud, which is hosted and managed by Atlassian in modern, sandboxed environments, and Data Center (DC), the on-premise versions that customers install and run on their own infrastructure. The focus of this talk is squarely on the Data Center products and their associated plugins, which represent an older, more deeply integrated architecture.
Plugins for Atlassian’s DC products are downloaded from the Atlassian Marketplace. Unlike modern cloud apps that often run in isolated environments, DC plugins are essentially Java JAR files that "plug directly into the existing code of the product." This deep integration means they reside on the same host and often share the exact same database as the core Jira or Confluence instance. This design choice, initially made to foster extensibility and customizability, inadvertently creates a massive and risky attack surface. Third-party plugins, written by external vendors, wield significant power within the Atlassian ecosystem, making them a prime target for attackers.
Over the years, Atlassian experienced several incidents where compromises of third-party DC apps led to the compromise of large enterprise customers running Jira and Confluence Data Center. This prompted a critical internal initiative, dubbed "Too Big to Fail." Atlassian's internal security testing team, accustomed to white-box testing their own code, faced a new challenge: how to effectively pentest code they didn't own. The project involved pentesting approximately 20 of the riskiest DC plugins, selected based on factors like high install counts and adoption by large enterprise customers. The results were stark: in just three months, the team identified 18 vulnerabilities, with 13 classified as high or critical severity. This demonstrated the significant security posture gap in the marketplace and underscored the urgent need for a systematic approach to finding and remediating these issues.
Key Findings
▶ Watch: Decompiling JARs: script and choosing two tools (10:50)
The Atlassian internal security testing team's project, "Too Big to Fail," yielded several critical findings that not only validated the necessity of their work but also exposed significant opportunities for external security researchers.
Firstly, the vulnerability density in Data Center plugins was remarkably high. Across the 20 most risky plugins tested, 18 unique vulnerabilities were discovered, with 13 of these rated as high or critical severity. This averages out to almost one significant vulnerability per plugin, indicating a widespread issue within the third-party ecosystem. This high success rate suggests that the Atlassian DC Marketplace is a fertile ground for bug bounty hunters.
Secondly, a crucial technical discovery related to the inconsistency of Java decompilers. The team found that relying on a single decompiler was insufficient. They consistently used two different open-source Java decompilers, Procyon and CFR, because while generally consistent, they occasionally produced slightly different source code for the same bytecode. These subtle differences could lead to one decompiler revealing a vulnerable code path that another might obscure, highlighting the importance of using multiple tools for comprehensive analysis.
Thirdly, the project confirmed that common web vulnerabilities, such as XML External Entity (XXE) injection, were prevalent due to a lack of proper security configurations. The talk specifically demonstrated an XXE vulnerability stemming from improper DocumentBuilderFactory configuration, underscoring that fundamental security practices were often overlooked by third-party developers. Beyond XXE, the speakers also noted issues like inconsistent authorization annotations and client-side license validation, which could lead to unauthorized access to premium features or sensitive data.
Finally, the project demonstrated the economic viability of bug bounty hunting in this domain. The 18 vulnerabilities found were estimated to be worth approximately $20,000 USD over three months if submitted to public bug bounty programs. This financial incentive, coupled with the ease of access to these private programs, makes the Atlassian DC plugin ecosystem a compelling target for security researchers.
Technical Deep Dive
▶ Watch: Tracing an XXE vulnerability through decompiled code (18:50)
The core of the Atlassian team's success in uncovering vulnerabilities lies in their structured, white-box hacking methodology, which transforms opaque bytecode into actionable security insights.
Choosing a Target
The initial step involves selecting a promising plugin from the Atlassian Marketplace. Key criteria include:
- High Install Count: Plugins with tens of thousands of installations (e.g., ScriptRunner for Jira, X-ray Test Management for Jira) indicate widespread usage and thus a larger potential impact for any discovered vulnerability.
- Data Center Compatibility: Ensure the plugin is specifically for Data Center, as these are the focus of the talk and present greater integration risks.
- Powerful Functionality: Plugins that allow arbitrary code execution, integration with pipelines, or extensive data manipulation often have a larger and more complex attack surface.
- Bug Bounty Participation: Crucially, verify that the plugin is part of a bug bounty program to ensure compensation for findings.
Once a target is chosen, the plugin's JAR file can be downloaded directly from its Marketplace listing.
Decompiling JAR Files
A JAR file is essentially a Java archive, which is itself a standard ZIP file containing compiled Java class files (bytecode), metadata, and other resources. The first step in white-box analysis is to unzip the JAR file. This reveals the binary class files, which are unreadable in their raw form.
To convert this bytecode back into human-readable Java source code, a decompiler is required. The Atlassian team developed a custom Python script to automate this process, utilizing two open-source Java decompilers: Procyon and CFR. The script is designed to:
- Identify all JAR files in a given directory.
- Unzip each JAR file to extract metadata and resources.
- Run both Procyon and CFR on each JAR file, saving the decompiled output from both tools. This dual-decompiler approach is vital due to observed inconsistencies between decompilers, where one might reveal a vulnerability that the other obscures.
- Handle OBR files (OSGi Bundle Repository), which are essentially JAR files containing other JAR files, by recursively unzipping and decompiling their contents.
The output of this process is a directory structure containing the unzipped JAR's contents (including important metadata like Atlassian-plugin.xml) and separate folders for the source code decompiled by Procyon and CFR. For complex plugins like ScriptRunner, this can result in a massive directory tree, as the JAR includes all third-party libraries (e.g., Jackson, JSON, Jsoup) required for the plugin to run.
Code Review and Static Analysis (SAST)
With the source code available, the next phase is to identify potential vulnerabilities. The primary tool used for Static Analysis Security Testing (SAST) is Semgrep, configured with its standard Java rule set. While other tools like Smap or even simple grep commands can be used, Semgrep's ability to incorporate custom rules makes it highly adaptable for recurring patterns of vulnerabilities.
Semgrep scans the decompiled source code and outputs potential findings, typically indicating the vulnerable file path, the suspected vulnerability type, and the exact line of code. For instance, a finding might point to an XXE (XML External Entity) vulnerability within SpreadsheetServiceImplementation.java.
XXE Vulnerability Example
The talk uses an XXE vulnerability in a demo plugin, "Spreadsheets for Jira," to illustrate the analysis process.
- XML Structure: XML files allow for custom tags and declarations, including Document Type Definitions (DTDs) which can define entities.
- Malicious XML: An attacker can define an external entity that attempts to load a local file, such as
file:///etc/passwd, and then reference this entity within the XML content.
- Vulnerable Code: In Java, XXE often arises when the
DocumentBuilderFactoryis not securely configured. Specifically, the absence of settings likefactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);,factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);, andfactory.setFeature("http://xml.org/sax/features/external-general-entities", false);allows the XML parser to process external entities, making it susceptible to XXE.
Source-to-Sink Analysis
Once a potential vulnerability is identified by SAST, a source-to-sink analysis is performed to confirm exploitability.
- Identify Vulnerable Method: Start with the method flagged by Semgrep, e.g.,
processSpreadsheetXMLinSpreadsheetServiceImplementation.java. - Trace Usage: Search the codebase for where
processSpreadsheetXMLis called. In the demo, it's called fromSpreadsheetResource.java. - Identify REST Endpoint:
SpreadsheetResource.javais typically found in arestdirectory, indicating it defines a REST API endpoint. The code reveals a/processXMLendpoint with aPOSTmethod. - Determine Full API Path: For Atlassian DC plugins, the full REST API path is constructed using information from the
Atlassian-plugin.xmlmetadata file. This file contains an annotation that defines the root path, version, and package for the plugin's REST APIs. For the demo, an entry like<rest path="spreadsheet" version="1.0" .../>combined with the endpoint/processXMLand the standard Jira REST prefix results in a full path likehttp://localhost:2990/jira/rest/spreadsheet/1.0/processXML.
Other Tips for Finding Bugs
- Authorization Annotations: Atlassian provides specific annotations for access control. Consistent and correct use of these annotations (or their absence) can quickly reveal authorization bypasses. If an app rarely uses them, it's a strong indicator of potential issues.
- HTML Encoding: By default, HTML encoding is enabled. However, developers can explicitly disable it using the
@DisableHtmlEscapingannotation. The presence of this annotation, especially in output-generating functions, is a red flag for potential Cross-Site Scripting (XSS) vulnerabilities. - Client-Side License Validation: Some plugins implement license checks only on the client-side (e.g., graying out buttons). If the corresponding REST API endpoints for premium features are not protected server-side, attackers can bypass license restrictions by directly calling the API.
Demo / Proof of Concept
▶ Watch: Atlassian's app security efforts and bounty programs (32:40)
Demonstrating the exploitability of a discovered vulnerability is crucial for bug bounty submissions. The Atlassian SDK is an indispensable tool for this purpose, enabling researchers to quickly set up local instances of Jira or Confluence Data Center.
Setting up the Environment
- For the Demo Vulnerable Plugin:
- Clone the provided GitHub repository for the "Spreadsheets for Jira" plugin.
- Navigate to the plugin directory and run
atlas run. This command automatically downloads Jira DC, pre-installs the demo plugin, and starts the instance onlocalhost:2990/jira. This setup is designed for immediate testing.
- For Any Marketplace Plugin:
- Download the plugin's JAR file from the Atlassian Marketplace.
- Note the specific Jira/Confluence DC version the plugin is designed for.
- Use the SDK command:
atlas run-standalone --product jira --version {version}(e.g.,--version 8.20.10). This downloads the specified product version and starts it without any pre-installed plugins. - Access the instance at
localhost:2990/jiraand log in with defaultadmin:admincredentials. - Navigate to the "Manage apps" section (cog icon -> Manage apps).
- Click "Upload app" and upload the downloaded JAR file. The plugin will then appear in the list of installed apps.
Exploiting the XXE Vulnerability
Once the plugin is installed and running, the XXE vulnerability can be demonstrated:
- Via the UI: Many plugins offer a configuration or interaction interface. For the demo plugin, navigating to its functionality (e.g., "Load Spreadsheets" -> "Process XML") allows for uploading an XML file. Uploading a malicious XML file (containing the
<!ENTITY xxe SYSTEM "file:///etc/passwd">declaration) will cause the server to process it and display the contents of/etc/passwdin the UI.
- Via cURL (REST API): This method directly targets the discovered REST API endpoint, bypassing any UI restrictions.
- Construct a cURL command using the full API path identified during source-to-sink analysis (e.g.,
http://localhost:2990/jira/rest/spreadsheet/1.0/processXML). - Include authentication credentials (
-u admin:admin). - Specify the content type as
application/xml(-H "Content-Type: application/xml"). - Provide the malicious XML content from a file (
--data @malicious.xml).
A sample cURL command would look like:
Executing this command will directly return the contents of /etc/passwd, serving as a clear proof of concept for the XXE vulnerability. This white-box approach offers significant advantages over black-box testing, providing direct access to source code for precise vulnerability identification and exploitation.
Defensive Implications
▶ Watch: Candid assessment of marketplace plugin security posture (40:20)
The insights from Atlassian's "Too Big to Fail" project have significant implications for both Atlassian as a platform provider and for customers and developers interacting with the Atlassian ecosystem.
For Atlassian (Platform Provider)
Atlassian is actively working to enhance the security posture of its marketplace:
- App Scanner Deployment: An automated app scanner has been deployed across all Data Center plugins. This scanner downloads and decompiles JAR files (mirroring the described methodology), then runs SAST scanners to identify secrets, known vulnerabilities in the app's source code, and vulnerabilities in third-party packages. Crucially, it also scans for malicious activity, such as attempts to exfiltrate sensitive files or deploy ransomware.
- Cloud Migration Advocacy: Atlassian strongly encourages customers to migrate to their cloud offerings. Cloud apps run in heavily sandboxed environments (e.g., Forge apps leveraging AWS Lambdas) with significantly more modern and secure architectures. In cloud, Atlassian runs the code itself, providing a more controlled and secure execution environment for third-party apps.
- "Cloud Fortified" Badge: This badge is awarded to marketplace apps that meet specific security criteria, including participation in private bug bounty programs, adherence to vulnerability patching SLOs (Service Level Objectives), and implementation of baseline security requirements like CSRF (Cross-Site Request Forgery) protections. This badge aims to provide customers with a clear indicator of a vendor's commitment to security.
For Customers
Customers using Jira and Confluence Data Center should be aware of the inherent risks:
- Plugin Scrutiny: Exercise caution when installing third-party plugins. While Atlassian is improving its scanning, the tight coupling of DC plugins means they can pose significant risks if vulnerable.
- Consider Cloud: For organizations prioritizing security and ease of management, migrating to Atlassian's cloud products is generally recommended due to their more secure, sandboxed app environments.
- Look for "Cloud Fortified": When choosing marketplace apps, prioritize those with the "Cloud Fortified" badge as an indicator of enhanced security practices from the vendor.
For Developers (Third-Party Plugin Vendors)
The findings highlight common pitfalls that plugin developers should address:
- Secure XML Parsing: Always configure
DocumentBuilderFactoryand other XML parsers to explicitly disallow DTDs, external general entities, and external parameter entities to prevent XXE vulnerabilities. Enable secure processing features. - Server-Side Authorization: Implement robust server-side authorization checks for all REST API endpoints. Do not rely solely on client-side validation for access control or feature entitlement. Utilize Atlassian's provided authorization annotations consistently and correctly.
- HTML Encoding: Be judicious with disabling HTML encoding. Only use the
@DisableHtmlEscapingannotation when absolutely necessary and ensure that any user-controlled input rendered without encoding is rigorously sanitized to prevent XSS. - Secure Coding Practices: Adopt general secure coding practices, including regular security training, dependency scanning for third-party libraries, and static analysis of their own codebase.
Key Takeaways
- High Vulnerability Potential in DC Plugins: Atlassian Data Center plugins, due to their deep integration and third-party development, present a significant and often overlooked attack surface with a high prevalence of critical vulnerabilities.
- Bytecode Reversing is Effective: White-box hacking techniques, specifically decompiling Java JAR files into readable source code using tools like Procyon and CFR, are highly effective for uncovering vulnerabilities in these compiled applications.
- SAST and Source-to-Sink Analysis are Key: Static analysis tools like Semgrep, combined with meticulous manual source-to-sink tracing, provide a powerful methodology for identifying and confirming exploitability of vulnerabilities such as XXE injection.
- Atlassian SDK for Easy Setup: The Atlassian SDK simplifies the process of spinning up local Jira or Confluence Data Center instances, making it accessible for security researchers to test plugins and develop robust proofs of concept.
- Bug Bounty Opportunities Abound: The Atlassian Marketplace, particularly its private bug bounty programs for DC plugins, offers substantial opportunities for security researchers to find "low-hanging fruit" and earn significant rewards due to fewer prior submissions.
- Platform Security is Evolving: Atlassian is actively improving its marketplace security through automated scanning, advocating for migration to more secure cloud environments, and promoting security best practices among vendors via initiatives like the "Cloud Fortified" badge.
About the Speaker(s)
Giuliana De Bellis is a member of the Security Testing Team at Atlassian. Her role involves proactively identifying security vulnerabilities within Atlassian's diverse product ecosystem.
Jamal Hopwood is part of the Product Security Team at Atlassian. He previously spent a period with the Security Testing Team, contributing to the "Reversing Bytecode into Bounties" project, which formed the basis of this talk. Together, they bring a wealth of practical experience in product security and vulnerability research to the discussion.