← Übersicht Puppet / OpenVox

puppet-openssl insecurely uses OpenSSL's -passin/-passout options

GHSA-73qj-mxx8-4q9v

Hoch · CVSS 7.1 Lokal Kein Fix bekannt

Veröffentlicht
01.10.2024 15:51
Zuletzt geändert
01.10.2024
EPSS (30 Tage)
unbekannt
CVSS-Vektor
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Beschreibung

Originaltext der Quelle, nicht übersetzt.

### Summary While looking at puppet-openssl, I realized it uses OpenSSL's -passin/-passout options with "pass:" prefix, which leads to leakage of the password in the process list (and thus to all users of a system). OpenSSL documentation [1] also states this is insecure. I think we should either use a (properly secured) tempfile for this, or stdin. [1] https://www.openssl.org/docs/man3.3/man1/openssl-passphrase-options.html ### Details ``` % git grep pass: lib/puppet/provider/x509_cert/openssl.rb: options << ['-passin', "pass:#{resource[:password]}"] if resource[:password] lib/puppet/provider/x509_request/openssl.rb: options << ['-passin', "pass:#{resource[:password]}"] if resource[:password] manifests/export/pem_cert.pp: default => "-nokeys -passin pass:'${in_pass}'", manifests/export/pem_key.pp: default => "-passin pass:'${in_pass}'", manifests/export/pem_key.pp: default => "-passout pass:'${out_pass}'", manifests/export/pkcs12.pp: default => "-passin pass:${in_pass}", manifests/export/pkcs12.pp: default => "-passout pass:${out_pass}", ``` ### PoC Watch `ps aux |grep passin` while Puppet is running. ### Impact Local users can obtain cert passwords and thus take over the cert if they can access the keys (which they usually should not, hopefully).

Betroffene Pakete im beobachteten Stack

GitHubvoxpupuli/puppet-openssl/puppet/opensslkein Fix bekanntGHSA-73qj-mxx8-4q9v

Empfohlene Prüfung

  1. Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
  2. Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
  3. Erreichbarkeit beachten: Der Angriffsweg (Lokal) ist aus dem CVSS-Vektor abgeleitet.

Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.