mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Fix: Authenticated users can craft a POST request to delete any file on the webserver. Thank you @
bhopkins0
This commit is contained in:
@@ -23,7 +23,6 @@ $sql_recent_logs = mysqli_query($mysqli, "SELECT * FROM logs
|
||||
|
||||
<form action="post.php" method="post" enctype="multipart/form-data" autocomplete="off">
|
||||
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION['csrf_token'] ?>">
|
||||
<input type="hidden" name="existing_file_name" value="<?php echo nullable_htmlentities($session_avatar); ?>">
|
||||
|
||||
<center class="mb-3 px-5">
|
||||
<?php if (empty($session_avatar)) { ?>
|
||||
|
||||
Reference in New Issue
Block a user