You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Patch Changes
c8040ff Thanks @tufantunc! - Mask short, low-entropy credentials in plaintext configuration assignments (name=value, UCI option name 'value') during output redaction when the field name indicates a secret.
Security
Fixed GHSA-95pj-qcm9-m3m9: every redaction layer keyed off the value's shape — known token patterns, the entropy scan, configured literal secrets — so a short, low-entropy credential under a sensitive field name (webhook_token=abc123, password="demo123", OpenWrt option wifi_psk 'sample123') passed redactText() unchanged into file reads, command output, session output and audit logs. Plaintext assignments whose field name indicates a secret — the last _/- segment is password, passwd, pass, passphrase, secret, token or psk, or the name is a known key compound (key, private_key, api-key, …), covering UCI option/list lines and the dotted tails of uci show — are now masked, while password_min, PasswordAuthentication, persist_key and smtp_sasl_password_maps stay untouched. Reported by @jbdaddy04. Affected: <= 2.22.1.