CWP Control Web Panel
CWP Control Web Panel OS Command Injection Vulnerability
login/index.php in CWP (aka Control Web Panel or CentOS Web Panel) 7 before 0.9.8.1147 allows remote attackers to execute arbitrary OS commands via shell metacharacters in the login parameter.
Timeline
Days relative to CVE publicationFirst public PoC 17 h after publication; added to CISA KEV 12 days after publication. First PoC: numanturle/CVE-2022-44877 (created 5 Jan 2023, found by us: backfilled).
PoC repositories
Found on GitHub.6 PoCs · 1 pending · 2 informational
PoCs 6
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| numanturle/CVE-2022-44877 | 5 Jan 2023 +17 h | 103 | PoC via PoC Index |
| komomon/CVE-2022-44877-RCE | 6 Jan 2023 +1.7 d | 10 | PoC via PoC Index |
| Chocapikk/CVE-2022-44877 | 11 Feb 2023 +38 d | 4 | PoC |
| dkstar11q/CVE-2022-44877 | 27 Mar 2023 +82 d | 0 | PoC |
| rhymsc/CVE-2022-44877-RCE | 18 Nov 2023 +318 d | 0 | PoC |
| G01d3nW01f/CVE-2022-44877 | 27 Feb 2024 +1.1 y | 0 | PoC |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| RicYaben/CVE-2022-44877-LAB | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ColdFusionX/CVE-2022-44877-CWP7 | 2 Feb 2023 +28 d | 1 | Informational · write-up |
| hotpotcookie/CVE-2022-44877-white-box | 15 Feb 2023 +42 d | 6 | Informational · detection |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Centos Web Panel 7 v0.9.8.1147 - Unauthenticated Remote Code Execution (RCE) | 1 Apr 2023 | 14 Nov 2026 |
| Exploit-DB | Control Web Panel 7 (CWP7) v0.9.8.1147 - Remote Code Execution (RCE) | 5 Apr 2023 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: CWP login.php Unauthenticated RCE (exploit/linux/http/control_web_panel_login_cmd_exec) | 20 Jan 2023 | 14 Nov 2026 |
| nuclei template | nuclei template: CentOS Web Panel 7 <0.9.8.1147 - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 6 PoC reposPOST /login/index.php
- Query
login=$(echologin=$(echo{var}...{var}|{var}base64{var}-d{var}|{var}bash)- Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9Accept-Language: enCookie: cwpsrv-2dbdc5905576590830494c54c04a1b01=6ahj1a6etv72ut1eaupietdk82Origin: https://10.13.37.10:2031Referer: https://10.13.37.10:2031/login/index.php?login=failed- Body markers
username=rootpassword=toorcommit=Logininapplication/x-www-form-urlencoded- Ports
- 2031
- PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36- Seen in
- 3 repos: komomon/CVE-2022-44877-RCE, numanturle/CVE-2022-44877, rhymsc/CVE-2022-44877-RCE
- Evidence
- komomon/CVE-2022-44877-RCE/readme.md:45 numanturle/CVE-2022-44877/README.md:38 rhymsc/CVE-2022-44877-RCE/haha.txt:1 rhymsc/CVE-2022-44877-RCE/haha.txt:14
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/login/index\.php\?(?:.*&)?login=\$\(echo.*login=\$\(echo\{var\}\.\.\.\{var\}\|\{var\}base64\{var\}-d\{var\}\|\{var\}bash\)
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [2031] (msg:"GG PoC-Monitor CVE-2022-44877 CWP Control Web Panel exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/login/index.php"; http.uri; content:"login=$(echo"; http.uri; content:"login=$(echo{var}...{var}|7c|{var}base64{var}-d{var}|7c|{var}bash)"; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,image/avif,image/webp,image/apng,*/*|3b|q=0.8,application/signed-exchange|3b|v=b3|3b|q=0.9"; nocase; http.header; content:"Accept-Language: en"; nocase; http.header; content:"Cookie: cwpsrv-2dbdc5905576590830494c54c04a1b01=6ahj1a6etv72ut1eaupietdk82"; nocase; http.header; content:"Origin: https://10.13.37.10:2031"; nocase; http.header; content:"Referer: https://10.13.37.10:2031/login/index.php?login=failed"; nocase; http.request_body; content:"username=root"; http.request_body; content:"password=toor"; http.request_body; content:"commit=Login"; reference:url,poc.griffinguard.io/cve/CVE-2022-44877; classtype:web-application-attack; sid:9890150; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: CWP Control Web Panel exploit attempt (CVE-2022-44877)
id: gg-pocmon-cve-2022-44877-9890150
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-44877. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2022-44877
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/login/index.php'
cs-uri-query|contains|all:
- 'login=$(echo'
- 'login=$(echo{var}...{var}|{var}base64{var}-d{var}|{var}bash)'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2022.44877