(CVE-2021-0256) Juniper Junos OS Local Privilege Escalation vulnerability in mosquitto
A setuid binary on Junos OS could be abused by a local user to gain root privileges, allowing disclosure of sensitive information or execution of arbitrary commands as root. The text names the affected component (mosquitto) and version range but gives no reproduction detail.
starlabs.sg
Published on starlabs.sg
On the Juniper OS, there are a few binaries that have the setuid permission bit enabled. These binaries will run as the owner of the executable (typically as “root”) and inherit their privileges.
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 a setuid binary in the mosquitto component on Junos OS does not drop or properly guard its elevated privileges, so a local user can make it act as root.
Impact
A local user on the device could escalate to root and then read sensitive information or run arbitrary commands, though the text gives no proof-of-concept or demonstration.
What the attacker needed
Local access to the Junos device; ability to run commands as a normal user
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.
Some programs on a system are marked so that they always run with the full powers of the file's owner, usually the administrator account called root. If such a program can be tricked, a normal user can borrow those powers. Here a program shipped with Juniper's router operating system is said to allow exactly that, letting a logged-in user act as root.
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.