Skip to content

oidc-agent 5.3.8

Latest

Choose a tag to compare

@zachmann zachmann released this 01 Sep 12:51
f31513a

Security

  • Fixed an OS command injection vulnerability (CWE-78) in the automatic browser-launch path. The authorization URL is
    built from the provider's
    authorization_endpoint discovery value and was passed to
    system("xdg-open \"<url>\"") after only replacing spaces with %20, so a malicious or compromised OpenID Provider
    could inject shell command substitution (e.g. $(...)) that executed as the user running oidc-gen
    (or the oidc-prompt GUI flow) with the default auto-open-url: true
    setting. The browser is now launched via fork()+execvp() (no shell)
    and the authorization_endpoint is validated as a well-formed http(s)
    URL before use. CVSS 3.1 8.8 High. Workarounds for older releases:
    "auto-open-url": false or oidc-gen --no-url-call.