PT-2023-21727 · Unknown · Angular-Server-Side-Configuration
Milo526
·
Published
2023-03-24
·
Updated
2023-04-03
·
CVE-2023-28444
CVSS v3.1
9.9
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L |
Name of the Vulnerable Software and Affected Versions
angular-server-side-configuration versions 15.0.0 through 15.0.x
Description
The issue concerns the detection of environment variables in TypeScript files during the build time of an Angular CLI project. These variables are written to a ngssc.json file and later inserted into the app's index.html file. In a monorepo setup, this could lead to the exposure of environment variables intended for a backend or service via index.html. This has no impact on plain Angular projects without a backend component.
Recommendations
For angular-server-side-configuration versions 15.0.0 through 15.0.x, update to version 15.1.0, which adds an option
searchPattern to restrict the detection file range by default. Alternatively, manually edit or create ngssc.json, or run a script after ngssc.json generation as a temporary workaround.Exploit
Fix
Information Disclosure
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Angular-Server-Side-Configuration