Vulnerability Details : CVE-2023-28628
lambdaisland/uri is a pure Clojure/ClojureScript URI library. In versions prior to 1.14.120 `authority-regex` allows an attacker to send malicious URLs to be parsed by the `lambdaisland/uri` and return the wrong authority. This issue is similar to but distinct from CVE-2020-8910. The regex in question doesn't handle the backslash (`\`) character in the username correctly, leading to a wrong output. ex. a payload of `https://example.com\\@google.com` would return that the host is `google.com`, but the correct host should be `example.com`. Given that the library returns the wrong authority this may be abused to bypass host restrictions depending on how the library is used in an application. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Vulnerability category: Open redirect
Products affected by CVE-2023-28628
- cpe:2.3:a:lambdaisland:uri:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-28628
0.08%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 36 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-28628
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
NIST | |
5.4
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
2.8
|
2.5
|
GitHub, Inc. |
CWE ids for CVE-2023-28628
-
A web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a Redirect. This simplifies phishing attacks.Assigned by: nvd@nist.gov (Primary)
-
The product uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere.Assigned by: security-advisories@github.com (Secondary)
References for CVE-2023-28628
-
https://github.com/lambdaisland/uri/commit/f46db3e84846f79e14bfee0101d9c7a872321820
Merge pull request from GHSA-cp4w-6x4w-v2h5 · lambdaisland/uri@f46db3e · GitHubPatch
-
https://github.com/lambdaisland/uri/security/advisories/GHSA-cp4w-6x4w-v2h5
`authority-regex` returns the wrong authority · Advisory · lambdaisland/uri · GitHubExploit;Vendor Advisory
Jump to