Confluence Pre-Auth RCE via OGNL Injection (CVE-2023-22527)
Attackers are exploiting CVE-2023-22527, a critical remote code execution vulnerability in Atlassian Confluence Server and Data Center, by sending crafted POST requests to a specific endpoint to inject and execute arbitrary OGNL expressions, potentially leading to complete system compromise.
CVE search metadata
CVE search record: CVE-2023-22527. Severity: critical. CVSS: 9.8. EPSS: 99.98%. KEV: no. Product: Confluence Data Center, Confluence Data Center, Confluence Server. Brief: Confluence Pre-Auth RCE via OGNL Injection (CVE-2023-22527). Brief link: https://feed.craftedsignal.io/briefs/2024-01-confluence-cve-2023-22527/
What's new
- 1. poc_available; added CVE-2023-22527 Sep 3, 01:47 via sploitus
CVE-2023-22527 is a critical remote code execution vulnerability affecting Atlassian Confluence Data Center and Server. This vulnerability allows an unauthenticated attacker to execute arbitrary code on vulnerable instances. The vulnerability stems from a template injection flaw in the "/template/aui/text-inline.vm" endpoint, which allows for OGNL injection via specially crafted POST requests. Successful exploitation grants the attacker complete control over the Confluence server. Publicly available exploit code has increased the risk of widespread exploitation. Defenders should prioritize patching vulnerable systems and implementing detection mechanisms to identify exploitation attempts.
Attack Chain
- An unauthenticated attacker sends a crafted POST request to the
/template/aui/text-inline.vmendpoint on a vulnerable Confluence server. - The POST request contains a malicious OGNL expression within the request body.
- The Confluence server processes the request without proper sanitization of the OGNL expression.
- The malicious OGNL expression is injected into the Velocity template engine.
- The Velocity template engine executes the injected OGNL expression.
- The attacker gains arbitrary code execution on the Confluence server.
- The attacker leverages code execution to install a webshell for persistent access.
- The attacker uses the webshell to perform reconnaissance, move laterally within the network, and potentially exfiltrate sensitive data or deploy ransomware.
Impact
Successful exploitation of CVE-2023-22527 allows unauthenticated attackers to achieve remote code execution on affected Confluence servers. This can lead to complete system compromise, data breaches, and lateral movement within the victim's network. Given the widespread use of Confluence in enterprise environments, the impact of this vulnerability is potentially very high, and could affect thousands of organizations.
Recommendation
- Apply the vendor-supplied patch for CVE-2023-22527 to all Confluence Server and Data Center instances immediately.
- Deploy the Sigma rule
Confluence Pre-Auth RCE via OGNL Injection CVE-2023-22527to your SIEM to detect exploitation attempts targeting the vulnerable endpoint. - Monitor web server logs for POST requests to
/template/aui/text-inline.vmas identified by the URL IOC*/template/aui/text-inline.vm*. - Review and restrict network access to Confluence servers to only authorized users and systems.
Detection coverage 2
Confluence Pre-Auth RCE via OGNL Injection CVE-2023-22527
criticalDetects POST requests to the Confluence /template/aui/text-inline.vm endpoint, indicative of CVE-2023-22527 exploitation attempts.
Confluence OGNL Injection Attempt in Request Body
highDetects potential OGNL injection attempts in the request body of Confluence POST requests. This looks for common OGNL syntax.
Detection queries are available on the platform. Get full rules →