When the Shield Becomes the Door: Unpacking the Nginx UI Backup V
The /api/backup endpoint in Nginx UI could be downloaded without any authentication, and the server sent the AES encryption key and IV in a response header alongside the file. An attacker could therefore obtain and decrypt a full system backup, exposing admin credentials, SSL private keys, internal infrastructure details and database credentials.
In the world of server management, tools that simplify our lives often come with a hidden trade-off. Nginx UI is a prime example — it’s a fantastic web-based dashboard that saves administrators from the “death by a thousand terminal commands,” offering a sleek graphical interface to manage configurations and monitor…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the backup endpoint lacked an authentication check, and the design sent the decryption key and IV to the client in a response header instead of keeping them server-side.
Impact
An attacker could download and decrypt a full backup, gaining admin credentials and session tokens, SSL private keys, internal infrastructure maps and database credentials, though the text does not say whether any real deployment was exploited.
What the attacker needed
Network access to the Nginx UI instance; no credentials needed
The fix
The endpoint should require authentication and the encryption key and IV should never be sent to the client; the text advises updating to the latest patches but does not confirm a fix was released.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A backup is a copy of a server's settings and secrets, normally kept private. Here the web tool that manages the server let anyone download that copy without logging in, and even sent the password needed to open it in the same response. Anyone who found the address could read the server's passwords and private keys.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.