CVE-2021-39309 MEDIUM

CVE-2021-39309: Parsian Bank Gateway for Woocommerce <= 1.0 Reflected Cross-Site Scripting

Vendor Parsian Bank Gateway For Woocommerce
Product Parsian Bank Gateway for Woocommerce
Weakness CWE-79 · XSS
Published December 14, 2021
Last update February 14, 2025

CVSS base score

6.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

The Parsian Bank Gateway for Woocommerce WordPress plugin is vulnerable to Reflected Cross-Site Scripting via and parameter due to a var_dump() on $_POST variables found in the ~/vendor/dpsoft/parsian-payment/sample/rollback-payment.php file which allows attackers to inject arbitrary web scripts, in versions up to and including 1.0.

Explanation of Vulnerability in Simple Terms

02Summary

The Parsian Bank Gateway for WooCommerce plugin version 1.0 contains a cross-site scripting (XSS) vulnerability that allows attackers to inject malicious scripts into the site. An attacker can craft a malicious link that, when clicked by a site visitor, executes JavaScript in their browser. This can lead to session hijacking, credential theft, or malware distribution. The vulnerability affects the plugin's handling of user input without proper sanitization.

What an attacker can do

03Attacker Capabilities

Inject and execute malicious JavaScript in visitors' browsers via a crafted link.

Potential impact on your site

04Site Impact

Visitors' sessions can be hijacked, credentials stolen, or malware injected into your site.

Conditions required to exploit

05Prerequisites

A site visitor must click an attacker-supplied link while logged into or visiting the affected site.

Key dates

06Disclosure timeline

December 14, 2021 CVE published
February 14, 2025 Record updated

Related vulnerabilities

08Related CVE