Sploit.io - Search

Product: s-cart/core, version: >= unspecified, < 6.9

CVE-2022-21149

Severity: MEDIUM

Description: The package s-cart/s-cart before 6.9; the package s-cart/core before 6.9 are vulnerable to Cross-site Scripting (XSS) which can lead to cookie stealing of any victim that visits the affected URL so the attacker can gain unauthorized access to that user's account through the stolen cookie.

CVSS Score: 5.4

Priority

D

CISA Data

EPSS Data

  • EPSS: 0.001730000
  • Percentile: 0.384780000
  • Date: 2026-06-08

ExploitDB

No data available.

HackerOne Data

  • Rank: 9688
  • Reports submitted count: 0
  • Unknown: 0
  • None: 0
  • Low: 0
  • Medium: 0
  • High: 0
  • Critical: 0

GitHub PoCs

    Nuclei Templates

    No data available.

    VulnCheck Data

    Affected Products:

    • n/a s-cart/s-cart - Versions: unspecified
    • n/a s-cart/core - Versions: unspecified

    References:

    Risk Assessment

    1. Risk Assessment
    The vulnerability CVE-2022-21149 is a Cross-Site Scripting (XSS) flaw affecting versions of s-cart/s-cart and s-cart/core prior to 6.9. XSS vulnerabilities allow an attacker to inject malicious scripts into web pages viewed by other users. In this case, the XSS can lead to cookie stealing. The business impact stems from the potential compromise of user accounts, allowing attackers to perform actions as the legitimate user. The CVSS score of 5.4 (Medium) indicates a moderate risk. The likelihood of exploitation is moderate, as it requires user interaction (a victim needs to visit an affected URL), but the ease of exploitation is relatively low once the victim is on the page. The vulnerability impacts confidentiality and integrity, as stolen cookies can reveal user session information and allow the attacker to manipulate user accounts. Availability is not directly impacted by this vulnerability. The EPSS score of 0.001730000 suggests a relatively low but not insignificant probability of exploitation in the wild.

    2. Potential Attack Scenarios
    An attacker could craft a malicious URL containing the XSS payload and deliver it to a user via phishing email, social media, or other means. When the user clicks on the link, the malicious script executes in their browser, stealing their session cookie. The attacker can then use this stolen cookie to impersonate the user, gaining unauthorized access to their account within s-cart. For example, the attacker could send a phishing email disguised as a legitimate s-cart notification with a link to a crafted URL. Once a user clicks the link, their session cookie is sent to the attacker’s server. The attacker then uses this cookie to access the user's s-cart account, potentially viewing order history, making purchases, or modifying account details.

    3. Mitigation Recommendations
    The primary mitigation is to upgrade s-cart/s-cart and s-cart/core to version 6.9 or later. This update should include the necessary fixes to prevent the XSS vulnerability. In the interim, if patching immediately isn’t possible, consider implementing input validation and output encoding on all user-supplied data within the affected components. This will help sanitize the data and prevent malicious scripts from being executed. Web Application Firewalls (WAFs) can be configured to detect and block XSS attacks. Regularly monitor application logs for signs of XSS exploitation. Relevant resources include the Snyk vulnerability reports: https://snyk.io/vuln/SNYK-PHP-SCARTSCART-2389035 and https://snyk.io/vuln/SNYK-PHP-SCARTCORE-2389036, and the PacketStorm security listing: https://packetstormsecurity.com/search/?q=CVE-2022-21149

    4. Executive Summary
    CVE-2022-21149 is a medium-severity Cross-Site Scripting (XSS) vulnerability affecting the s-cart e-commerce platform. This vulnerability allows attackers to steal user cookies, potentially gaining unauthorized access to user accounts. If a user clicks a malicious link, an attacker can impersonate them and access their s-cart account. The most effective way to mitigate this risk is to update s-cart/s-cart and s-cart/core to version 6.9 or later. Prompt patching is recommended to protect user accounts and maintain the integrity of the s-cart platform, reducing the risk of potential data breaches or fraudulent transactions. Addressing this vulnerability is important for maintaining customer trust and ensuring the continued smooth operation of the online store.