WooCommerce Modal Fly Cart + Ajax add to cart - Reflected cross-site scripting (XSS)

Summary

Name WooCommerce Modal Fly Cart + Ajax add to cart 1.1.1 - Reflected cross-site scripting (XSS)
Code nameskims-42
Product WooCommerce Modal Fly Cart + Ajax add to cart
Affected versionsVersion 1.1.1
StatePrivate
Release date2025-01-03

Vulnerability

KindReflected cross-site scripting (XSS)
RuleReflected cross-site scripting (XSS)
RemoteNo
CVSSv4 VectorCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:L/SC:L/SI:L/SA:L/E:U
Exploit availableNo
CVE ID(s)cve-2020-2020

Description

WooCommerce Modal Fly Cart + Ajax add to cart 1.1.1 was found to be vulnerable. The web application dynamically generates web content without validating the source of the potentially untrusted data in myapp/inc/class-frontend.php.

Vulnerability

Skims by Fluid Attacks discovered a Reflected cross-site scripting (XSS) in WooCommerce Modal Fly Cart + Ajax add to cart 1.1.1. The following is the output of the tool:

Skims output

 129 | )
 130 | );
 131 |
 132 |
 133 | }
 134 |
 135 |
 136 |
 137 | public function so_27270880_add_variation_to_cart() {
 138 |
> 139 |    echo $_POST['product_id'];
  140 |    exit ;
  141 |    ob_start();
  142 |
  143 |    $product_id        = apply_filters( 'woocommerce_add_to_cart_product_id', absint( $_POST['product_id'] ) );
  144 |    $quantity          = empty( $_POST['quantity'] ) ? 1 : wc_stock_amount( $_POST['quantity'] );
  145 |
  146 |    $variation_id      = isset( $_POST['variation_id'] ) ? absint( $_POST['variation_id'] ) : '';
  147 |    $variations         = ! empty( $_POST['variation'] ) ? (array) $_POST['variation'] : '';
  148 |
  149 |    $passed_validation = apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity, $variation_id,
      ^ Col 0

Our security policy

We have reserved the ID cve-2020-2020 to refer to this issue from now on.

System Information

  • Version: WooCommerce Modal Fly Cart + Ajax add

to cart 1.1.1

Mitigation

There is currently no patch available for this vulnerability.

Credits

The vulnerability was discovered by Andres Roldan from Fluid Attacks' Offensive Team using Skims

Timeline

Time-lapse-logo

2025-01-03

Vulnerability discovered.

Time-lapse-logo

2025-01-03

Vendor contacted.

Fluid Logo Footer

Hacking software for over 20 years

Fluid Attacks tests applications and other systems, covering all software development stages. Our team assists clients in quickly identifying and managing vulnerabilities to reduce the risk of incidents and deploy secure technology.

Copyright © 0 Fluid Attacks. We hack your software. All rights reserved.