Skip to content
Access control Write-up Beginner

Teradici and CVE-2020-10965: An issue of routing.

An unauthenticated password reset endpoint for the admin user was exposed, allowing any attacker to reset the admin password and take control of managed devices.

Benjamin Heald Follow

Published on healdb.tech

Bounty$1,350 View original

Teradici - PCoIP Management Console version 20.01.0 and 19.11.1

Benjamin Heald (@heald_ben), on healdb.tech

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

Teradici provides management software for remote workstation setups. The impacted product in this write-up is the PCoIP Management Console, specifically versions 20.01.0 and 19.11.1. The Management Console is the administrative interface for managing PCoIP Zero Clients and PCoIP Remote Workstation Cards, so control of its admin account means control of the endpoints it manages.

The feature at the centre of the bug is the admin password reset flow. Normally a password reset endpoint should only be reachable by an authenticated administrator, or should at least redirect unauthenticated visitors back to the login page. Here it did neither.

The vulnerability was assigned CVE-2020-10965.

Setup

The work was done during an undisclosed bug bounty program, against a subdomain named mc.****.************.com. The tools used were:

  • Burp Suite
  • Aquatone
  • Google Chrome

No accounts or special roles were needed. The whole point of the finding is that it works without authentication.

Finding it

Aquatone was used for reconnaissance and showed that ports 80 and 443 were open on the subdomain, serving a login page.

The login page revealed that the application was built on some kind of JavaScript framework. That prompted a look at the Chrome developer utilities, specifically the routing files, to see whether there were any interesting endpoints defined in the client-side code.

Among the routes was one called /login/resetadminpassword. What made it stand out was that, unlike the other routes, it was not programmed to redirect back to the login page.

Exploitation

Step 1: Visit the route directly

Requesting the route as an unauthenticated user did not bounce to the login page. Instead it returned a form for resetting the Admin user's password.

Step 2: Reset the admin password

Submitting that form as any unauthenticated user changed the admin user's password. No prior session, credential or other precondition was required.

Root cause

The route /login/resetadminpassword was exposed to unauthenticated users and served a working password reset form for the Admin account. The route existed in the routing files and was not programmed to redirect back to the login page. Submitting the form as an unauthenticated user changed the Admin password, so the reset was accepted without authentication. The report does not describe the server-side code, so the precise mistake there is not stated; what is clear is that authentication was missing on a privileged function.

Impact

Teradici's own disclosure described the impact as follows:

The affected Management Console releases allow unauthenticated user access to the Management Console /login/resetadminpassword URL. From here, unauthenticated users can reset the admin password on the Management Console, and can take control of PCoIP Zero Clients and PCoIP Remote Workstation Cards managed by it.

The researcher describes the impact as critical, with almost no attacker interaction needed. According to Teradici, unauthenticated users can reset the admin password and take control of the managed devices.

Disclosure timeline

Date Event
29 Feb 2020 Reported to the bug bounty program, believing it to be specific to their installation
29 Feb 2020 Reported to Teradici, upon learning the vulnerability affected the entire version
03 Mar 2020 First response from Teradici, triaging the vulnerability
04 Mar 2020 Teradici awards a bounty of $1000
05 Mar 2020 Teradici releases a patched version of the product
07 Mar 2020 The bug bounty program fixes their installation, awarded $350
13 Mar 2020 Teradici releases a public notice of the vulnerability

Fix

Teradici released a patched version of the product on 05 Mar 2020, and published a public notice on 13 Mar 2020. The report does not describe the code change itself. The bug bounty program separately fixed their own installation on 07 Mar 2020.

Variants to test

  1. Enumerate client-side routes. Pull the JavaScript routing files from a SPA and list every route. A positive result is a route that renders a privileged form or view without redirecting to the login page.
  2. Try administrative reset and recovery paths unauthenticated. Request paths such as password reset, admin recovery and account unlock without a session. A positive result is a working form or a successful state change rather than a redirect or an error.
  3. Compare route guards. For each route, check whether the guard redirects unauthenticated users. A route that behaves differently from its siblings is worth a closer look.
  4. Test the server side, not just the client. Submit the form found in step 2 with no cookies. A positive result is a success response and a changed credential.
  5. Check other Teradici Management Console deployments. The vulnerability affected the entire version, so other deployments of the affected versions are worth checking.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 12 min read.

