Finding Critical Bugs in Adobe Experience Manager

Adam Kues (Security Researcher · Assetnote), Dylan Pindur (Security Researcher · Assetnote)

BSides Canberra VIII (2025) · Day 1 · Main Track

Overview

Adobe Experience Manager (AEM) is a venerable and widely adopted content management system (CMS) with a history spanning two decades, fifteen of which have been under Adobe's stewardship. Despite its age, AEM remains immensely popular, powering an estimated 35,000 active websites globally, with a historical footprint exceeding 100,000 sites. Its extensive use by major enterprises, including prominent Australian brands like CBA, Westpac, Woolworths, Qantas, and Virgin Australia, underscores its critical role in the digital infrastructure of many organizations. This pervasive deployment makes AEM a prime target for security research, as any discovered vulnerabilities can have a far-reaching impact.

Watch on YouTube

Visual summary for Finding Critical Bugs in Adobe Experience Manager by Adam Kues, Dylan Pindur
Visual summary for Finding Critical Bugs in Adobe Experience Manager by Adam Kues, Dylan Pindur

Key moments

  1. 0:00 Introduction to AEM and talk overview
  2. 4:00 AEM architecture: Dispatcher, Publish, Author roles
  3. 8:00 Apache Sling and JCR: AEM's core data model
  4. 23:00 Multiple dispatcher bypasses, including WAF evasion
  5. 34:00 SSRF and XXE vulnerabilities found in AEM
  6. 39:00 Pre-authentication node write and read primitive
  7. 44:00 EL injection for complete AEM configuration leak
  8. 48:00 Hopgoblin tool and AEM patching status

Finding Critical Bugs in Adobe Experience Manager

Speakers: Adam Kues (Security Researcher, Assetnote); Dylan Pindur (Security Researcher, Assetnote)

Conference: BSides Canberra

YouTube: https://www.youtube.com/watch?v=3IRdkNv4E0c

Overview

Adobe Experience Manager (AEM) is a venerable and widely adopted content management system (CMS) with a history spanning two decades, fifteen of which have been under Adobe's stewardship. Despite its age, AEM remains immensely popular, powering an estimated 35,000 active websites globally, with a historical footprint exceeding 100,000 sites. Its extensive use by major enterprises, including prominent Australian brands like CBA, Westpac, Woolworths, Qantas, and Virgin Australia, underscores its critical role in the digital infrastructure of many organizations. This pervasive deployment makes AEM a prime target for security research, as any discovered vulnerabilities can have a far-reaching impact.

This talk, presented by Assetnote security researchers Dylan Pindur and Adam Kues, delves into their recent work uncovering several critical pre-authentication vulnerabilities in AEM. Their research was motivated by a noticeable decline in public security discourse surrounding AEM in recent years, despite its continued widespread use. The presentation aims to demystify AEM's complex internal architecture, providing a foundational understanding for penetration testers and auditors, before detailing the novel bypasses and exploitation techniques developed by the Assetnote team.

The core of their presentation highlights multiple pre-authentication vulnerabilities, including two dispatcher bypasses, an SSRF, a blind XXE, arbitrary node write capabilities, and critically, Expression Language (EL) injection that leads to the complete compromise and exfiltration of AEM's sensitive configuration secrets. The speakers emphasize that these findings, particularly the dispatcher bypasses, remain effective in the latest versions of AEM due to Adobe's classification of the dispatcher as a non-security component. This research not only provides invaluable insights for offensive security professionals but also serves as a crucial warning to organizations relying on AEM, particularly those managing on-premise deployments, about the persistent and exploitable attack surface.

Background

▶ Watch: Introduction to AEM and talk overview (0:00)

To understand the vulnerabilities in AEM, it's essential to grasp its underlying architecture and frameworks. AEM deployments typically feature a layered setup: requests first hit a load balancer, then a Dispatcher, followed by Publish instances, and finally Author instances.

