PT-2022-8851 · Unknown · Oauth2-Server
Tamjidrahat
·
Published
2022-08-29
·
Updated
2022-09-07
·
CVE-2020-26938
CVSS v3.1
7.2
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
oauth2-server (aka node-oauth2-server) versions 3.1.1 and earlier
Description
The issue arises from an incorrect URI pattern (
[a-zA-Z][a-zA-Z0-9+.-]+:) used to check the redirect uri parameter during authorization and token requests. This flaw allows a malicious client to inject an XSS payload through the redirect uri parameter, potentially leading to security breaches.Recommendations
For versions 3.1.1 and earlier, update to a version later than 3.1.1 to resolve the issue.
As a temporary workaround, consider validating the
redirect uri parameter against a correct URI pattern to prevent malicious redirects.Exploit
Fix
Open Redirect
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Oauth2-Server