
Exploit for CVE-2024-21683, a post-authentication remote code execution vulnerability in Atlassian Confluence Server and Data Center, allowing authenticated admins to execute arbitrary code via malicious JavaScript upload.
CVE-2024-21683 is a critical remote code execution (RCE) vulnerability affecting Atlassian's Confluence Server and Data Center.
This vulnerability has a CVSS score of 8.3, placing it in the high-severity category. Attackers can exploit this vulnerability to execute remote code by crafting malicious JavaScript files, without requiring user interaction.
However, attackers must first be logged into the Confluence system and possess sufficient permissions to add new macro languages.
This vulnerability stems from an input validation flaw in the "Add New Language" feature. Due to the lack of effective input validation, an authenticated attacker can inject malicious JavaScript code that executes on the server side, potentially leading to severe consequences such as sensitive information disclosure, data modification, or denial of service (DoS).
Attackers can exploit this vulnerability through the following methods:
Since proof-of-concept (PoC) code has already been released, exploitation of this vulnerability has become easier, resulting in a higher risk of being targeted by attackers within the next 30 days.
git clone https://github.com/XiaomingX/cve-2024-21683-rce
cd cve-2024-21683-rce
pip install requests bs4
python CVE-2024-21683.py -u http://192.168.198.1:8090 -au admin -ap admin -f exploit.js -n test -p http://127.0.0.1:8083
Atlassian strongly recommends that all affected users upgrade to the latest version as soon as possible to fix this vulnerability. If an immediate upgrade is not possible, users should at least update to the officially designated supported version to reduce risk. Since Confluence is typically exposed to external access, it has become a target for state-sponsored attackers and cybercriminal groups.
CVE-2024-21683 is a critical security vulnerability, and organizations should take immediate action to remediate it to safeguard their data and systems.