The Dispatcher acts as a reverse proxy, often deployed as an Apache or IIS module. Its primary functions, according to Adobe, are caching and load balancing. Crucially, it includes a request filter that operates as a rudimentary Web Application Firewall (WAF). This filter, however, is limited to inspecting only the first line of an HTTP request—the path, method, query parameters, and protocol—and does not analyze headers or the request body. Adobe's official stance is that the Dispatcher is not a security-critical component, a perspective that has historically led to numerous bypasses.

Beneath the Dispatcher and AEM instances lies Apache Sling, the open-source Java web framework built specifically for AEM. Sling is characterized by its "resource-centric" design, where virtually everything—web pages, JSPs, images, Java servlets, and configuration—is treated as a resource. These resources primarily originate from either OSGi bundles (Java archives in a specific format) or, more commonly, from nodes stored in the Java Content Repository (JCR).

The JCR, specifically Apache Jackrabbit Oak in AEM's case, is the fundamental data store. It's a structured database organized as a tree of nodes, each possessing data and properties. While it conceptually resembles a file system with paths like /content/index.html, it is crucial to remember it's a database abstraction, not actual files on disk. The JCR stores all content, configuration settings (including potentially sensitive credentials), and even user password hashes. Although access control lists (ACLs) are in place to protect sensitive JCR nodes, their mere presence in the same data store as public content has historically presented security challenges.

Sling's request routing mechanism is notably complex. Unlike typical web frameworks with direct controller-to-path mappings, Sling employs a multi-step lookup. A URL is first parsed to extract a resource path, which Sling then uses to locate a corresponding resource (e.g., a JCR node or a servlet). If the initial lookup points to a JCR node, Sling then inspects the sling:resourceType property on that node to perform a secondary lookup, often resolving to a specific servlet or script responsible for handling the request. Servlets themselves are mapped in two primary ways: via a simple @Path annotation (direct URL mapping, often with fewer ACLs) or a @ResourceType annotation (requiring a JCR node lookup based on its resource type).

A critical area of concern for auditors is Sling's service resolvers. Methods like getServiceResourceResolver(), getAdministrativeResourceResolver(), and getResourceResolver(credentials) allow developers to temporarily switch the user context, typically to a service account with elevated privileges, to perform JCR operations (e.g., accessing configuration, writing content). If user-controlled input flows into these methods without proper validation, it can lead to privilege escalation or lateral movement, enabling an unauthenticated attacker to perform actions as a privileged service account.

The Assetnote research methodology involved a systematic approach, starting with easily accessible @Path annotated servlets for classic OWASP Top 10 vulnerabilities, moving to @ResourceType servlets, then dynamically executed JCR script files (HTML, Sitly, ESP, JSP, ECMA/JavaScript, and even raw Java files), and finally, a focused audit of all service resolver calls for potential misconfigurations. This comprehensive strategy was key to uncovering the deep-seated vulnerabilities detailed in the talk.

Key Findings

▶ Watch: Apache Sling and JCR: AEM's core data model (8:00)

The Assetnote researchers uncovered a suite of pre-authentication vulnerabilities in Adobe Experience Manager, demonstrating a significant attack surface that can be exploited without any user credentials. These findings highlight critical flaws in AEM's deployment, parsing, and internal logic.

The primary discoveries include:

  • Two Dispatcher Bypasses: Novel techniques to circumvent AEM's reverse proxy, enabling access to otherwise protected author-specific functionality and internal endpoints. Crucially, Adobe does not classify these as security vulnerabilities, meaning they often remain unpatched.
  • Server-Side Request Forgery (SSRF): A straightforward vulnerability allowing an unauthenticated attacker to force the AEM instance to make POST requests to arbitrary internal or external URLs, leaking internal network information.
  • Blind XML External Entity (XXE) Injection: Found within the CRX Package Manager's package validation process, this vulnerability (tied to the underlying Jackrabbit content repository) allows for out-of-band data exfiltration, though direct file reading is limited to the first line due to Java's modern protections.
  • Arbitrary Node Write (Pre-Authentication): A multi-stage exploit that leverages a misconfigured service resolver to allow an unauthenticated user to write arbitrary content and properties to specific JCR nodes within the /conf directory.
  • Expression Language (EL) Injection: By combining a dispatcher bypass with the arbitrary node write, attackers can inject and execute EL expressions within AEM. Although direct Remote Code Execution (RCE) is prevented by Adobe's restrictions, this vulnerability enables the complete exfiltration of all AEM configuration, including highly sensitive secrets like Azure private keys, API keys, certificates, and hashed administrator passwords.
  • Stored Cross-Site Scripting (XSS): While not the primary focus, the node write vulnerability also facilitates stored XSS, allowing for client-side attacks.
  • Content Write Vulnerabilities: The ability to add or modify content within AEM, though the most impactful use was for EL injection.

