Redgate SQL Change Automation Plugin stored credentials in plain text
Date: 2022-05
Affected: maven/com.redgate.plugins.redgatesqlci:redgate-sql-ci
Attack vector: auth-bypass
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2020-2092
CVE-2020-2095
CWE: CWE-522
CWE-611
CVSS: 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N)

Redgate SQL Change Automation Plugin 2.0.4 and earlier stores a NuGet API key unencrypted in job config.xml files as part of its configuration. This credential could be viewed by users with Extended Read permission or access to the Jenkins controller file system. This is due to an incomplete fix of [SECURITY-1598](https://www.jenkins.io/security/advisory/2019-12-17/#SECURITY-1598). Redgate SQL Change Automation Plugin 2.0.5 now stores the API key encrypted. Existing jobs need to have their configuration saved for existing plain text passwords to be overwritten.


Mitigations:

Architectural layers (MAESTRO):