Goal Reached Thanks to every supporter β€” we hit 100%!

Goal: 1000 CNY Β· Raised: 1000 CNY

100.0%

CVE-2022-31137 β€” AI Deep Analysis Summary

CVSS 10.0 Β· Critical

Q1What is this vulnerability? (Essence + Consequences)

🚨 **Essence**: Roxy-WI suffers from **OS Command Injection**. Attackers can execute arbitrary system commands remotely via the `subprocess_execute` function.…

Q2Root Cause? (CWE/Flaw)

πŸ›‘οΈ **Root Cause**: **CWE-78** (OS Command Injection). The flaw lies in `/app/options.py`, where user inputs are not sanitized before being passed to the command execution function.…

Q3Who is affected? (Versions/Components)

πŸ“¦ **Affected**: **Roxy-WI** versions **before 6.1.1.0**. 🏒 **Vendor**: hap-wi. 🌐 **Component**: The web interface managing Haproxy, Nginx, and Keepalived servers.

Q4What can hackers do? (Privileges/Data)

πŸ’€ **Hackers Can**: Execute commands with the privileges of the Roxy-WI service account. πŸ“‚ **Impact**: Read/Write/Modify any file, steal data, install backdoors, or pivot to other internal servers.…

Q5Is exploitation threshold high? (Auth/Config)

πŸ”“ **Threshold**: **LOW**. 🌍 **Access**: Network Accessible (AV:N). πŸ”‘ **Auth**: No Privileges Required (PR:N). πŸ‘€ **UI**: No User Interaction Needed (UI:N). It is a critical, easy-to-exploit flaw.

Q6Is there a public Exp? (PoC/Wild Exploitation)

πŸ”₯ **Public Exp**: **YES**. πŸ“‚ **PoCs**: Available on GitHub (Threekiii/Awesome-POC) and Nuclei templates. πŸš€ **Wild Exploitation**: Likely, given the low barrier to entry and public availability of exploits.

Q7How to self-check? (Features/Scanning)

πŸ” **Self-Check**: Scan for Roxy-WI instances. πŸ§ͺ **Test**: Use Nuclei template `CVE-2022-31137.yaml`. πŸ“ **Verify**: Check if `/app/options.py` is vulnerable to command injection via `subprocess_execute`.

Q8Is it fixed officially? (Patch/Mitigation)

πŸ› οΈ **Fixed**: **YES**. βœ… **Patch**: Upgrade to **Roxy-WI version 6.1.1.0** or later. πŸ“’ **Advisory**: See GHSA-53r2-mq99-f532 for official details.

Q9What if no patch? (Workaround)

🚧 **No Patch?**: Implement strict **Input Validation** on `/app/options.py`. 🚫 **Mitigation**: Restrict network access to Roxy-WI. πŸ›‘ **Defense**: Use WAF rules to block OS command injection patterns in HTTP requests.

Q10Is it urgent? (Priority Suggestion)

🚨 **Urgency**: **CRITICAL**. πŸ”΄ **Priority**: **P0**. Immediate patching required. With CVSS High and public PoCs, active exploitation is highly probable. Do not delay! ⏳