The web application that owns the device clearly stores the credentials within the user management section. Obtaining this information can be done remotely due to the incorrect management of the sessions in the web application.
https://www.cisa.gov/news-events/ics-advisories/icsa-23-250-03