Skip to content
IDOR Write-up Intermediate

This bug take to me 4 days to understand how is work

The AI chatbot that performs actions on a store did not verify that the user making the request owned the product or store referenced in the request. An attacker could change the name of any product belonging to any user by manipulating the Referer and current_url parameters.

medium.com

Published on medium.com

POST /api/chat/reply HTTP/2 Host: target.com Cookie: Origin: https://target.com Referer: https://target.com/03223/product=24988wsaaas3a

CaptinSHArky(Mahdi🇹🇳), on medium.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

Likely the AI chatbot's backend trusted the product and store identifiers supplied in the request (via Referer and current_url) and did not verify that the authenticated user owned those resources.

Impact

An attacker could change the name of any product belonging to any user, as demonstrated by the reporter's test on another account.

What the attacker needed

A free account; victim has a product and has used the chatbot

How it was found

  1. Open the AI chatbot and ask it to change the name of your own product, providing the product URL.
  2. Observe the request to /api/chat/reply containing message, current_url, and Referer parameters.
  3. Switch to another account and send a similar request but replace the product URL in current_url and Referer with the victim's product URL.
  4. Confirm the action when the chatbot asks for confirmation.

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.

An AI chatbot was allowed to change product names for users. The chatbot trusted whatever product link was included in the request, without checking who owned that product. So anyone could ask the chatbot to change someone else's product by putting that product's link in the request.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.