CVE-2018-19367

Portainer through 1.19.2 provides an API endpoint (/api/users/admin/check) to verify that the admin user is already created

published November 20, 2018

CVSS
—
EPSS
1%
Percentile
73.4
In the wild
Unconfirmed
What it is

⚠️ This API endpoint holds a surprising flaw! Portainer allows an attacker to set an admin password just by checking if the admin user exists — like a locksmith revealing if they have the master key just by asking! 🔑 Think of it as a restaurant that checks if a reservation is made. If you inquire and find out there’s no reservation, they unwittingly give you a chance to create one — and suddenly, you're dining in the chef's table without a booking! If an attacker finds that the admin user hasn't been created, they can set an admin password, potentially giving them access to the entire system. This could lead to unauthorized administrative actions or sensitive data exposure, which could be absolutely devastating!

Put simply

Think of it as a restaurant that checks if a reservation is made. If you inquire and find out there’s no reservation, they unwittingly give you a chance to create one — and suddenly, you're dining in the chef's table without a booking! This vulnerability arises from a poorly secured API endpoint in Portainer, which reveals whether the admin account exists through different HTTP response codes. If it returns a 404, an attacker can then exploit this to set an admin password, compromising the system.

What to do

If an attacker finds that the admin user hasn't been created, they can set an admin password, potentially giving them access to the entire system. This could lead to unauthorized administrative actions or sensitive data exposure, which could be absolutely devastating! To mitigate this risk, upgrade Portainer to a version beyond 1.19.2, which addresses this vulnerability. Additionally, consider implementing stricter access controls on the API to limit exposure and monitor for any suspicious activity. 🛡️ You can secure your environment! Follow these steps and you'll turn this vulnerability into just another tale of victory in your security journey. 🚀

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01469 · 73.4th percentile
Published
2018-11-20T09:00Z
EPSS history
Timeline
  • 20 NOV 09:00Z
    Portainer through 1.19.2 provides an API endpoint (/api/users/admin/check) to verify that the admin user is already created
    cvelistv5