CVE-2024-22198
published 2024-01-11CVE-2024-22198: Nginx-UI is a web interface to manage Nginx configurations. It is vulnerable to arbitrary command execution by abusing the configuration settings. The `Home >…
PriorityP265high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
EPSS
4.09%
89.5th percentile
Nginx-UI is a web interface to manage Nginx configurations. It is vulnerable to arbitrary command execution by abusing the configuration settings. The `Home > Preference` page exposes a list of system settings such as `Run Mode`, `Jwt Secret`, `Node Secret` and `Terminal Start Command`. While the UI doesn't allow users to modify the `Terminal Start Command` setting, it is possible to do so by sending a request to the API. This issue may lead to authenticated remote code execution, privilege escalation, and information disclosure. This vulnerability has been patched in version 2.0.0.beta.9.
Affected
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| 0xjacky | nginx-ui | < 2.0.0.beta.9 | 2.0.0.beta.9 |
| github.com | 0xjacky_nginx-ui | >= 0 < 2.0.0.beta.9 | 2.0.0.beta.9 |
| github.com | 0xjacky_nginx-ui | >= 0 < 1.9.10-0.20231219184941-827e76c46e63 | 1.9.10-0.20231219184941-827e76c46e63 |
| nginxui | nginx_ui | < 2.0.0 | 2.0.0 |
| nginxui | nginx_ui | — | — |
Stop checking back — get the weekly exploitation signal.
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.
OSV
Arbitrary command execution in github.com/0xJacky/Nginx-UI
osv·2024-01-30
CVE-2024-22198 Arbitrary command execution in github.com/0xJacky/Nginx-UI
Arbitrary command execution in github.com/0xJacky/Nginx-UI
Arbitrary command execution in github.com/0xJacky/Nginx-UI
GHSA
Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)
ghsa·2024-01-11
CVE-2024-22198 [HIGH] CWE-77 Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)
Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)
### Summary
Nginx-UI is a web interface to manage Nginx configurations. It is vulnerable to arbitrary command execution by abusing the configuration settings.
### Details
The `Home > Preference` page exposes a list of system settings such as `Run Mode`, `Jwt Secret`, `Node Secret` and `Terminal Start Command`. The latter is used to specify the command to be executed when a user opens a terminal from the web interface. While the UI doesn't allow users to modify the `Terminal Start Command` setting, it is possible to do so by sending a request to the [API](https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/router.go#L13).
```go
func InitPrivateRo
OSV
Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)
osv·2024-01-11
CVE-2024-22198 [HIGH] Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)
Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)
### Summary
Nginx-UI is a web interface to manage Nginx configurations. It is vulnerable to arbitrary command execution by abusing the configuration settings.
### Details
The `Home > Preference` page exposes a list of system settings such as `Run Mode`, `Jwt Secret`, `Node Secret` and `Terminal Start Command`. The latter is used to specify the command to be executed when a user opens a terminal from the web interface. While the UI doesn't allow users to modify the `Terminal Start Command` setting, it is possible to do so by sending a request to the [API](https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/router.go#L13).
```go
func InitPrivateRo
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/settings.go#L18https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/terminal/pty.go#L11https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/internal/pty/pipeline.go#L29https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/router/middleware.go#L45https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/settings/server.go#L12https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-8r25-68wm-jw35https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/settings.go#L18https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/terminal/pty.go#L11https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/internal/pty/pipeline.go#L29https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/router/middleware.go#L45https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/settings/server.go#L12https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-8r25-68wm-jw35
2024-01-11
Published