Skip to content
Access control Write-up Beginner

How an Unpatched N-Day Let Any Anonymous Visitor Rewrite WooCommerce Prices in ND Booking

An unauthenticated AJAX action in the ND Booking WordPress plugin allowed any visitor to overwrite the price of a linked WooCommerce product. An attacker could set any price, such as one cent, causing financial loss or manipulation.

Shikhali Jamalzade Follow

Published on infosecwriteups.com

This is a write-up of a vulnerability I independently discovered in ND Booking, a WordPress hotel/room booking plugin by Nicdark with WooCommerce integration. The vulnerability allows any unauthenticated visitor to permanently overwrite the price of any WooCommerce product linked to a bookable room, with no login, no…

Shikhali Jamalzade, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The AJAX handler only checks a nonce that is publicly available to all visitors, and it does not verify that the user is authorised to change prices or that the submitted price is valid.

Impact

Any unauthenticated visitor could rewrite the price of any room's linked WooCommerce product to any value, leading to revenue loss or price manipulation.

What the attacker needed

Public booking search page; no login required

The fix

The handler should verify user capability and validate the submitted price against the room's actual rate before saving.

How it was found

  1. Load the public booking search page and read the nonce from the page source.
  2. Send a GET request to the admin-ajax.php endpoint with the action, nonce, room ID, and desired price.
  3. The handler updates the WooCommerce product's regular price and price to the supplied value.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The plugin lets visitors search for rooms and book them. It also has a hidden web address that changes the price of a room in the shop. Anyone can use that address without logging in, so they can set any price they want.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Shikhali Jamalzade

View all

7 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.