What happened, in plain words

A security researcher found a bug in a piece of software made by a company called Teradici. The software is called the PCoIP Management Console, and it is the control panel that an organisation uses to manage its remote workstations. The bug was simple to describe: a web page that was supposed to be for administrators only, the page that lets you reset the admin password, could be opened by anyone at all, with no login. Anyone who could reach that page could change the admin password and then take over the whole system.

The bug was given an official identifier, CVE-2020-10965. A CVE is a public catalogue number for a known security flaw, a bit like a reference number on a recall notice for a faulty product. The researcher was paid a bounty for finding it: 1000 US dollars from Teradici and 350 US dollars from the bug bounty program whose site he found it on.

This article walks through how he found it, step by step, explaining each idea as it comes up.

The product and the versions affected

The affected product is the PCoIP Management Console, in versions 20.01.0 and 19.11.1.

What is a Management Console? Think of a building's front desk. The front desk does not do the work itself, but it holds the keys, the guest list and the instructions for everyone inside. The PCoIP Management Console is the front desk for a fleet of remote workstation devices: PCoIP Zero Clients and PCoIP Remote Workstation Cards. Those are pieces of hardware that let a person sit at a small device and use a powerful computer somewhere else on the network, as if it were on their desk.

Because the console manages those devices, whoever controls the console's admin account controls the devices too. That is why a bug in the console matters so much.

The feature at the centre of the bug is the admin password reset flow. A password reset flow is the set of pages that let someone who has forgotten their password set a new one. Normally such a page should either require you to be logged in already, or at the very least send you back to the login page if you are not. Here it did neither.

The tools used

The researcher used three tools:

  • Burp Suite: a program that sits between your browser and a website and lets you watch and change the traffic going back and forth. Think of it as a transparent pipe with a window in it.
  • Aquatone: a tool that takes a list of subdomains and checks which ones are alive and what they show, so you can survey a large estate quickly.
  • Google Chrome: an ordinary web browser, used here with its built-in developer tools.

A subdomain is a named section of a larger domain. If example.com is the whole building, shop.example.com is one office inside it. Organisations often have many subdomains, and each one can run different software.

Finding it

The work was done during an undisclosed bug bounty program. A bug bounty program is a scheme where an organisation invites outside researchers to look for flaws in its systems and pays them for reporting what they find, instead of prosecuting them.

The researcher found a subdomain named mc.****.************.com.

He ran Aquatone against it. Aquatone showed that ports 80 and 443 were open and serving a login page.

What is a port? A computer on a network is like an office building with many numbered doors. Each door leads to a different service. Port 80 is the standard door for ordinary unencrypted web traffic, and port 443 is the standard door for encrypted web traffic, the kind that shows a padlock in your browser. When a scan says these ports are open, it means a web server is listening there.

The screenshot shows the login page that the subdomain served. Seeing a login page tells you there is an application behind it that expects users to sign in, which is exactly the kind of thing worth poking at.

Looking at the routing files

The login page made it clear that the application was built with some kind of JavaScript framework. A JavaScript framework is a toolkit for building web applications. In a traditional website, every click loads a fresh page from the server. In a framework-built application, often called a single-page application or SPA, the browser downloads one bundle of code once and then swaps the contents of the screen as you move around. The list of which screen belongs to which web address is kept in the browser, in what are called routing files.

This matters for security because the routing files are just text the browser downloads. Anyone can read them. If a developer forgets to protect a route, the route's name is sitting there in plain sight.

So the researcher opened Chrome's developer utilities, the built-in panel that lets you inspect a page's code and network traffic, and read the routing files to see whether any interesting endpoints were defined.

An endpoint is a specific address on a server that does a specific job, like a particular counter in a large office. /login is one endpoint, /logout is another.

Among the routes he found one called /login/resetadminpassword. What made it stand out was that, unlike the other routes, it was not programmed to redirect back to the login page.