These vulnerabilities, when chained together, demonstrate a path to profound compromise of AEM instances, often without requiring custom configurations beyond a stock-standard installation.

Technical Deep Dive

▶ Watch: SSRF and XXE vulnerabilities found in AEM (34:00)

The vulnerabilities discovered by Assetnote showcase a sophisticated understanding of AEM's intricate architecture, from its front-facing Dispatcher to its core Sling framework and JCR data store.

Dispatcher Bypasses

The researchers identified two distinct methods to bypass the AEM Dispatcher, a critical step for accessing sensitive AEM endpoints.

  1. No-Cannon Flag Bypass: This bypass exploits a misconfiguration in the Apache HTTP Server's LocationMatch directive, specifically the use of the no-cannon flag. Adobe's AEM Cloud deployments include a rule: LocationMatch ^/graphql/execute.json/. no-cannon. The no-cannon flag instructs Apache not* to normalize the URL before pattern matching.
  • Vulnerability: While LocationMatch typically anchors to the start of the string (^), the . in .json matches any character, not just a literal dot. More critically, the regular expression is not anchored at the end ($). This means graphql/execute.json can be a substring anywhere in the URL.
  • Exploitation: By combining the no-cannon flag with path traversal, an attacker can craft a URL like /graphql/execute.json/../../bin/querybuilder.json. Apache, configured with no-cannon, will not normalize ../.., allowing the LocationMatch to trigger and the request to proceed to the AEM instance, which then correctly interprets the path traversal to reach /bin/querybuilder.json. This bypass was effective on AEM Cloud deployments and could bypass WAFs that might otherwise block path traversals, as the no-cannon flag prevents the WAF from seeing the normalized, malicious path.
  • Refinement: A later discovery found that the LocationMatch was not anchored to the end of the string either. This allowed the use of the second bypass technique (path parameters) to inject the matching substring into the URL without traversals, e.g., /some/legit/path;graphql/execute.json/foo.ico, making it even more stealthy and WAF-evasive.
  1. Path Parameters Bypass: This bypass leverages a differential in how Apache Sling and the C/C++-based Dispatcher module parse URLs. Sling, the Java web framework, supports path parameters (e.g., /path;param=value), which are typically ignored for routing purposes. The Dispatcher, however, often fails to implement this obscure Sling feature.
  • Vulnerability: The Dispatcher parses the URL greedily to determine the file extension for its filtering rules. If an attacker injects a path parameter (using a semicolon) followed by a seemingly innocuous extension, the Dispatcher will incorrectly identify the "safe" extension, while Sling will ignore the path parameter and process the intended malicious endpoint.
  • Exploitation: A URL like /bin/querybuilder.json;x/foo.ico demonstrates this. The Dispatcher sees .ico (a typically allowed image file extension) and lets the request through. Sling, however, interprets the ;x/foo.ico as a path parameter, effectively ignoring it, and routes the request to /bin/querybuilder.json. This allows an attacker to bypass Dispatcher rules that block access to sensitive endpoints by disguising them as requests for permitted file types. This method is particularly effective against default AEM installations and is less likely to be flagged by WAFs compared to path traversals.

Adobe's official stance that the Dispatcher is not a security component means these bypasses often remain unpatched, making them potent tools for attackers.

