When a database URL in a Kulyrax configuration could not be parsed, six adapters reported the error with the full URL, password included, after environment-variable expansion.
Each adapter checks its connection URL when it is built. If the URL does not parse, the error message quotes it, for example:
postgres adapter "store": `url` does not parse: postgres://app:<password>@db:54x32/appThe URL is shown after ${VAR} expansion. A configuration that keeps the password
in an environment variable (postgres://app:${DB_PASSWORD}@db/app) therefore still
shows the password itself.
A URL is refused for ordinary reasons: a mistyped port, or a password with a
character the driver does not accept unescaped. The message reaches:
kulyrax run, ingest, dry-run, explain, replay and rebuild, and
wherever that output is collected (terminals, service logs, CI logs);kulyrax-core receives;kulyrax reload rejected for this reason, the file
<config folder>/.kulyrax/control/reload-result, written with default file
permissions.
Kulyrax prints no credential in any other path. Specifically:Someone who can read Kulyrax's output or logs, or the reload result file, can obtain the password of the database whose URL was refused. It requires a misconfigured URL, and the operator who wrote the configuration already knows the password. The risk is the copies: logs and CI output kept and readable by more people than the database password should be.
0.12.1 shows the URL with the password as ***, in every adapter error and in the
Debug output of every adapter and source configuration. It also masks the values of
the query parameters password, sslpassword, token, apikey, api_key,
access_token and secret (whatever their case), and writes reload-result
readable by its owner only (0600 on Unix).
Until you upgrade: make sure every database URL parses before you start Kulyrax, and
restrict who can read Kulyrax's logs and the .kulyrax/control/ folder.
If you ever saw a "url does not parse" (or Neo4j "uri …") error from Kulyrax,
rotate that database's password and remove old copies of the logs and of
.kulyrax/control/reload-result that may hold it.
Found during the 1.0 senior-engineer review (F-06).
Fuente: NVD
Evaluación gratuita de vulnerabilidades
Evalúa tus prácticas de seguridad en la nube en 9 dominios de seguridad para evaluar tu nivel de riesgo e identificar brechas en tus defensas.
Obtén una demostración personalizada
"La mejor experiencia de usuario que he visto en mi vida, proporciona una visibilidad completa de las cargas de trabajo en la nube."
"Wiz proporciona un panel único para ver lo que ocurre en nuestros entornos en la nube."
"Sabemos que si Wiz identifica algo como crítico, en realidad lo es."