GHSA-78p3-fwcq-62c2: @saltcorn/server Remote Code Execution (RCE) / SQL injection via prototype pollution by manipulating `lang` and `defstring` parameters when setting localizer strings
The endpoint /site-structure/localizer/save-string/:lang/:defstring
accepts two parameter values: lang
and defstring
. These values are used in an unsafe way to set the keys and value of the cfgStrings
object. It allows to add/modify properties of the Object prototype
that result in several logic issues, including:
- RCE vulnerabilities by polluting the
tempRootFolder
property - SQL injection vulnerabilities by polluting the
schema
property when usingPostgreSQL
database.
References
Detect and mitigate GHSA-78p3-fwcq-62c2 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →