Improper Input Validation Affecting github.com/rancher/rancher/pkg/auth/providers/saml package, versions <2.3.0-alpha4


0.0
medium

Snyk CVSS

    Attack Complexity Low
    User Interaction Required
    Scope Changed

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.08% (32nd percentile)
Expand this section
NVD
4.7 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMRANCHERRANCHERPKGAUTHPROVIDERSSAML-6673740
  • published 25 Apr 2024
  • disclosed 24 May 2022
  • credit Unknown

How to fix?

Upgrade github.com/rancher/rancher/pkg/auth/providers/saml to version 2.3.0-alpha4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation via the errorMsg parameter in the login component. An attacker can display arbitrary content to users, potentially leading them to phishing sites by crafting messages that appear legitimate but contain malicious links.

PoC

https://RANCHER:PORT/login?errorMsg=%68%74%74%70%73%3a%2f%2f%77%77%77%2e%6f%77%61%73%70%2e%6f%72%67%2f%69%6e%64%65%78%2e%70%68%70%2f%57%65%62%5f%50%61%72%61%6d%65%74%65%72%5f%54%61%6d%70%65%72%69%6e%67