WPC Order Notes for WooCommerce - Reflected cross-site scripting (XSS)

Summary

NameWPC Order Notes for WooCommerce 1.5. - Reflected cross-site scripting (XSS)
Code nameskims-54
ProductWPC Order Notes for WooCommerce
Affected versionsVersion 1.5.
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

WPC Order Notes for WooCommerce 1.5. was found to be vulnerable. The web application dynamically generates web content without validating the source of the potentially untrusted data in myapp/wpc-order-notes.php.

Vulnerability

Skims by Fluid Attacks discovered a Reflected cross-site scripting (XSS) in WPC Order Notes for WooCommerce 1.5.. The following is the output of the tool:

Skims output

 410 | wp_die();
 411 | }
 412 |
 413 | function ajax_update_order_note() {
 414 | $comment = [
 415 | 'comment_ID' => sanitize_text_field( $_POST['note_id'] ),
 416 | 'comment_content' => sanitize_text_field( $_POST['note_content'] )
 417 | ];
 418 | wp_update_comment( $comment );
 419 |
> 420 |    echo $_POST['note_content'];
  421 |    wp_die();
  422 |   }
  423 |
  424 |   function ajax_add_order_note() {
  425 |    $ids              = explode( '.', $_POST['ids'] );
  426 |    $note_type        = wc_clean( wp_unslash( $_POST['note_type'] ) );
  427 |    $is_customer_note = ( 'customer' === $note_type ) ? 1 : 0;
  428 |
  429 |    foreach ( $ids as $id ) {
  430 |     $order = wc_get_order( $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: WPC Order Notes for WooCommerce

1.5.

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.