Technical impact
CAST Imaging includes a hardcoded authentication token in the KeyCloakController class of auth-service.jar. An attacker who can get the source code, application package, logs, or configuration files can replay this token to call authentication endpoints without providing credentials. By using the token with the /api/auth/keycloak/users endpoint, the attacker can enumerate users across Keycloak realms and obtain user attributes that contain API token hashes, allowing reconnaissance and potential exploitation.
Affected Systems
The vulnerability is confirmed in CAST Software Imaging version 3.6.2. No specific version range is supplied by the vendor, but they state that the issue is fixed in newer releases. Therefore, earlier releases may also be affected.
Risk and Exploitability
The CVSS score of 8.7 classifies this flaw as high severity. The EPSS score is not available, and it is not listed in CISA’s KEV catalog. Exploitation requires access to the application package or related files, which can be achieved through a compromised environment or insider threat. Once the attacker obtains the hardcoded token, they can perform unauthenticated API calls, enumerate users, and collect token hashes, presenting a significant threat to confidentiality and potentially to overall system integrity.