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
7.6
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
Low
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

Credits