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
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
- Open the AI chatbot and ask it to change the name of your own product, providing the product URL.
- Observe the request to /api/chat/reply containing message, current_url, and Referer parameters.
- 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.
- 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.