WooCommerce: Support Ticket indirect object reference
The WooCommerce support ticket system lacked an authorization check on the ticket reply endpoint, allowing any authenticated user to post comments to any other user's ticket by changing the ticket number in the request. An attacker could thus inject arbitrary comments into other customers' support tickets.
Originally disclosed on HackerOne
- Triaged in 2 hours
- Fixed in 2 hours
- Paid in 3 hours
- Disclosed after 11 months
Hi there's no protection against Idor, so i can comment on anyone's Ticket.
Reproduce Issue:_
1.Go Here: https://www.woothemes.com/my-account/tickets/
2.Create a new Ticket
suppose ticked id is : 340529
Comment something on 340529 Ticket, and capture that request In Burp suite.
here's the request:
POST /wp-admin/admin-ajax.php HTTP/1.1 Host: www.woothemes.com User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0 Referer: https://www.woothemes.com/my-account/tickets/?id=340529 Content-Length: 95 Cookie: cookies..... Connection: keep-alive Pragma: no-cache Cache-Control: no-cache
action=wc_zendesk_reply_ticket&security=e942b8f2d4&reply=HACKED!!!!!&number=___340529___&solved=false
THATS MY TICKET, Now change number to victim's ticket id, and your comment will successfully added to victim's ticket.
Video Poc (unlisted): https://www.youtube.com/watch?v=bUEenDUoVfk&feature=youtu.be
thanks paresh
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server-side handler for the ticket reply action did not verify that the authenticated user owned the ticket identified by the 'number' parameter.
Impact
An attacker could post comments on any other user's support ticket.
What the attacker needed
Victim's ticket ID
How it was found
- Go to the tickets page in the my-account area.
- Create a new ticket and note its ticket ID.
- Post a comment on your own ticket and capture the request in a proxy.
- Change the ticket number in the request to the victim's ticket ID and send it.
- The comment is successfully added to the victim's ticket.
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 report has not been written yet. The Original tab links to the source.
When you reply to a support ticket, your browser sends a request that includes the ticket's number. The website should check that you actually own that ticket before saving your comment. Here it did not, so anyone could change the number to someone else's ticket and post a comment there.
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.