Authenticated Arbitrary File Write via Database Import and Xray Log Path Manipulation
MHSanaei 3x-ui
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/mhsanaei/3x-ui/v3 Go |
|
|
| github.com/mhsanaei/3x-ui/v2 Go |
| No fix yet |
| github.com/mhsanaei/3x-ui Go |
MHSanaei 3x-ui
| Product | Affected | Fixed in |
|---|---|---|
| github.com/mhsanaei/3x-ui/v3 Go |
|
|
| github.com/mhsanaei/3x-ui/v2 Go |
| No fix yet |
| github.com/mhsanaei/3x-ui Go |
|
| No fix yet |
3X-UI is a web control panel for managing Xray-core servers. Prior to 3.3.1, an authenticated administrator can abuse the database import functionality to achieve arbitrary file write on the host by modifying Xray configuration values stored in the database. This can be leveraged to obtain code execution and persistent access as the user running Xray (including root when Xray is running as root). This vulnerability is fixed in 3.3.1.
From the CVE record · GitHub_M
In MHSanaei 3x-ui, an authenticated administrator can modify Xray configuration values in an imported database to write arbitrary files on the host. This can lead to code execution and persistent access as the user running Xray, including root if Xray runs as root.
Operators using github.com/mhsanaei/3x-ui/v3 before 3.3.1, github.com/mhsanaei/3x-ui/v2 through 2.9.4, or any version of github.com/mhsanaei/3x-ui should check their deployments.