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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.09% (41st percentile)

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

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
4.7 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Changed
  • Confidentiality (C)
    None
  • Integrity (I)
    Low
  • Availability (A)
    None