Skip to content

XSS Vulnerabilty in Login URL Parameters

High
NyanKiyoshi published GHSA-wq85-q492-8vxv Jun 16, 2023

Package

saleor/react-storefront (GitHub)

Affected versions

≤ ca86cd6433cd68426e28b028539c2fd8f4d496a6

Patched versions

>= c29aab226f07ca980cc19787dcef101e11b83ef7

Description

The URL parameter next at /[channel]/[locale]/account/login/ in react-storefront can be used to craft XSS attacks against unsuspecting users.

Impact

Arbitrary Javascript code can be executed by malicious actor against a user which could lead to leaking information and perform actions on behalf of the user. This requires user-interaction, such as but not limited to social-engineering.

Patches

Workarounds

We recommend upgrading to the latest version as soon as possible. If unable, possible workarounds are:

  • Define a Content-Security-Policy disallowing inline scripts (script-src)
  • Drop the next parameter from login page (e.g. WAFs)

References

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L

CVE ID

No known CVE

Weaknesses

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. Learn more on MITRE.

Credits