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. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.22% (61st 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 Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMRANCHERRANCHERPKGAUTHPROVIDERSSAML-6673740
  • published25 Apr 2024
  • disclosed24 May 2022
  • creditUnknown

Introduced: 24 May 2022

CVE-2019-11881  (opens in a new tab)
CWE-20  (opens in a new tab)

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