A redirect is the server or the application telling your browser "not here, go over there instead". Many applications use redirects as a simple guard: if you are not logged in and you ask for a private page, you get bounced to the login screen. The fact that this one route did not have that bounce built in was the clue.

The screenshot shows the routing file with the route in question, the one that lacked the redirect the others had.

Exploiting it

Step 1: Visit the route directly

He requested the route as an unauthenticated user. Unauthenticated simply means not logged in, with no account and no session.

Requesting the route did not bounce him to the login page. Instead it returned a form for resetting the Admin user's password.

A form is the part of a web page with boxes you fill in and a button you press to send the values to the server. A password reset form normally has a box for the new password and a button to submit it.

The screenshot shows the reset form that appeared to a visitor who had never logged in.

Step 2: Reset the admin password

Submitting that form as any unauthenticated user changed the admin user's password. No prior session, credential or other precondition was required.

A session is how a website remembers that you logged in. When you sign in, the server sends your browser a small piece of data, usually called a cookie, and the browser sends it back with every later request so the server knows who you are. Think of it as a wristband you get at an event: show it at the door and you get in without proving who you are again. The point of this bug is that no wristband was needed at all.

A credential is anything you use to prove identity: a username and password, a key, a certificate.

Why it worked

The route /login/resetadminpassword was reachable by unauthenticated users and served a working password reset form for the Admin account. The route existed in the routing files and was not programmed to redirect back to the login page. Submitting the form as an unauthenticated user changed the Admin password, so the reset was accepted without authentication.

The report does not describe the server-side code, so the precise mistake there is not stated. What is clear is that authentication was missing on a privileged function. In security terms this is a missing authentication flaw: a feature that should have checked who you are simply did not check.

It is worth separating two ideas here, because beginners often mix them up. Client-side means code that runs in your browser. Server-side means code that runs on the machine hosting the site. Hiding a button in the browser is not security, because the browser belongs to the visitor and can be made to do whatever the visitor wants. The real check has to happen on the server. Here the browser-side routing showed the route, and the server-side code accepted the reset without asking who was calling.

Impact

Teradici's own disclosure described the impact as follows:

The affected Management Console releases allow unauthenticated user access to the Management Console /login/resetadminpassword URL. From here, unauthenticated users can reset the admin password on the Management Console, and can take control of PCoIP Zero Clients and PCoIP Remote Workstation Cards managed by it.

The researcher describes the impact as critical, with almost no attacker interaction needed. Attacker interaction means anything the victim has to do for the attack to work, such as clicking a link or opening a file. Here, nobody had to be tricked into anything: the attacker just visited a page.

According to Teradici, unauthenticated users can reset the admin password and take control of the managed devices. That is the front desk handing out the master keys to anyone who walks in.

Disclosure timeline

A disclosure timeline is the record of who was told what, and when. It matters because it shows the vendor had a fair chance to fix the problem before it became public.

Date Event
29 Feb 2020 Reported to the bug bounty program, believing it to be specific to their installation
29 Feb 2020 Reported to Teradici, upon learning the vulnerability affected the entire version
03 Mar 2020 First response from Teradici, triaging the vulnerability
04 Mar 2020 Teradici awards a bounty of $1000
05 Mar 2020 Teradici releases a patched version of the product
07 Mar 2020 The bug bounty program fixes their installation, awarded $350
13 Mar 2020 Teradici releases a public notice of the vulnerability

Triaging means the vendor has looked at the report, confirmed it is real, and started to work out how serious it is and who needs to fix it. A patch is an update that closes the hole.

Notice the sequence: the researcher first assumed the problem was only in that one organisation's setup, then realised the same version was affected everywhere, and told the vendor the same day. Teradici released a patched version on 05 Mar 2020.

The fix

Teradici released a patched version of the product on 05 Mar 2020, and published a public notice on 13 Mar 2020. The report does not describe the code change itself. The bug bounty program separately fixed their own installation on 07 Mar 2020.

Variants to test

