WooCommerce - NAB Transact < 2.1.2 - Payment Bypass

2020-08-21T00:00:00
ID WPVDB-ID:10370
Type wpvulndb
Reporter wpvulndb
Modified 2020-08-22T00:00:00

Description

WordPress Vulnerability - WooCommerce - NAB Transact < 2.1.2 - Payment Bypass

PoC

When presented with a payment screen, instead of submitting payment information, issue the following GET request to the site: https://example-site.com/?wc-api=WC_Gateway_Nab_Direct_Post&order;=XXXX&key;=wc_order_YYYYY&is;_crn=0&txnid;=ZZZZZ&refid;=WooCommerceXXXX&rescode;=00&restext;=Approved Where XXXX is the order number and YYYY is the order code which have been present before during the workflow. If these are not presented, submit invalid payment information and get a declined message. Now brute-force the order number which is sequential. Doing so will mark any existing pending orders as fully paid.