PoC Monitor
← All CVEs
CVE-2022-44877published 5 Jan 2023 00:00 UTCData: JSON · API

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.

First public PoC 17 hafter publication · 5 Jan 2023
Public PoCs106 on GitHub · 4 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-78
CISA KEV 17 Jan 202312 days after publication

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8+10+12CVE published5 Jan 2023 · t = 0First public PoC5 Jan 2023 · t+17hAdded to CISA KEV17 Jan 2023 · t+12d

First 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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
RicYaben/CVE-2022-44877-LAB unknown 0 Pending · repository unavailable (HTTP 404)
Informational 2
RepositoryCreatedStarsAssessment
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.

PoC characteristics

What to hunt for in your logs · from 6 PoC repos

POST /login/index.php

Query
login=$(echo login=$(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.9 Accept-Language: en Cookie: cwpsrv-2dbdc5905576590830494c54c04a1b01=6ahj1a6etv72ut1eaupietdk82 Origin: https://10.13.37.10:2031 Referer: https://10.13.37.10:2031/login/index.php?login=failed
Body markers
username=root password=toor commit=Login in application/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.

POST /login/index.php
(?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.

POST /login/index.php
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.

POST /login/index.php
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