If you want to look for the same kind of mistake elsewhere, these are the steps the researcher's approach suggests. They are written for someone learning, so each one says what you are looking for.

  1. Enumerate client-side routes. Pull the JavaScript routing files from a single-page application and list every route. A positive result is a route that renders a privileged form or view without redirecting to the login page. In plain words: read the map the application gives your browser, and look for a door that is not locked.
  2. Try administrative reset and recovery paths unauthenticated. Request paths such as password reset, admin recovery and account unlock without a session. A positive result is a working form or a successful state change rather than a redirect or an error. In plain words: knock on the staff-only doors while wearing no badge, and see which ones open.
  3. Compare route guards. For each route, check whether the guard redirects unauthenticated users. A route that behaves differently from its siblings is worth a closer look. A route guard is the bit of code that decides whether you are allowed to see a particular screen. If nine routes bounce you to the login page and one does not, that one is the odd one out.
  4. Test the server side, not just the client. Submit the form found in step 2 with no cookies. A positive result is a success response and a changed credential. In plain words: do not trust the browser's opinion of whether you are allowed; ask the server directly and see what it says.
  5. Check other Teradici Management Console deployments. The vulnerability affected the entire version, so other deployments of the affected versions are worth checking. In plain words: if one installation of a version is broken, every installation of that version is broken in the same way.

What a beginner should take away

  • A page being hidden from the menu is not the same as a page being protected. The routing files in a browser are readable by anyone.
  • The check that matters is the one on the server. If the server accepts a request without asking who sent it, the browser-side code is irrelevant.
  • Password reset and account recovery pages are high-value targets, because they change credentials by design.
  • A route that behaves differently from its neighbours is a signal worth following.
  • Reporting a bug responsibly, to the vendor and through a bounty program, is what turns a discovery into a fix.

Glossary

  • API: a defined set of addresses and rules that one piece of software uses to talk to another, like a menu of things you are allowed to ask for.
  • Attacker interaction: anything the victim must do for an attack to succeed, such as clicking a link.
  • Authentication: the process of proving who you are, usually with a username and password.
  • Bug bounty program: a scheme where an organisation pays outside researchers for reporting security flaws instead of punishing them.
  • Client-side: code that runs in the visitor's browser.
  • Cookie: a small piece of data a website stores in your browser so it can recognise you on later requests.
  • Credential: anything used to prove identity, such as a password or a key.
  • CVE: a public catalogue number assigned to a known security vulnerability.
  • Disclosure timeline: the dated record of who was told about a vulnerability and when.
  • Endpoint: a specific address on a server that performs a specific job.
  • Form: the part of a web page with input boxes and a submit button that sends values to the server.
  • JavaScript framework: a toolkit for building interactive web applications.
  • Management Console: the administrative control panel for a product or fleet of devices.
  • Missing authentication: a flaw where a feature that should check who you are does not check at all.
  • Patch: an update that fixes a security flaw.
  • PCoIP Management Console: Teradici's administrative interface for managing PCoIP Zero Clients and PCoIP Remote Workstation Cards.
  • PCoIP Remote Workstation Card: a hardware card that lets a powerful computer be used remotely.
  • PCoIP Zero Client: a small device that connects a user to a remote workstation.
  • Port: a numbered door on a networked computer, each leading to a different service; 80 is unencrypted web traffic and 443 is encrypted web traffic.
  • Redirect: an instruction telling the browser to go to a different address instead.
  • Route: the mapping between a web address and the screen or action it shows.
  • Route guard: code that decides whether a visitor is allowed to see a particular route.
  • Routing files: the files in a single-page application that list which address shows which screen.
  • Server-side: code that runs on the machine hosting the website, which the visitor cannot change.
  • Session: the way a website remembers that you are logged in across multiple requests.
  • Single-page application (SPA): a web application that loads once and swaps screens in the browser instead of loading new pages from the server.
  • Subdomain: a named section of a larger domain, such as shop.example.com within example.com.
  • Triaging: the vendor's process of confirming a reported flaw and assessing its seriousness.
  • Unauthenticated: not logged in, with no account or session.
  • Vulnerability: a weakness in software that can be used to cause harm or gain unauthorised access.

More from Teradici

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.