CVE-2024-23827
published 2024-01-29CVE-2024-23827: Nginx-UI is a web interface to manage Nginx configurations. The Import Certificate feature allows arbitrary write into the system. The feature does not check…
PriorityP261critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
0.70%
48.5th percentile
Nginx-UI is a web interface to manage Nginx configurations. The Import Certificate feature allows arbitrary write into the system. The feature does not check if the provided user input is a certification/key and allows to write into arbitrary paths in the system. It's possible to leverage the vulnerability into a remote code execution overwriting the config file app.ini. Version 2.0.0.beta.12 fixed the issue.
Affected
44 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| 0xjacky | nginx-ui | < 2.0.0.beta.12 | 2.0.0.beta.12 |
| github.com | 0xjacky_nginx-ui | >= 0 < 2.0.0-beta.12 | 2.0.0-beta.12 |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| nginxui | nginx_ui | — | — |
| 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
Nginx-UI vulnerable to arbitrary file write through the Import Certificate feature in github.com/0xJacky/Nginx-UI
osv·2024-06-28
CVE-2024-23827 Nginx-UI vulnerable to arbitrary file write through the Import Certificate feature in github.com/0xJacky/Nginx-UI
Nginx-UI vulnerable to arbitrary file write through the Import Certificate feature in github.com/0xJacky/Nginx-UI
Nginx-UI vulnerable to arbitrary file write through the Import Certificate feature in github.com/0xJacky/Nginx-UI.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: github.com/0xJacky/Nginx-UI before v2.0.0-beta.12.
GHSA
Nginx-UI vulnerable to arbitrary file write through the Import Certificate feature
ghsa·2024-01-29
CVE-2024-23827 [CRITICAL] CWE-22 Nginx-UI vulnerable to arbitrary file write through the Import Certificate feature
Nginx-UI vulnerable to arbitrary file write through the Import Certificate feature
### Summary
The Import Certificate feature allows arbitrary write into the system. The feature does not check if the provided user input is a certification/key and allows to write into arbitrary paths in the system.
https://github.com/0xJacky/nginx-ui/blob/f20d97a9fdc2a83809498b35b6abc0239ec7fdda/api/certificate/certificate.go#L72
```go
func AddCert(c *gin.Context) {
var json struct {
Name string `json:"name"`
SSLCertificatePath string `json:"ssl_certificate_path" binding:"required"`
SSLCertificateKeyPath string `json:"ssl_certificate_key_path" binding:"required"`
SSLCertificate string `json:"ssl_certificate"`
SSLCertificateKey string `json:"ssl_certificate_key"`
ChallengeMethod string `json:"challenge_m
OSV
Nginx-UI vulnerable to arbitrary file write through the Import Certificate feature
osv·2024-01-29
CVE-2024-23827 [CRITICAL] Nginx-UI vulnerable to arbitrary file write through the Import Certificate feature
Nginx-UI vulnerable to arbitrary file write through the Import Certificate feature
### Summary
The Import Certificate feature allows arbitrary write into the system. The feature does not check if the provided user input is a certification/key and allows to write into arbitrary paths in the system.
https://github.com/0xJacky/nginx-ui/blob/f20d97a9fdc2a83809498b35b6abc0239ec7fdda/api/certificate/certificate.go#L72
```go
func AddCert(c *gin.Context) {
var json struct {
Name string `json:"name"`
SSLCertificatePath string `json:"ssl_certificate_path" binding:"required"`
SSLCertificateKeyPath string `json:"ssl_certificate_key_path" binding:"required"`
SSLCertificate string `json:"ssl_certificate"`
SSLCertificateKey string `json:"ssl_certificate_key"`
ChallengeMethod string `json:"challenge_m
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2024-01-29
Published