Description
Nginx Proxy Manager versions 2.9.14 through 2.15.1, fixed in commit a5db5ed, contain an authenticated remote code execution vulnerability via OS command injection in the setupCertbotPlugins() function in backend/setup.js, allowing attackers with certificates:manage permission to execute arbitrary commands by storing a malicious payload in the dns_provider_credentials field. The user-controlled dns_provider_credentials value is interpolated directly into a shell command executed via child_process.exec() without sanitization or escaping, causing the injected command to execute upon backend restart.
Problem types
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Product status
2.9.14 (semver)
a5db5ed156355e3088e7d1ceb0533d4bae922def (git)
Credits
Yassine Damiri
References
github.com/NginxProxyManager/nginx-proxy-manager/pull/5498
github.com/...ommit/a5db5ed156355e3088e7d1ceb0533d4bae922def
www.vulncheck.com/...thenticated-rce-via-setupcertbotplugins