(CVE-2021-0223) Juniper Junos OS Local Privilege Escalation vulnerability in telnetd
A setuid binary on Junos OS runs with root privileges and can be abused by a local user to escalate privileges. An attacker with local access could then read sensitive information or run arbitrary commands as root.
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 on Junos OS does not properly restrict what a local user can make it do, so it can be used to gain root privileges.
Impact
A local user could escalate to root and disclose sensitive information or execute arbitrary commands, though the text gives no working exploit.
What the attacker needed
Local access to the device
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 highest permissions, even when a normal user starts them. If such a program can be tricked into doing something else, a normal user can gain full control of the machine. Here a program on Juniper's router operating system could be abused this way by someone already logged in.
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.