CVE-2024-22244: Harbor Open Redirect URL

Published Jun 2, 2024
·
Updated

Description Under OIDC authentication mode, there is a redirecturl parameter exposed in the URL which is used to redirect the current user to the defined location after the successful OIDC login, This redirecturl can be an ambiguous URL and can be used to embed a phishing URL. For example: if a user clicks the URL with a malicious redirecturl: https://<harborhostnmae>/c/oidc/login?redirecturl=https://<redirectdomain> It might redirect the current user without their knowledge to a malicious site, posing a potential risk. To avoid this issue, the redirecturl should be checked if it is a local path when reading it from the original request URL. //src/core/controllers/oidc.go ... redirectURL := oc.Ctx.Request.URL.Query().Get("redirecturl") if !utils.IsLocalPath(redirectURL) { log.Errorf("invalid redirect url: %v", redirectURL) oc.SendBadRequestError(fmt.Errorf("cannot redirect to other site")) return } if err := oc.SetSession(redirectURLKey, redirectURL); err != nil { ... Impact When Harbor is configured with OIDC authentication and users log in via a link outside the Harbor server, it might be vulnerable to an open redirect attack. This attack only involves the OIDC Harbor user, if the current Harbor instance is not configured with OIDC auth, the redirecturl doesn't exist and the Harbor instance is not vulnerable to the open redirect attack.

The following versions of Harbor are involved: <=Harbor 2.8.4, <=Harbor 2.9.2, <= Harbor 2.10.0

Patches Harbor 2.8.5, Harbor 2.9.3, Harbor 2.10.1

Workarounds When the Harbor is configured with OIDC authentication, warn the user not to log into the Harbor through external links.

References N/A

Credit Thanks Arnaud Cordier (arnaud@cordier.work)

Other sources

Open Redirect in Harbor  <=v2.8.4, <=v2.9.2, and <=v2.10.0 may redirect a user to a malicious site.

MITRE

Affected Software

6 affected componentsFixes available
go/github.com/goharbor/harbor>=2.10.0<2.10.1
2.10.1
go/github.com/goharbor/harbor>=2.9.0<2.9.3
2.9.3
go/github.com/goharbor/harbor<2.8.5
2.8.5
linuxfoundation Harbor>=2.8.0<2.8.5
linuxfoundation Harbor>=2.9.0<2.9.3
linuxfoundation Harbor=2.10.0

Event History

Jun 2, 2024
Advisory Published
via GitHub·10:32 PM
Jun 10, 2024
CVE Published
via MITRE·11:02 PM
Data Sourced
via MITRE·11:02 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
Affected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-22244?

CVE-2024-22244 has been classified as a high severity vulnerability due to its potential to facilitate phishing attacks.

2

How do I fix CVE-2024-22244?

To mitigate CVE-2024-22244, upgrade to Harbor version 2.10.1, 2.9.3, or 2.8.5 or later.

3

What does CVE-2024-22244 affect?

CVE-2024-22244 affects multiple versions of Harbor, including versions prior to 2.10.1, 2.9.3, and up to 2.8.5.

4

Can CVE-2024-22244 be exploited in production environments?

Yes, CVE-2024-22244 can be exploited in production environments by redirecting users to malicious URLs.

5

What type of attack is facilitated by CVE-2024-22244?

CVE-2024-22244 facilitates phishing attacks by allowing the injection of ambiguous URLs in the redirect_url parameter.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203