cbcvebase.
CVE-2022-31137
published 2022-07-08

CVE-2022-31137: Roxy-WI is a web interface for managing Haproxy, Nginx, Apache and Keepalived servers. Versions prior to 6.1.1.0 are subject to a remote code execution…

PriorityP192critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
90.39%
99.8th percentile
Roxy-WI is a web interface for managing Haproxy, Nginx, Apache and Keepalived servers. Versions prior to 6.1.1.0 are subject to a remote code execution vulnerability. System commands can be run remotely via the subprocess_execute function without processing the inputs received from the user in the /app/options.py file. Attackers need not be authenticated to exploit this vulnerability. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected

6 ranges
VendorProductVersion rangeFixed in
hap-wiroxy-wi< 6.1.1.06.1.1.0
maradnsmaradns>= 0 < 2.0.13-1.4+deb11u1build0.20.04.12.0.13-1.4+deb11u1build0.20.04.1
maradnsmaradns>= 0 < 2.0.13-1.4+deb11u1build0.22.04.12.0.13-1.4+deb11u1build0.22.04.1
maradnsmaradns>= 0 < 2.0.13-1ubuntu0.1~esm12.0.13-1ubuntu0.1~esm1
maradnsmaradns>= 0 < 2.0.13-1.2ubuntu0.1~esm12.0.13-1.2ubuntu0.1~esm1
roxy-wiroxy-wi< 6.1.1.06.1.1.0

Detection & IOCsextracted from sources · hover to see the quote

path/app/options.py
urlPOST /app/options.py HTTP/1.1
commandalert_consumer=1&serv=127.0.0.1&ipbackend=";cat+/etc/passwd+##&backend_server=127.0.0.1
commandshow_versions=1&token=&alert_consumer=1&serv=127.0.0.1&getcert=;id;
  • Detect unauthenticated POST requests to /app/options.py with command injection payloads in parameters such as ipbackend, getcert, or delcert. No authentication headers are required by the attacker.
  • Look for POST requests to /app/options.py containing shell metacharacters (semicolons, quotes, plus signs used as spaces) in the ipbackend, getcert, or delcert POST body parameters.
  • Requests exploiting this CVE typically include the header X-Requested-With: XMLHttpRequest and Referer pointing to /app/login.py, with no session/auth cookie.
  • Shodan/FOFA fingerprinting: identify exposed Roxy-WI instances via HTML body containing 'Roxy-WI' or 'roxy-wi' as a pre-exploitation reconnaissance indicator.
  • Metasploit module available for this vulnerability targeting Linux HTTP services; monitor for automated exploitation attempts against /app/options.py.
  • ·The vulnerable endpoint /app/options.py is reachable without authentication; the subprocess_execute function passes user-supplied input directly to system commands. Fix requires upgrade to >= 6.1.1.0.
  • ·Multiple injection parameters exist in /app/options.py: ipbackend, getcert, and delcert are all confirmed injection points across related CVEs (CVE-2022-31137, CVE-2022-31126, CVE-2022-31161) sharing the same vulnerable file and endpoint.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
osv7.5HIGH
vulncheck10.0CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.