WPC Order Notes for WooCommerce - Reflected cross-site scripting (XSS)
Summary
Name | WPC Order Notes for WooCommerce 1.5. - Reflected cross-site scripting (XSS) |
Code name | skims-54 |
Product | WPC Order Notes for WooCommerce |
Affected versions | Version 1.5. |
State | Private |
Release date | 2025-01-03 |
Vulnerability
Kind | Reflected cross-site scripting (XSS) |
Rule | Reflected cross-site scripting (XSS) |
Remote | No |
CVSSv4 Vector | CVSS: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 available | No |
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
2025-01-03
Vulnerability discovered.
2025-01-03
Vendor contacted.