Server-Side Request Forgery (SSRF)

A straightforward SSRF vulnerability was identified in a servlet that accepts an authentication URL parameter.

  • Vulnerability: The servlet performs an unvalidated POST request to the URL provided in this parameter and returns the content of the response. Crucially, there are no checks to prevent requests to localhost or other internal network resources.
  • Exploitation: An attacker can simply post to this endpoint with a crafted oAuthURL parameter (e.g., oAuthURL=http://internal-host:port/sensitive-endpoint). The AEM instance will then fetch the content from the specified internal resource and return it to the attacker, enabling a full read SSRF. The only limitation is that the target internal resource must accept POST requests.

Blind XML External Entity (XXE) Injection

The CRX Package Manager, an administrative interface accessible via a dispatcher bypass, was found to be vulnerable to XXE.

  • Vulnerability: When an administrator (or an anonymous user via a bypass) attempts to upload a package (which is a zip file containing executable code and XML descriptors), the package validation routine uses Java's DocumentBuilderFactory. As of 2025, this factory is still vulnerable to XXE by default unless specific flags are explicitly set to disable external entity processing. These flags were not set in AEM's implementation.
  • Exploitation: An attacker can craft a malicious package containing a privileges.xml file with an embedded DTD that attempts to resolve an external entity. For example, a DTD could be defined to make an HTTP request to an attacker-controlled Burp Suite Collaborator instance. Uploading this package (even if the subsequent file copy fails due to permission issues for an anonymous user) triggers the XXE during the validation phase, resulting in a ping-back to the attacker, confirming the vulnerability.
  • Impact: This is a blind XXE, meaning the attacker doesn't directly receive the output. While often critical, Java's modern protections limit the ability to read arbitrary files directly. The researchers found that the best outcome was typically leaking only the first line of a file on the file system. The CVE for this issue is tied to the underlying Jackrabbit content repository, not directly AEM.

Arbitrary Node Write (Pre-Authentication)

Achieving arbitrary node write as an anonymous user is a multi-step process.

  • Problem: By default, anonymous users lack write permissions anywhere in the JCR.
  • Method 1 (Misconfiguration): Relying on customer misconfigurations where permissions like add_node, set_property, or overwrite are inadvertently granted to unauthenticated users. This can be detected using the bin/querybuilder.json endpoint to check permissions.
  • Method 2 (Service Resolver Misuse): A more reliable method exploits a servlet that uses getServiceResourceResolver() to temporarily assume the role of a create rendition user. This service account possesses permissions to write to specific directories, including a temporary location within the /conf directory.
  • Exploitation Step 1 (Write): An attacker posts arbitrary content and properties to this servlet. The servlet, operating as the create rendition user, writes the provided file to /conf/global/settings/dam/admin/rendition/jcr:content.xml (or similar path within /conf).
  • Problem: The anonymous user cannot read back the created node because they lack permissions for the /conf directory.
  • Exploitation Step 2 (Read Back): To read the content, another servlet is exploited. This servlet also uses getServiceResourceResolver(), but assumes the role of a context hub conf reader user. This user has specific permissions to read nodes named exactly cloud settings or files within a cloud settings directory under /conf.
  • Solution: The attacker names the file uploaded in Step 1 precisely cloud settings. Then, by querying the second servlet, they can read the content of the cloud settings node that they just created.
  • Limitation: The temporary directory is cleaned every 6-12 hours, meaning an attacker has a limited window (one attempt per cleanup cycle) to exploit the written content. This necessitates maximizing the impact of the single write.

Expression Language (EL) Injection and Configuration Leak

The arbitrary node write, combined with a dispatcher bypass, leads directly to Expression Language (EL) injection.

  • Vulnerability: Certain node types (e.g., templates) allow for dynamic evaluation of properties. By writing a node with specific properties, an attacker can trigger EL evaluation. For example, setting an action parameter on the uploaded node to ${7*7} resulted in 49, confirming EL injection.
  • Restrictions: Adobe has implemented strict controls, preventing direct function calls (e.g., java.lang.System.exit()) and property setting within the EL context. This effectively blocks direct RCE.
  • Impact - Total Configuration Leak: Despite the RCE restriction, the EL injection still allows for property accesses and array indexing. AEM stores much of its configuration in memory as Java objects, accessible through chained property accesses from default objects available in the EL context (e.g., pageContext).
  • Exploitation: By traversing the object graph—from the current page context to OSGi bundles, then to various services, and finally to their configurations—an attacker can sequentially leak all configuration properties for every service running in AEM.
  • Results: This led to the exfiltration of highly sensitive data, including:
  • Azure private keys, account names, and access keys (likely for content synchronization integrations).
  • Certificates.
  • Hashed administrator passwords (which, if cracked, could lead to RCE via authentication).
  • API keys for various third-party services.
  • Essentially, any secret or sensitive configuration stored within AEM's memory.
  • Chaining: The complete attack chain involves: Dispatcher Bypass -> Pre-authentication Node Write (using create rendition user, naming file cloud settings) -> Read Back (using context hub conf reader user) -> EL Injection (within the written node's properties) -> Full Configuration Leak.

Demo / Proof of Concept

▶ Watch: Pre-authentication node write and read primitive (39:00)

The Assetnote team developed a specialized tool named Hopgoblin to automate the discovery and exploitation of the vulnerabilities discussed in the talk. This tool serves as a comprehensive proof-of-concept for their research.

Hopgoblin's Capabilities:

  • Automated Dispatcher Bypass Discovery: It automatically attempts various known dispatcher bypasses, including the no-cannon flag method and the path parameters technique, to identify working bypasses for a given AEM target.
  • Vulnerability Scanning: Once a bypass is established, Hopgoblin proceeds to check for other critical vulnerabilities:
  • XML External Entity (XXE) attack: It verifies the presence of the blind XXE vulnerability in the CRX Package Manager.
  • Server-Side Request Forgery (SSRF): It attempts to exploit the discovered SSRF endpoint.
  • Node Write Capabilities: It checks if the pre-authentication node write is possible.
  • Expression Language (EL) Injection: If node write is successful, it attempts to trigger EL injection to demonstrate the configuration leakage.
  • Real-World Efficacy: The speakers highlighted that Hopgoblin was instrumental during their research, successfully identifying "countless exploitable instances in the wild."
  • Configurability: Recognizing that AEM instances are often customized, Hopgoblin is designed to be configurable. This allows security professionals to tweak dispatcher bypass payloads (e.g., using different extensions or path adjustments) to adapt to unique target environments and overcome custom blocking rules.

The presentation included a demonstration of Hopgoblin's output, showing how it systematically queries different endpoints, reports successful dispatcher bypasses, and then proceeds to exploit and confirm the presence of deeper vulnerabilities like EL injection. The tool is publicly available on GitHub, providing a practical resource for security researchers and penetration testers working with AEM.

Defensive Implications

▶ Watch: Hopgoblin tool and AEM patching status (48:00)

The findings presented by Assetnote carry significant defensive implications for organizations deploying Adobe Experience Manager. Given the widespread use of AEM and the critical nature of the vulnerabilities, proactive measures are essential.

  1. Do Not Rely on the Dispatcher as a Security Boundary: Adobe explicitly states that the Dispatcher is a caching and load-balancing component, not a security mechanism. Defenders must internalize this. While it provides a basic request filter, it is demonstrably bypassable. All security controls, including authentication, authorization, and input validation, must be enforced at the AEM instance level, not just at the Dispatcher.
  2. Prompt Patching and Hotfix Application: While cloud versions of AEM often receive patches automatically, on-premise deployments are frequently slow to update. Organizations with on-premise AEM instances must prioritize applying Adobe's hotfixes promptly. The vulnerabilities detailed in this talk (with the exception of dispatcher bypasses, by Adobe's definition) were patched in a hotfix approximately a month prior to the talk. Delays in patching leave systems vulnerable to known, critical exploits.
  3. Rigorous Permission Management: The arbitrary node write and subsequent EL injection heavily rely on the misuse or misconfiguration of permissions, particularly those associated with service resolvers. Conduct regular audits of JCR ACLs and ensure that service accounts (accessed via getServiceResourceResolver() calls) are granted the absolute minimum necessary permissions. Avoid broad "star" (*) permissions or overly permissive settings, as these are common sources of privilege escalation.
  4. Careful Code Auditing for Service Resolver Usage: Developers should be acutely aware of the security implications of getServiceResourceResolver(), getAdministrativeResourceResolver(), and getResourceResolver(credentials). Any user-controlled input flowing into resource lookup paths or properties when operating under an elevated service context must be thoroughly validated and sanitized to prevent unauthorized access or modification of JCR nodes.
  5. Enhanced Input Validation and Output Encoding: Standard security practices like robust input validation for all user-supplied data and proper output encoding to prevent XSS remain crucial, especially in dynamic scripting environments like AEM's JCR script files (Sitly, ESP, JSP, ECMA, Java).
  6. WAF/IPS Tuning: While sophisticated bypasses like the path parameters technique might evade some WAFs, ensuring WAFs are configured to detect and block common attack patterns like path traversals (../) and unusual characters in URLs (like semicolons in unexpected places) can still provide a layer of defense. However, do not consider the WAF a primary defense against AEM-specific logic flaws.
  7. Monitor for Suspicious Activity: Implement logging and monitoring for unusual access patterns, especially to administrative or configuration-related endpoints (e.g., /bin/querybuilder.json, /crx/packmgr/). Anomalous requests containing dispatcher bypass patterns or attempts to write to /conf directories should trigger immediate alerts.

By implementing these defensive strategies, organizations can significantly reduce their exposure to the types of critical pre-authentication vulnerabilities demonstrated in this research.

Key Takeaways

  • AEM's Complexity is an Attack Surface: Adobe Experience Manager's convoluted architecture, including Apache Sling, the JCR, and request routing mechanisms, presents a significant and often overlooked attack surface for pre-authentication vulnerabilities.
  • Dispatcher is Not a Security Boundary: The AEM Dispatcher, despite its filtering capabilities, should not be relied upon as a primary security control. Its bypasses are well-documented, and Adobe does not consider them security vulnerabilities, leaving many systems exposed.
  • Service Resolver Misuse is Critical: Improper handling of getServiceResourceResolver() calls, especially when combined with user-controlled input, can lead to pre-authentication arbitrary node writes and privilege escalation.
  • EL Injection Leads to Complete Configuration Compromise: Even without direct RCE, Expression Language (EL) injection in AEM can be chained with other vulnerabilities to fully exfiltrate all sensitive configuration secrets, including cloud service credentials, API keys, and admin hashes.
  • On-Premise AEM is High Risk: While AEM Cloud instances receive prompt patches, on-premise deployments are often slow to update, making them highly susceptible to these publicly disclosed and easily exploitable vulnerabilities.
  • Code Auditing is Paramount: In-depth code auditing, focusing on how AEM handles requests, parses input, and manages permissions, is essential for identifying and mitigating these types of deep-seated framework-level bugs.

About the Speaker(s)

Dylan Pindur and Adam Kues are both Security Researchers at Assetnote. Their work focuses on uncovering novel pre-authentication vulnerabilities through in-depth analysis of software, often involving decompilation and source code review of applications run locally. They specialize in what they describe as a "super in-depth pen test" approach, aiming to identify critical security flaws that impact a wide range of users. Their research on Adobe Experience Manager exemplifies their commitment to exploring complex, widely deployed systems that may lack recent security scrutiny, providing valuable insights to the broader security community.

Reviews

  • Dr. Zero (Offensive Security Researcher) — MUST SEE ★★★★★
  • Heather Calloway (CISO) — MUST SEE ★★★★★

→ Top-rated talks at BSides Canberra VIII (2025)

All talks from BSides Canberra VIII (2025)