So Many Ways to Own Dell EMC Networker
Multiple vulnerabilities in Dell EMC NetWorker, including command injection in nsrdump and arbitrary file read in nsrpolicy and nsrarchive, allow an unauthenticated attacker to execute commands or read files with administrative privileges. The file read can be escalated to remote code execution by stealing the Erlang cookie and connecting to the RabbitMQ Erlang distribution server.
quentinkaiser.be
Published on quentinkaiser.be
In the previous article we covered the different authentication mechanisms implemented by Dell EMC Networker, pointed out the flaws in each of them (identification in oldauth, trust-on-first-use for nsrauth), and provided clear recommendations to Dell EMC Networker administrators that are close to what is said in the…
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 nsrdump, nsrpolicy, and nsrarchive binaries fail to sanitise user-supplied arguments (mail program, file path) before passing them to shell or file operations, and the authentication mechanism (oldauth/nsrauth) can be bypassed.
Impact
An unauthenticated attacker could execute arbitrary commands with administrative privileges (root on Linux, SYSTEM on Windows) or read arbitrary files on hosts running Dell EMC NetWorker Server.
What the attacker needed
Attacker IP in allow-list; oldauth enabled or nsrauth TOFU; network access to nsrexecd
The fix
Dell released an advisory (DSA-2021-124) and presumably fixed the vulnerabilities, though the text notes that some issues were not fixed within 90 days and were disclosed as 0day.
How it was found
- Set the RCMD environment variable to a crafted nsrdump command that includes a shell metacharacter in the mail program parameter.
- Run nsrexec against the target to trigger the command injection.
- Observe the output of the injected command (e.g., id) confirming execution as root.
- For file read, set RCMD to nsrpolicy with a file path argument and run nsrexec.
- Grep the output for 'Command from file:' to retrieve file contents.
- Use the file read to obtain the Erlang cookie and connect to the Erlang distribution server for RCE.
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.
Dell EMC NetWorker is backup software that runs a service called nsrexecd to execute commands remotely. The researchers found that some of the allowed commands (nsrdump, nsrpolicy, nsrarchive) do not properly validate input, so an attacker who can reach the service can trick it into running their own commands or reading sensitive files. They also found that reading a secret file (the Erlang cookie) lets an attacker take full control of the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.